public static final class ModifyDedicatedHostAutoRenewAttributeRequest.Builder extends Object
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder autoRenew(Boolean autoRenew)
* true * false Default value: false
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder autoRenewWithEcs(String autoRenewWithEcs)
If auto-renewal is enabled for the subscription ECS instances hosted on the subscription dedicated hosts, you can specify this parameter to automatically renew the dedicated hosts along with the subscription ECS instances. When the subscription ECS instances hosted on your dedicated hosts are automatically renewed, the subscription dedicated hosts are also automatically renewed if the expiration time of the dedicated hosts is earlier than the expiration time of the renewed instances. Take note of the following items: When the subscription dedicated hosts are configured to be automatically renewed along with the subscription ECS instances hosted on the dedicated hosts, the system checks the expiration time of the renewed instances and selects a minimum renewal duration for the dedicated hosts so that the dedicated hosts are renewed by a duration that ends later than the expiration time of the renewed instances. For more information about supported renewal durations, see the descriptions of the `PeriodUnit` and `Duration` parameters. For example, assume that a dedicated host expires on January 15 of the current year. Subscription ECS instances hosted on the dedicated host are configured to be automatically renewed to November 15 of the same year. The expiration time of the dedicated host is earlier than the expiration time of the ECS instances by 10 months. In this case, the system selects a renewal duration of 12 months (a minimum duration calculated based on a `Duration` value of 12 and a `PeriodUnit` value of Month) for the dedicated host. This ensures that the dedicated host expires later than the ECS instances. Valid values: * AutoRenewWithEcs: automatically renews the subscription dedicated hosts along with the subscription ECS instances hosted on the dedicated hosts. * StopRenewWithEcs: does not automatically renew the subscription dedicated hosts along with the subscription ECS instances hosted on the dedicated hosts. * NoOperation: does not change the current settings for the dedicated hosts. > If you set this parameter to AutoRenewWithEcs, make sure that `AutoRenew` is set to true to enable auto-renewal for the dedicated hosts. Otherwise, the subscription dedicated hosts are not automatically renewed along with the subscription ECS instances hosted on the dedicated hosts. Default value: NoOperation.
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder dedicatedHostIds(String dedicatedHostIds)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder duration(Integer duration)
* Valid values when PeriodUnit is set to Month: 1 and 12 * Valid values when PeriodUnit is set to Year: 1 and 12
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder ownerId(Long ownerId)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder periodUnit(String periodUnit)
* Month * Year Default value: Month
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder regionId(String regionId)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder renewalStatus(String renewalStatus)
* AutoRenewal: The dedicated hosts are automatically renewed. * Normal: The dedicated hosts are not automatically renewed, and renewal notifications are sent. * NotRenewal: The dedicated hosts are not automatically renewed, and no expiration notification is sent. A notification of no renewal is automatically sent three days before the end of the current subscription cycle. You can change the value of this parameter from NotRenewal to Normal and manually renew the dedicated hosts by calling the [RenewDedicatedHosts](~~134250~~) operation. Alternatively, you can renew the dedicated hosts by setting this parameter to AutoRenewal.
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyDedicatedHostAutoRenewAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyDedicatedHostAutoRenewAttributeRequest build()
Copyright © 2024. All rights reserved.