public static final class DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder autoRenewEnabled(Boolean autoRenewEnabled)
* true: The dedicated host is automatically renewed. * false: The dedicated host is not automatically renewed.
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder autoRenewWithEcs(String autoRenewWithEcs)
* AutoRenewWithEcs: The subscription dedicated host is automatically renewed along with the subscription ECS instances hosted on it. * StopRenewWithEcs: The subscription dedicated host is not automatically renewed along with the subscription ECS instances hosted on it.
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder dedicatedHostId(String dedicatedHostId)
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder duration(Integer duration)
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder periodUnit(String periodUnit)
* Week * Month
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute.Builder renewalStatus(String renewalStatus)
* AutoRenewal: The dedicated host is automatically renewed. * Normal: The dedicated host is not automatically renewed, and you will receive notifications for renewal. * NotRenewal: The dedicated host is not renewed, and no expiration notification is sent. Notifications for renewal are automatically sent three days before the dedicated host expires. You can change the value of this parameter from NotRenewal to Normal for the dedicated host and manually renew it by calling the [RenewDedicatedHosts](~~93287~~) operation. Alternatively, you can set this parameter to AutoRenewal to configure the dedicated host to be automatically renewed.
public DescribeDedicatedHostAutoRenewResponseBody.DedicatedHostRenewAttribute build()
Copyright © 2023. All rights reserved.