
com.aliyun.r_kvstore20150101.models.AddShardingNodeRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.r_kvstore20150101.models;
import com.aliyun.tea.*;
public class AddShardingNodeRequest extends TeaModel {
/**
* Specifies whether to enable automatic payment. Valid values:
*
* - true: enables automatic payment. Make sure that you have sufficient balance within your account.
* - false: disables automatic payment. In this case, you must manually renew the instance in the console before the instance expires. For more information, see Renewal.
*
*
* The default value is true.
*
*
* example:
* false
*/
@NameInMap("AutoPay")
public Boolean autoPay;
/**
* The business information. This is an additional parameter.
*
* example:
* 000000000
*/
@NameInMap("BusinessInfo")
public String businessInfo;
/**
* The ID of the coupon.
*
* example:
* youhuiquan_promotion_option_id_for_blank
*/
@NameInMap("CouponNo")
public String couponNo;
/**
* Specifies whether to enable forced transmission during a configuration change. Valid values:
*
* - false (default): Before the configuration change, the system checks the minor version of the instance. If the minor version of the instance is outdated, an error is reported. You must update the minor version of the instance and try again.
* - true: The system skips the version check and directly performs the configuration change.
*
*
* example:
* false
*/
@NameInMap("ForceTrans")
public Boolean forceTrans;
/**
* The ID of the instance.
* This parameter is required.
*
* example:
* r-bp1zxszhcgatnx****
*/
@NameInMap("InstanceId")
public String instanceId;
@NameInMap("OwnerAccount")
public String ownerAccount;
@NameInMap("OwnerId")
public Long ownerId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
@NameInMap("SecurityToken")
public String securityToken;
/**
* The number of data shards that you want to add. Default value: 1.
*
* The instance can contain 2 to 256 data shards. You can add up to 64 data shards at a time. Make sure that the number of shards does not exceed this limit.
*
*
* example:
* 2
*/
@NameInMap("ShardCount")
public Integer shardCount;
/**
* The source of the operation. This parameter is used only for internal maintenance. You do not need to specify this parameter.
*
* example:
* SDK
*/
@NameInMap("SourceBiz")
public String sourceBiz;
/**
* The vSwitch ID. You can specify a different vSwitch within the same virtual private cloud (VPC). In this case, the new data shards are created in the specified vSwitch. If you do not specify this parameter, the new data shards are created in the original vSwitch.
*
* example:
* vsw-bp1e7clcw529l773d****
*/
@NameInMap("VSwitchId")
public String vSwitchId;
public static AddShardingNodeRequest build(java.util.Map map) throws Exception {
AddShardingNodeRequest self = new AddShardingNodeRequest();
return TeaModel.build(map, self);
}
public AddShardingNodeRequest setAutoPay(Boolean autoPay) {
this.autoPay = autoPay;
return this;
}
public Boolean getAutoPay() {
return this.autoPay;
}
public AddShardingNodeRequest setBusinessInfo(String businessInfo) {
this.businessInfo = businessInfo;
return this;
}
public String getBusinessInfo() {
return this.businessInfo;
}
public AddShardingNodeRequest setCouponNo(String couponNo) {
this.couponNo = couponNo;
return this;
}
public String getCouponNo() {
return this.couponNo;
}
public AddShardingNodeRequest setForceTrans(Boolean forceTrans) {
this.forceTrans = forceTrans;
return this;
}
public Boolean getForceTrans() {
return this.forceTrans;
}
public AddShardingNodeRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public AddShardingNodeRequest setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
return this;
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public AddShardingNodeRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public AddShardingNodeRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public AddShardingNodeRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public AddShardingNodeRequest setSecurityToken(String securityToken) {
this.securityToken = securityToken;
return this;
}
public String getSecurityToken() {
return this.securityToken;
}
public AddShardingNodeRequest setShardCount(Integer shardCount) {
this.shardCount = shardCount;
return this;
}
public Integer getShardCount() {
return this.shardCount;
}
public AddShardingNodeRequest setSourceBiz(String sourceBiz) {
this.sourceBiz = sourceBiz;
return this;
}
public String getSourceBiz() {
return this.sourceBiz;
}
public AddShardingNodeRequest setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public String getVSwitchId() {
return this.vSwitchId;
}
}