com.aliyun.rds20140815.models.RenewInstanceRequest Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class RenewInstanceRequest extends TeaModel {
/**
* Specifies whether to enable automatic payment during the renewal. Valid values:
*
* - True: enables automatic payment. Make sure that your Alibaba Cloud account has adequate balance.
* - False (default): disables automatic payment. You have to manually pay the order in the console.
*
*
* For more information about how to renew the instance in the console, see the following topics:
*
*
* -
*
* -
*
* -
*
* -
*
*
*
* example:
* True
*/
@NameInMap("AutoPay")
public String autoPay;
/**
* Specifies whether to enable auto-renewal for the instance. Valid values:
*
* - true.
* - false (default)
*
*
* example:
* true
*/
@NameInMap("AutoRenew")
public String autoRenew;
/**
* 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 generated token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
*
* example:
* ETnLKlblzczshOTUbOCzxxxxxxxxxx
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* The instance ID You can call the DescribeDBInstances operation to query the instance ID.
* This parameter is required.
*
* example:
* rm-uf6wjk5xxxxxxxxxx
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
@NameInMap("OwnerId")
public Long ownerId;
/**
* The duration of the subscription renewal. Unit: month. Valid values:
*
* - 1~9
* - 12
* - 24
* - 36
* - 48
* - 60
*
* This parameter is required.
*
* example:
* 12
*/
@NameInMap("Period")
public Integer period;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
public static RenewInstanceRequest build(java.util.Map map) throws Exception {
RenewInstanceRequest self = new RenewInstanceRequest();
return TeaModel.build(map, self);
}
public RenewInstanceRequest setAutoPay(String autoPay) {
this.autoPay = autoPay;
return this;
}
public String getAutoPay() {
return this.autoPay;
}
public RenewInstanceRequest setAutoRenew(String autoRenew) {
this.autoRenew = autoRenew;
return this;
}
public String getAutoRenew() {
return this.autoRenew;
}
public RenewInstanceRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public RenewInstanceRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public RenewInstanceRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public RenewInstanceRequest setPeriod(Integer period) {
this.period = period;
return this;
}
public Integer getPeriod() {
return this.period;
}
public RenewInstanceRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public RenewInstanceRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
}