public class ModifyDedicatedHostAutoRenewAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoRenew
Specifies whether to automatically renew the subscription.
|
String |
autoRenewWithEcs
Specifies whether to automatically renew the subscription dedicated hosts along with the subscription ECS instances hosted on the dedicated hosts.
|
String |
dedicatedHostIds
The IDs of dedicated hosts.
|
Integer |
duration
The renewal duration.
|
String |
ownerAccount |
Long |
ownerId |
String |
periodUnit
The unit of the renewal period.
|
String |
regionId
The region ID of the dedicated host.
|
String |
renewalStatus
Specifies whether to automatically renew the subscription dedicated host.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyDedicatedHostAutoRenewAttributeRequest() |
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to automatically renew the subscription. Valid values:
Default value: false
example:false
@NameInMap(value="AutoRenewWithEcs") public String autoRenewWithEcs
Specifies whether to automatically renew the subscription dedicated hosts along with the subscription ECS instances hosted on the dedicated hosts.
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:
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.
example:StopRenewWithEcs
@NameInMap(value="DedicatedHostIds") public String dedicatedHostIds
The IDs of dedicated hosts. You can specify up to 100 subscription dedicated host IDs. Separate the IDs with commas (,).
This parameter is required.
example:dh-bp165p6xk2tlw61e****
@NameInMap(value="Duration") public Integer duration
The renewal duration.
1
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the renewal period. Valid values:
Default value: Month
example:Month
@NameInMap(value="RegionId") public String regionId
The region ID of the dedicated host.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="RenewalStatus") public String renewalStatus
Specifies whether to automatically renew the subscription dedicated host. The RenewalStatus
parameter takes precedence over the AutoRenew
parameter. Valid values:
Normal
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public ModifyDedicatedHostAutoRenewAttributeRequest()
public static ModifyDedicatedHostAutoRenewAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyDedicatedHostAutoRenewAttributeRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public ModifyDedicatedHostAutoRenewAttributeRequest setAutoRenewWithEcs(String autoRenewWithEcs)
public String getAutoRenewWithEcs()
public ModifyDedicatedHostAutoRenewAttributeRequest setDedicatedHostIds(String dedicatedHostIds)
public String getDedicatedHostIds()
public ModifyDedicatedHostAutoRenewAttributeRequest setDuration(Integer duration)
public Integer getDuration()
public ModifyDedicatedHostAutoRenewAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyDedicatedHostAutoRenewAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyDedicatedHostAutoRenewAttributeRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public ModifyDedicatedHostAutoRenewAttributeRequest setRegionId(String regionId)
public String getRegionId()
public ModifyDedicatedHostAutoRenewAttributeRequest setRenewalStatus(String renewalStatus)
public String getRenewalStatus()
public ModifyDedicatedHostAutoRenewAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyDedicatedHostAutoRenewAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.