public class AddInstancesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
AddInstancesRequest() |
AddInstancesRequest(AddInstancesRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAutoVoucher()
Get Whether to automatically select a voucher.
|
String |
getClusterId()
Get Cluster ID
|
Long |
getCpu()
Get Number of CPU cores
|
String |
getDbType()
Get Database type.
|
Long |
getDealMode()
Get Transaction mode.
|
String |
getInstanceGrpId()
Get Instance group ID, which will be used when you add an instance in an existing RO group.
|
String |
getInstanceName()
Get Instance name.
|
ModifyParamItem[] |
getInstanceParams()
Get Parameter list, which is valid only if `InstanceParams` is passed in to `ParamTemplateId`.
|
Long |
getMemory()
Get Memory in GB
|
String |
getOrderSource()
Get Order source.
|
Long |
getParamTemplateId()
Get Parameter template ID
|
Long |
getPort()
Get The port used when adding an RO group.
|
Long |
getReadOnlyCount()
Get Number of added read-only instances.
|
String[] |
getSecurityGroupIds()
Get Security group ID.
|
String |
getSubnetId()
Get Subnet ID.
|
String |
getVpcId()
Get VPC ID
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to automatically select a voucher.
|
void |
setClusterId(String ClusterId)
Set Cluster ID
|
void |
setCpu(Long Cpu)
Set Number of CPU cores
|
void |
setDbType(String DbType)
Set Database type.
|
void |
setDealMode(Long DealMode)
Set Transaction mode.
|
void |
setInstanceGrpId(String InstanceGrpId)
Set Instance group ID, which will be used when you add an instance in an existing RO group.
|
void |
setInstanceName(String InstanceName)
Set Instance name.
|
void |
setInstanceParams(ModifyParamItem[] InstanceParams)
Set Parameter list, which is valid only if `InstanceParams` is passed in to `ParamTemplateId`.
|
void |
setMemory(Long Memory)
Set Memory in GB
|
void |
setOrderSource(String OrderSource)
Set Order source.
|
void |
setParamTemplateId(Long ParamTemplateId)
Set Parameter template ID
|
void |
setPort(Long Port)
Set The port used when adding an RO group.
|
void |
setReadOnlyCount(Long ReadOnlyCount)
Set Number of added read-only instances.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group ID.
|
void |
setSubnetId(String SubnetId)
Set Subnet ID.
|
void |
setVpcId(String VpcId)
Set VPC ID
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AddInstancesRequest()
public AddInstancesRequest(AddInstancesRequest source)
public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- Cluster IDpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of CPU corespublic Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory in GBpublic Long getReadOnlyCount()
public void setReadOnlyCount(Long ReadOnlyCount)
ReadOnlyCount
- Number of added read-only instances. Value range: (0,16].public String getInstanceGrpId()
public void setInstanceGrpId(String InstanceGrpId)
InstanceGrpId
- Instance group ID, which will be used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. But it is not recommended to pass in this parameter for the current version, as this version has been disused.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC IDpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- Subnet ID. If `VpcId` is set, `SubnetId` is required.public Long getPort()
public void setPort(Long Port)
Port
- The port used when adding an RO group. Value range: [0,65535).public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name. String length range: [0,64).public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0public String getDbType()
public void setDbType(String DbType)
DbType
- Database type. Valid values:
public String getOrderSource()
public void setOrderSource(String OrderSource)
OrderSource
- Order source. String length range: [0,64).public Long getDealMode()
public void setDealMode(Long DealMode)
DealMode
- Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order)public Long getParamTemplateId()
public void setParamTemplateId(Long ParamTemplateId)
ParamTemplateId
- Parameter template IDpublic ModifyParamItem[] getInstanceParams()
public void setInstanceParams(ModifyParamItem[] InstanceParams)
InstanceParams
- Parameter list, which is valid only if `InstanceParams` is passed in to `ParamTemplateId`.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group ID. You can specify an security group when creating a read-only instance.Copyright © 2024. All rights reserved.