public class RenewInstanceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Integer |
expectedRenewDay
The synchronized expiration date.
|
String |
instanceId
The ID of the instance that you want to renew.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The renewal period of the subscription instance.
|
String |
periodUnit
The unit of the renewal period.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
RenewInstanceRequest() |
限定符和类型 | 方法和说明 |
---|---|
static RenewInstanceRequest |
build(Map<String,?> map) |
String |
getClientToken() |
Integer |
getExpectedRenewDay() |
String |
getInstanceId() |
String |
getOwnerAccount() |
Long |
getOwnerId() |
Integer |
getPeriod() |
String |
getPeriodUnit() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
RenewInstanceRequest |
setClientToken(String clientToken) |
RenewInstanceRequest |
setExpectedRenewDay(Integer expectedRenewDay) |
RenewInstanceRequest |
setInstanceId(String instanceId) |
RenewInstanceRequest |
setOwnerAccount(String ownerAccount) |
RenewInstanceRequest |
setOwnerId(Long ownerId) |
RenewInstanceRequest |
setPeriod(Integer period) |
RenewInstanceRequest |
setPeriodUnit(String periodUnit) |
RenewInstanceRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
RenewInstanceRequest |
setResourceOwnerId(Long resourceOwnerId) |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:0c593ea1-3bea-11e9-b96b-88e9fe637760
@NameInMap(value="ExpectedRenewDay") public Integer expectedRenewDay
The synchronized expiration date. Set the value to a synchronized expiration date that you specified. Otherwise, the call fails. If you configure this parameter, your instance will be renewed to the specified synchronized expiration date. Valid values: 1 to 28.
For information about how to synchronize the expiration dates of instances, see Synchronize the expiration dates of subscription instances.
example:The renewal period-related parameter pair (
Period
andPeriodUnit
) andExpectedRenewDay
are mutually exclusive.
5
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance that you want to renew.
This parameter is required.
example:i-bp67acfmxazb4p****
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The renewal period of the subscription instance. If DedicatedHostId
is specified, the value of Period cannot exceed the subscription period of the specified dedicated host.
Valid values when PeriodUnit is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, 9, and 12.
example:The renewal period-related parameter pair (
Period
andPeriodUnit
) andExpectedRenewDay
are mutually exclusive.
1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the renewal period. Valid values:
Month
Default value: Month.
example:Month
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static RenewInstanceRequest build(Map<String,?> map) throws Exception
Exception
public RenewInstanceRequest setClientToken(String clientToken)
public String getClientToken()
public RenewInstanceRequest setExpectedRenewDay(Integer expectedRenewDay)
public Integer getExpectedRenewDay()
public RenewInstanceRequest setInstanceId(String instanceId)
public String getInstanceId()
public RenewInstanceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public RenewInstanceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public RenewInstanceRequest setPeriod(Integer period)
public Integer getPeriod()
public RenewInstanceRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public RenewInstanceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public RenewInstanceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.