com.tencentcloudapi.keewidb.v20220308.models.CreateInstancesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-keewidb Show documentation
Show all versions of tencentcloud-sdk-java-keewidb Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.keewidb.v20220308.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateInstancesRequest extends AbstractModel{
/**
* 产品版本。
14:当前仅支持混合存储版。
*/
@SerializedName("TypeId")
@Expose
private Long TypeId;
/**
* 私有网络唯一ID。
请登录控制台在私有网络列表查询,如:vpc-azlk3***。
*/
@SerializedName("UniqVpcId")
@Expose
private String UniqVpcId;
/**
* 私有网络所属子网唯一ID。
请登录控制台在私有网络列表查询,如:subnet-8abje***。
*/
@SerializedName("UniqSubnetId")
@Expose
private String UniqSubnetId;
/**
* 计费模式。- 0:按量计费。
- 1:包年包月。
*/
@SerializedName("BillingMode")
@Expose
private Long BillingMode;
/**
* 实例数量,单次最大购买数量以查询产品售卖规格返回的数量为准。
*/
@SerializedName("GoodsNum")
@Expose
private Long GoodsNum;
/**
* 选择包年包月计费模式(BillingMode 设置为1)时,您需要选择购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。按量计费(BillingMode 设置为0)实例该参数设置为1即可。
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 分片数量,支持选择3、5、6、8、9、10、12、15、16、18、20、21、24、25、27、30、32、33、35、36、39、40、42、45、48、50、51、54、55、56、57、60、63、64分片。
*/
@SerializedName("ShardNum")
@Expose
private Long ShardNum;
/**
* 副本数。当前仅支持设置1个副本节点,即每一个分片仅包含1个主节点与1个副本节点,数据主从实时热备。
*/
@SerializedName("ReplicasNum")
@Expose
private Long ReplicasNum;
/**
* 实例内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
@SerializedName("MachineMemory")
@Expose
private Long MachineMemory;
/**
* 实例所属的可用区ID。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
@SerializedName("ZoneId")
@Expose
private Long ZoneId;
/**
* 实例所属的可用区名称。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
@SerializedName("ZoneName")
@Expose
private String ZoneName;
/**
* 创建实例的名称。
仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 指明创建的实例是否需要支持免密访问。- true:免密实例。
- false:非免密实例,默认为非免密实例。此时,需要设置访问密码。
*/
@SerializedName("NoAuth")
@Expose
private Boolean NoAuth;
/**
* 实例访问密码。- 当参数NoAuth为true时,Password为无需设置,否则Password为必填参数。
- 密码复杂度要求:
- 8-30个字符。
- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种。
- 不能以"/"开头。
*/
@SerializedName("Password")
@Expose
private String Password;
/**
* 自定义端口。默认为6379,范围[1024,65535]。
*/
@SerializedName("VPort")
@Expose
private Long VPort;
/**
* 包年包月计费的续费模式。- 0:默认状态,指手动续费。
- 1:自动续费。
- 2:到期不再续费。
*/
@SerializedName("AutoRenew")
@Expose
private Long AutoRenew;
/**
* 给实例设置安全组 ID 数组。
*/
@SerializedName("SecurityGroupIdList")
@Expose
private String [] SecurityGroupIdList;
/**
* 给实例绑定标签。
*/
@SerializedName("ResourceTags")
@Expose
private ResourceTag [] ResourceTags;
/**
* 混合存储版,单分片持久化内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
@SerializedName("MemSize")
@Expose
private Long MemSize;
/**
* 每个分片硬盘的容量。单位:GB。
每一缓存分片容量,对应的磁盘容量范围不同。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
@SerializedName("DiskSize")
@Expose
private Long DiskSize;
/**
* 计算 CPU 核数,可忽略不传。CPU 核数与内存为固定搭配,具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
@SerializedName("MachineCpu")
@Expose
private Long MachineCpu;
/**
* 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 数据压缩开关。- ON:开启,默认开启压缩。
- OFF:关闭。
*/
@SerializedName("Compression")
@Expose
private String Compression;
/**
* Get 产品版本。
14:当前仅支持混合存储版。
* @return TypeId 产品版本。
14:当前仅支持混合存储版。
*/
public Long getTypeId() {
return this.TypeId;
}
/**
* Set 产品版本。
14:当前仅支持混合存储版。
* @param TypeId 产品版本。
14:当前仅支持混合存储版。
*/
public void setTypeId(Long TypeId) {
this.TypeId = TypeId;
}
/**
* Get 私有网络唯一ID。
请登录控制台在私有网络列表查询,如:vpc-azlk3***。
* @return UniqVpcId 私有网络唯一ID。
请登录控制台在私有网络列表查询,如:vpc-azlk3***。
*/
public String getUniqVpcId() {
return this.UniqVpcId;
}
/**
* Set 私有网络唯一ID。
请登录控制台在私有网络列表查询,如:vpc-azlk3***。
* @param UniqVpcId 私有网络唯一ID。
请登录控制台在私有网络列表查询,如:vpc-azlk3***。
*/
public void setUniqVpcId(String UniqVpcId) {
this.UniqVpcId = UniqVpcId;
}
/**
* Get 私有网络所属子网唯一ID。
请登录控制台在私有网络列表查询,如:subnet-8abje***。
* @return UniqSubnetId 私有网络所属子网唯一ID。
请登录控制台在私有网络列表查询,如:subnet-8abje***。
*/
public String getUniqSubnetId() {
return this.UniqSubnetId;
}
/**
* Set 私有网络所属子网唯一ID。
请登录控制台在私有网络列表查询,如:subnet-8abje***。
* @param UniqSubnetId 私有网络所属子网唯一ID。
请登录控制台在私有网络列表查询,如:subnet-8abje***。
*/
public void setUniqSubnetId(String UniqSubnetId) {
this.UniqSubnetId = UniqSubnetId;
}
/**
* Get 计费模式。- 0:按量计费。
- 1:包年包月。
* @return BillingMode 计费模式。- 0:按量计费。
- 1:包年包月。
*/
public Long getBillingMode() {
return this.BillingMode;
}
/**
* Set 计费模式。- 0:按量计费。
- 1:包年包月。
* @param BillingMode 计费模式。- 0:按量计费。
- 1:包年包月。
*/
public void setBillingMode(Long BillingMode) {
this.BillingMode = BillingMode;
}
/**
* Get 实例数量,单次最大购买数量以查询产品售卖规格返回的数量为准。
* @return GoodsNum 实例数量,单次最大购买数量以查询产品售卖规格返回的数量为准。
*/
public Long getGoodsNum() {
return this.GoodsNum;
}
/**
* Set 实例数量,单次最大购买数量以查询产品售卖规格返回的数量为准。
* @param GoodsNum 实例数量,单次最大购买数量以查询产品售卖规格返回的数量为准。
*/
public void setGoodsNum(Long GoodsNum) {
this.GoodsNum = GoodsNum;
}
/**
* Get 选择包年包月计费模式(BillingMode 设置为1)时,您需要选择购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。按量计费(BillingMode 设置为0)实例该参数设置为1即可。
* @return Period 选择包年包月计费模式(BillingMode 设置为1)时,您需要选择购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。按量计费(BillingMode 设置为0)实例该参数设置为1即可。
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 选择包年包月计费模式(BillingMode 设置为1)时,您需要选择购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。按量计费(BillingMode 设置为0)实例该参数设置为1即可。
* @param Period 选择包年包月计费模式(BillingMode 设置为1)时,您需要选择购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。按量计费(BillingMode 设置为0)实例该参数设置为1即可。
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 分片数量,支持选择3、5、6、8、9、10、12、15、16、18、20、21、24、25、27、30、32、33、35、36、39、40、42、45、48、50、51、54、55、56、57、60、63、64分片。
* @return ShardNum 分片数量,支持选择3、5、6、8、9、10、12、15、16、18、20、21、24、25、27、30、32、33、35、36、39、40、42、45、48、50、51、54、55、56、57、60、63、64分片。
*/
public Long getShardNum() {
return this.ShardNum;
}
/**
* Set 分片数量,支持选择3、5、6、8、9、10、12、15、16、18、20、21、24、25、27、30、32、33、35、36、39、40、42、45、48、50、51、54、55、56、57、60、63、64分片。
* @param ShardNum 分片数量,支持选择3、5、6、8、9、10、12、15、16、18、20、21、24、25、27、30、32、33、35、36、39、40、42、45、48、50、51、54、55、56、57、60、63、64分片。
*/
public void setShardNum(Long ShardNum) {
this.ShardNum = ShardNum;
}
/**
* Get 副本数。当前仅支持设置1个副本节点,即每一个分片仅包含1个主节点与1个副本节点,数据主从实时热备。
* @return ReplicasNum 副本数。当前仅支持设置1个副本节点,即每一个分片仅包含1个主节点与1个副本节点,数据主从实时热备。
*/
public Long getReplicasNum() {
return this.ReplicasNum;
}
/**
* Set 副本数。当前仅支持设置1个副本节点,即每一个分片仅包含1个主节点与1个副本节点,数据主从实时热备。
* @param ReplicasNum 副本数。当前仅支持设置1个副本节点,即每一个分片仅包含1个主节点与1个副本节点,数据主从实时热备。
*/
public void setReplicasNum(Long ReplicasNum) {
this.ReplicasNum = ReplicasNum;
}
/**
* Get 实例内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @return MachineMemory 实例内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public Long getMachineMemory() {
return this.MachineMemory;
}
/**
* Set 实例内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @param MachineMemory 实例内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public void setMachineMemory(Long MachineMemory) {
this.MachineMemory = MachineMemory;
}
/**
* Get 实例所属的可用区ID。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
* @return ZoneId 实例所属的可用区ID。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
public Long getZoneId() {
return this.ZoneId;
}
/**
* Set 实例所属的可用区ID。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
* @param ZoneId 实例所属的可用区ID。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
public void setZoneId(Long ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get 实例所属的可用区名称。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
* @return ZoneName 实例所属的可用区名称。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
public String getZoneName() {
return this.ZoneName;
}
/**
* Set 实例所属的可用区名称。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
* @param ZoneName 实例所属的可用区名称。- 具体取值,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106)获取。
- 参数ZoneId和ZoneName至少配置其中一个。
*/
public void setZoneName(String ZoneName) {
this.ZoneName = ZoneName;
}
/**
* Get 创建实例的名称。
仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。
* @return InstanceName 创建实例的名称。
仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 创建实例的名称。
仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。
* @param InstanceName 创建实例的名称。
仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 指明创建的实例是否需要支持免密访问。- true:免密实例。
- false:非免密实例,默认为非免密实例。此时,需要设置访问密码。
* @return NoAuth 指明创建的实例是否需要支持免密访问。- true:免密实例。
- false:非免密实例,默认为非免密实例。此时,需要设置访问密码。
*/
public Boolean getNoAuth() {
return this.NoAuth;
}
/**
* Set 指明创建的实例是否需要支持免密访问。- true:免密实例。
- false:非免密实例,默认为非免密实例。此时,需要设置访问密码。
* @param NoAuth 指明创建的实例是否需要支持免密访问。- true:免密实例。
- false:非免密实例,默认为非免密实例。此时,需要设置访问密码。
*/
public void setNoAuth(Boolean NoAuth) {
this.NoAuth = NoAuth;
}
/**
* Get 实例访问密码。- 当参数NoAuth为true时,Password为无需设置,否则Password为必填参数。
- 密码复杂度要求:
- 8-30个字符。
- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种。
- 不能以"/"开头。
* @return Password 实例访问密码。- 当参数NoAuth为true时,Password为无需设置,否则Password为必填参数。
- 密码复杂度要求:
- 8-30个字符。
- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种。
- 不能以"/"开头。
*/
public String getPassword() {
return this.Password;
}
/**
* Set 实例访问密码。- 当参数NoAuth为true时,Password为无需设置,否则Password为必填参数。
- 密码复杂度要求:
- 8-30个字符。
- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种。
- 不能以"/"开头。
* @param Password 实例访问密码。- 当参数NoAuth为true时,Password为无需设置,否则Password为必填参数。
- 密码复杂度要求:
- 8-30个字符。
- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种。
- 不能以"/"开头。
*/
public void setPassword(String Password) {
this.Password = Password;
}
/**
* Get 自定义端口。默认为6379,范围[1024,65535]。
* @return VPort 自定义端口。默认为6379,范围[1024,65535]。
*/
public Long getVPort() {
return this.VPort;
}
/**
* Set 自定义端口。默认为6379,范围[1024,65535]。
* @param VPort 自定义端口。默认为6379,范围[1024,65535]。
*/
public void setVPort(Long VPort) {
this.VPort = VPort;
}
/**
* Get 包年包月计费的续费模式。- 0:默认状态,指手动续费。
- 1:自动续费。
- 2:到期不再续费。
* @return AutoRenew 包年包月计费的续费模式。- 0:默认状态,指手动续费。
- 1:自动续费。
- 2:到期不再续费。
*/
public Long getAutoRenew() {
return this.AutoRenew;
}
/**
* Set 包年包月计费的续费模式。- 0:默认状态,指手动续费。
- 1:自动续费。
- 2:到期不再续费。
* @param AutoRenew 包年包月计费的续费模式。- 0:默认状态,指手动续费。
- 1:自动续费。
- 2:到期不再续费。
*/
public void setAutoRenew(Long AutoRenew) {
this.AutoRenew = AutoRenew;
}
/**
* Get 给实例设置安全组 ID 数组。
* @return SecurityGroupIdList 给实例设置安全组 ID 数组。
*/
public String [] getSecurityGroupIdList() {
return this.SecurityGroupIdList;
}
/**
* Set 给实例设置安全组 ID 数组。
* @param SecurityGroupIdList 给实例设置安全组 ID 数组。
*/
public void setSecurityGroupIdList(String [] SecurityGroupIdList) {
this.SecurityGroupIdList = SecurityGroupIdList;
}
/**
* Get 给实例绑定标签。
* @return ResourceTags 给实例绑定标签。
*/
public ResourceTag [] getResourceTags() {
return this.ResourceTags;
}
/**
* Set 给实例绑定标签。
* @param ResourceTags 给实例绑定标签。
*/
public void setResourceTags(ResourceTag [] ResourceTags) {
this.ResourceTags = ResourceTags;
}
/**
* Get 混合存储版,单分片持久化内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @return MemSize 混合存储版,单分片持久化内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public Long getMemSize() {
return this.MemSize;
}
/**
* Set 混合存储版,单分片持久化内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @param MemSize 混合存储版,单分片持久化内存容量,单位:GB。
KeeWiDB 内存容量MachineMemory与持久内存容量MemSize为固定搭配,即2GB内存,固定分配8GB的持久内存,不可选择。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public void setMemSize(Long MemSize) {
this.MemSize = MemSize;
}
/**
* Get 每个分片硬盘的容量。单位:GB。
每一缓存分片容量,对应的磁盘容量范围不同。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @return DiskSize 每个分片硬盘的容量。单位:GB。
每一缓存分片容量,对应的磁盘容量范围不同。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public Long getDiskSize() {
return this.DiskSize;
}
/**
* Set 每个分片硬盘的容量。单位:GB。
每一缓存分片容量,对应的磁盘容量范围不同。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @param DiskSize 每个分片硬盘的容量。单位:GB。
每一缓存分片容量,对应的磁盘容量范围不同。具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public void setDiskSize(Long DiskSize) {
this.DiskSize = DiskSize;
}
/**
* Get 计算 CPU 核数,可忽略不传。CPU 核数与内存为固定搭配,具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @return MachineCpu 计算 CPU 核数,可忽略不传。CPU 核数与内存为固定搭配,具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public Long getMachineCpu() {
return this.MachineCpu;
}
/**
* Set 计算 CPU 核数,可忽略不传。CPU 核数与内存为固定搭配,具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
* @param MachineCpu 计算 CPU 核数,可忽略不传。CPU 核数与内存为固定搭配,具体信息,请参见[产品规格](https://cloud.tencent.com/document/product/1520/80808)。
*/
public void setMachineCpu(Long MachineCpu) {
this.MachineCpu = MachineCpu;
}
/**
* Get 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。
* @return ProjectId 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。
* @param ProjectId 项目id,取值以用户账户>用户账户相关接口查询>项目列表返回的projectId为准。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 数据压缩开关。- ON:开启,默认开启压缩。
- OFF:关闭。
* @return Compression 数据压缩开关。- ON:开启,默认开启压缩。
- OFF:关闭。
*/
public String getCompression() {
return this.Compression;
}
/**
* Set 数据压缩开关。- ON:开启,默认开启压缩。
- OFF:关闭。
* @param Compression 数据压缩开关。- ON:开启,默认开启压缩。
- OFF:关闭。
*/
public void setCompression(String Compression) {
this.Compression = Compression;
}
public CreateInstancesRequest() {
}
/**
* 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.
*/
public CreateInstancesRequest(CreateInstancesRequest source) {
if (source.TypeId != null) {
this.TypeId = new Long(source.TypeId);
}
if (source.UniqVpcId != null) {
this.UniqVpcId = new String(source.UniqVpcId);
}
if (source.UniqSubnetId != null) {
this.UniqSubnetId = new String(source.UniqSubnetId);
}
if (source.BillingMode != null) {
this.BillingMode = new Long(source.BillingMode);
}
if (source.GoodsNum != null) {
this.GoodsNum = new Long(source.GoodsNum);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.ShardNum != null) {
this.ShardNum = new Long(source.ShardNum);
}
if (source.ReplicasNum != null) {
this.ReplicasNum = new Long(source.ReplicasNum);
}
if (source.MachineMemory != null) {
this.MachineMemory = new Long(source.MachineMemory);
}
if (source.ZoneId != null) {
this.ZoneId = new Long(source.ZoneId);
}
if (source.ZoneName != null) {
this.ZoneName = new String(source.ZoneName);
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.NoAuth != null) {
this.NoAuth = new Boolean(source.NoAuth);
}
if (source.Password != null) {
this.Password = new String(source.Password);
}
if (source.VPort != null) {
this.VPort = new Long(source.VPort);
}
if (source.AutoRenew != null) {
this.AutoRenew = new Long(source.AutoRenew);
}
if (source.SecurityGroupIdList != null) {
this.SecurityGroupIdList = new String[source.SecurityGroupIdList.length];
for (int i = 0; i < source.SecurityGroupIdList.length; i++) {
this.SecurityGroupIdList[i] = new String(source.SecurityGroupIdList[i]);
}
}
if (source.ResourceTags != null) {
this.ResourceTags = new ResourceTag[source.ResourceTags.length];
for (int i = 0; i < source.ResourceTags.length; i++) {
this.ResourceTags[i] = new ResourceTag(source.ResourceTags[i]);
}
}
if (source.MemSize != null) {
this.MemSize = new Long(source.MemSize);
}
if (source.DiskSize != null) {
this.DiskSize = new Long(source.DiskSize);
}
if (source.MachineCpu != null) {
this.MachineCpu = new Long(source.MachineCpu);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.Compression != null) {
this.Compression = new String(source.Compression);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TypeId", this.TypeId);
this.setParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
this.setParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
this.setParamSimple(map, prefix + "BillingMode", this.BillingMode);
this.setParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "ShardNum", this.ShardNum);
this.setParamSimple(map, prefix + "ReplicasNum", this.ReplicasNum);
this.setParamSimple(map, prefix + "MachineMemory", this.MachineMemory);
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "ZoneName", this.ZoneName);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "NoAuth", this.NoAuth);
this.setParamSimple(map, prefix + "Password", this.Password);
this.setParamSimple(map, prefix + "VPort", this.VPort);
this.setParamSimple(map, prefix + "AutoRenew", this.AutoRenew);
this.setParamArraySimple(map, prefix + "SecurityGroupIdList.", this.SecurityGroupIdList);
this.setParamArrayObj(map, prefix + "ResourceTags.", this.ResourceTags);
this.setParamSimple(map, prefix + "MemSize", this.MemSize);
this.setParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.setParamSimple(map, prefix + "MachineCpu", this.MachineCpu);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "Compression", this.Compression);
}
}