
com.tencentcloudapi.tse.v20201207.models.CreateEngineRequest Maven / Gradle / Ivy
/*
* 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.tse.v20201207.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateEngineRequest extends AbstractModel{
/**
* 引擎类型。参考值:
- zookeeper
- nacos
- consul
- apollo
- eureka
- polaris
*/
@SerializedName("EngineType")
@Expose
private String EngineType;
/**
* 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
*/
@SerializedName("EngineVersion")
@Expose
private String EngineVersion;
/**
* 引擎的产品版本。参考值:
- STANDARD: 标准版
引擎各版本及可选择的规格、节点数说明:
apollo - STANDARD版本
规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
节点数:1,2,3,4,5
eureka - STANDARD版本
规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
节点数:3,4,5
*/
@SerializedName("EngineProductVersion")
@Expose
private String EngineProductVersion;
/**
* 引擎所在地域。参考值说明:
中国区 参考值:
- ap-guangzhou:广州
- ap-beijing:北京
- ap-chengdu:成都
- ap-chongqing:重庆
- ap-nanjing:南京
- ap-shanghai:上海
- ap-hongkong:香港
- ap-taipei:台北
亚太区 参考值:
- ap-jakarta:雅加达
- ap-singapore:新加坡
北美区 参考值
- na-toronto:多伦多
金融专区 参考值
- ap-beijing-fsi:北京金融
- ap-shanghai-fsi:上海金融
- ap-shenzhen-fsi:深圳金融
*/
@SerializedName("EngineRegion")
@Expose
private String EngineRegion;
/**
* 引擎名称。参考值:
- eurek-test
*/
@SerializedName("EngineName")
@Expose
private String EngineName;
/**
* 付费类型。参考值:
- 0:后付费
- 1:预付费
*/
@SerializedName("TradeType")
@Expose
private Long TradeType;
/**
* 引擎的节点规格 ID。参见EngineProductVersion字段说明
*/
@SerializedName("EngineResourceSpec")
@Expose
private String EngineResourceSpec;
/**
* 引擎的节点数量。参见EngineProductVersion字段说明
*/
@SerializedName("EngineNodeNum")
@Expose
private Long EngineNodeNum;
/**
* VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- vpc-conz6aix
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- subnet-ahde9me9
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* Apollo 环境配置参数列表。参数说明:
如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
- Name:环境名。参考值:prod, dev, fat, uat
- EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
- EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
- StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
- VpcId:VPC ID。参考值:vpc-conz6aix
- SubnetId:子网 ID。参考值:subnet-ahde9me9
*/
@SerializedName("ApolloEnvParams")
@Expose
private ApolloEnvParam [] ApolloEnvParams;
/**
* 引擎的标签列表。用户自定义的key/value形式,无参考值
*/
@SerializedName("EngineTags")
@Expose
private InstanceTagInfo [] EngineTags;
/**
* 引擎的初始帐号信息。可设置参数:
- Name:控制台初始用户名
- Password:控制台初始密码
- Token:引擎接口的管理员 Token
*/
@SerializedName("EngineAdmin")
@Expose
private EngineAdmin EngineAdmin;
/**
* 预付费时长,以月为单位
*/
@SerializedName("PrepaidPeriod")
@Expose
private Long PrepaidPeriod;
/**
* 自动续费标记,仅预付费使用。参考值:
- 0:不自动续费
- 1:自动续费
*/
@SerializedName("PrepaidRenewFlag")
@Expose
private Long PrepaidRenewFlag;
/**
* Get 引擎类型。参考值:
- zookeeper
- nacos
- consul
- apollo
- eureka
- polaris
* @return EngineType 引擎类型。参考值:
- zookeeper
- nacos
- consul
- apollo
- eureka
- polaris
*/
public String getEngineType() {
return this.EngineType;
}
/**
* Set 引擎类型。参考值:
- zookeeper
- nacos
- consul
- apollo
- eureka
- polaris
* @param EngineType 引擎类型。参考值:
- zookeeper
- nacos
- consul
- apollo
- eureka
- polaris
*/
public void setEngineType(String EngineType) {
this.EngineType = EngineType;
}
/**
* Get 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
* @return EngineVersion 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
*/
public String getEngineVersion() {
return this.EngineVersion;
}
/**
* Set 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
* @param EngineVersion 引擎的开源版本。每种引擎支持的开源版本不同,请参考产品文档或者控制台购买页
*/
public void setEngineVersion(String EngineVersion) {
this.EngineVersion = EngineVersion;
}
/**
* Get 引擎的产品版本。参考值:
- STANDARD: 标准版
引擎各版本及可选择的规格、节点数说明:
apollo - STANDARD版本
规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
节点数:1,2,3,4,5
eureka - STANDARD版本
规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
节点数:3,4,5
* @return EngineProductVersion 引擎的产品版本。参考值:
- STANDARD: 标准版
引擎各版本及可选择的规格、节点数说明:
apollo - STANDARD版本
规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
节点数:1,2,3,4,5
eureka - STANDARD版本
规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
节点数:3,4,5
*/
public String getEngineProductVersion() {
return this.EngineProductVersion;
}
/**
* Set 引擎的产品版本。参考值:
- STANDARD: 标准版
引擎各版本及可选择的规格、节点数说明:
apollo - STANDARD版本
规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
节点数:1,2,3,4,5
eureka - STANDARD版本
规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
节点数:3,4,5
* @param EngineProductVersion 引擎的产品版本。参考值:
- STANDARD: 标准版
引擎各版本及可选择的规格、节点数说明:
apollo - STANDARD版本
规格列表:spec-qcr53kf1t(1C2G),spec-qdr53kf2w(2C4G)
节点数:1,2,3,4,5
eureka - STANDARD版本
规格列表:spec-qvj6k7t4q(1C2G),spec-qcr53kfjt(2C4G),spec-qvj6k7t4m(4G8G),spec-qcr54kfjt(8C16G),spec-qcr55kfjt(16C32G)
节点数:3,4,5
*/
public void setEngineProductVersion(String EngineProductVersion) {
this.EngineProductVersion = EngineProductVersion;
}
/**
* Get 引擎所在地域。参考值说明:
中国区 参考值:
- ap-guangzhou:广州
- ap-beijing:北京
- ap-chengdu:成都
- ap-chongqing:重庆
- ap-nanjing:南京
- ap-shanghai:上海
- ap-hongkong:香港
- ap-taipei:台北
亚太区 参考值:
- ap-jakarta:雅加达
- ap-singapore:新加坡
北美区 参考值
- na-toronto:多伦多
金融专区 参考值
- ap-beijing-fsi:北京金融
- ap-shanghai-fsi:上海金融
- ap-shenzhen-fsi:深圳金融
* @return EngineRegion 引擎所在地域。参考值说明:
中国区 参考值:
- ap-guangzhou:广州
- ap-beijing:北京
- ap-chengdu:成都
- ap-chongqing:重庆
- ap-nanjing:南京
- ap-shanghai:上海
- ap-hongkong:香港
- ap-taipei:台北
亚太区 参考值:
- ap-jakarta:雅加达
- ap-singapore:新加坡
北美区 参考值
- na-toronto:多伦多
金融专区 参考值
- ap-beijing-fsi:北京金融
- ap-shanghai-fsi:上海金融
- ap-shenzhen-fsi:深圳金融
*/
public String getEngineRegion() {
return this.EngineRegion;
}
/**
* Set 引擎所在地域。参考值说明:
中国区 参考值:
- ap-guangzhou:广州
- ap-beijing:北京
- ap-chengdu:成都
- ap-chongqing:重庆
- ap-nanjing:南京
- ap-shanghai:上海
- ap-hongkong:香港
- ap-taipei:台北
亚太区 参考值:
- ap-jakarta:雅加达
- ap-singapore:新加坡
北美区 参考值
- na-toronto:多伦多
金融专区 参考值
- ap-beijing-fsi:北京金融
- ap-shanghai-fsi:上海金融
- ap-shenzhen-fsi:深圳金融
* @param EngineRegion 引擎所在地域。参考值说明:
中国区 参考值:
- ap-guangzhou:广州
- ap-beijing:北京
- ap-chengdu:成都
- ap-chongqing:重庆
- ap-nanjing:南京
- ap-shanghai:上海
- ap-hongkong:香港
- ap-taipei:台北
亚太区 参考值:
- ap-jakarta:雅加达
- ap-singapore:新加坡
北美区 参考值
- na-toronto:多伦多
金融专区 参考值
- ap-beijing-fsi:北京金融
- ap-shanghai-fsi:上海金融
- ap-shenzhen-fsi:深圳金融
*/
public void setEngineRegion(String EngineRegion) {
this.EngineRegion = EngineRegion;
}
/**
* Get 引擎名称。参考值:
- eurek-test
* @return EngineName 引擎名称。参考值:
- eurek-test
*/
public String getEngineName() {
return this.EngineName;
}
/**
* Set 引擎名称。参考值:
- eurek-test
* @param EngineName 引擎名称。参考值:
- eurek-test
*/
public void setEngineName(String EngineName) {
this.EngineName = EngineName;
}
/**
* Get 付费类型。参考值:
- 0:后付费
- 1:预付费
* @return TradeType 付费类型。参考值:
- 0:后付费
- 1:预付费
*/
public Long getTradeType() {
return this.TradeType;
}
/**
* Set 付费类型。参考值:
- 0:后付费
- 1:预付费
* @param TradeType 付费类型。参考值:
- 0:后付费
- 1:预付费
*/
public void setTradeType(Long TradeType) {
this.TradeType = TradeType;
}
/**
* Get 引擎的节点规格 ID。参见EngineProductVersion字段说明
* @return EngineResourceSpec 引擎的节点规格 ID。参见EngineProductVersion字段说明
*/
public String getEngineResourceSpec() {
return this.EngineResourceSpec;
}
/**
* Set 引擎的节点规格 ID。参见EngineProductVersion字段说明
* @param EngineResourceSpec 引擎的节点规格 ID。参见EngineProductVersion字段说明
*/
public void setEngineResourceSpec(String EngineResourceSpec) {
this.EngineResourceSpec = EngineResourceSpec;
}
/**
* Get 引擎的节点数量。参见EngineProductVersion字段说明
* @return EngineNodeNum 引擎的节点数量。参见EngineProductVersion字段说明
*/
public Long getEngineNodeNum() {
return this.EngineNodeNum;
}
/**
* Set 引擎的节点数量。参见EngineProductVersion字段说明
* @param EngineNodeNum 引擎的节点数量。参见EngineProductVersion字段说明
*/
public void setEngineNodeNum(Long EngineNodeNum) {
this.EngineNodeNum = EngineNodeNum;
}
/**
* Get VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- vpc-conz6aix
* @return VpcId VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- vpc-conz6aix
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- vpc-conz6aix
* @param VpcId VPC ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- vpc-conz6aix
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- subnet-ahde9me9
* @return SubnetId 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- subnet-ahde9me9
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- subnet-ahde9me9
* @param SubnetId 子网 ID。在 VPC 的子网内分配一个 IP 作为引擎的访问地址。参考值:
- subnet-ahde9me9
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get Apollo 环境配置参数列表。参数说明:
如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
- Name:环境名。参考值:prod, dev, fat, uat
- EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
- EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
- StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
- VpcId:VPC ID。参考值:vpc-conz6aix
- SubnetId:子网 ID。参考值:subnet-ahde9me9
* @return ApolloEnvParams Apollo 环境配置参数列表。参数说明:
如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
- Name:环境名。参考值:prod, dev, fat, uat
- EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
- EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
- StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
- VpcId:VPC ID。参考值:vpc-conz6aix
- SubnetId:子网 ID。参考值:subnet-ahde9me9
*/
public ApolloEnvParam [] getApolloEnvParams() {
return this.ApolloEnvParams;
}
/**
* Set Apollo 环境配置参数列表。参数说明:
如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
- Name:环境名。参考值:prod, dev, fat, uat
- EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
- EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
- StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
- VpcId:VPC ID。参考值:vpc-conz6aix
- SubnetId:子网 ID。参考值:subnet-ahde9me9
* @param ApolloEnvParams Apollo 环境配置参数列表。参数说明:
如果创建Apollo类型,此参数为必填的环境信息列表,最多可选4个环境。环境信息参数说明:
- Name:环境名。参考值:prod, dev, fat, uat
- EngineResourceSpec:环境内引擎的节点规格ID。参见EngineProductVersion参数说明
- EngineNodeNum:环境内引擎的节点数量。参见EngineProductVersion参数说明,其中prod环境支持的节点数为2,3,4,5
- StorageCapacity:配置存储空间大小,以GB为单位,步长为5.参考值:35
- VpcId:VPC ID。参考值:vpc-conz6aix
- SubnetId:子网 ID。参考值:subnet-ahde9me9
*/
public void setApolloEnvParams(ApolloEnvParam [] ApolloEnvParams) {
this.ApolloEnvParams = ApolloEnvParams;
}
/**
* Get 引擎的标签列表。用户自定义的key/value形式,无参考值
* @return EngineTags 引擎的标签列表。用户自定义的key/value形式,无参考值
*/
public InstanceTagInfo [] getEngineTags() {
return this.EngineTags;
}
/**
* Set 引擎的标签列表。用户自定义的key/value形式,无参考值
* @param EngineTags 引擎的标签列表。用户自定义的key/value形式,无参考值
*/
public void setEngineTags(InstanceTagInfo [] EngineTags) {
this.EngineTags = EngineTags;
}
/**
* Get 引擎的初始帐号信息。可设置参数:
- Name:控制台初始用户名
- Password:控制台初始密码
- Token:引擎接口的管理员 Token
* @return EngineAdmin 引擎的初始帐号信息。可设置参数:
- Name:控制台初始用户名
- Password:控制台初始密码
- Token:引擎接口的管理员 Token
*/
public EngineAdmin getEngineAdmin() {
return this.EngineAdmin;
}
/**
* Set 引擎的初始帐号信息。可设置参数:
- Name:控制台初始用户名
- Password:控制台初始密码
- Token:引擎接口的管理员 Token
* @param EngineAdmin 引擎的初始帐号信息。可设置参数:
- Name:控制台初始用户名
- Password:控制台初始密码
- Token:引擎接口的管理员 Token
*/
public void setEngineAdmin(EngineAdmin EngineAdmin) {
this.EngineAdmin = EngineAdmin;
}
/**
* Get 预付费时长,以月为单位
* @return PrepaidPeriod 预付费时长,以月为单位
*/
public Long getPrepaidPeriod() {
return this.PrepaidPeriod;
}
/**
* Set 预付费时长,以月为单位
* @param PrepaidPeriod 预付费时长,以月为单位
*/
public void setPrepaidPeriod(Long PrepaidPeriod) {
this.PrepaidPeriod = PrepaidPeriod;
}
/**
* Get 自动续费标记,仅预付费使用。参考值:
- 0:不自动续费
- 1:自动续费
* @return PrepaidRenewFlag 自动续费标记,仅预付费使用。参考值:
- 0:不自动续费
- 1:自动续费
*/
public Long getPrepaidRenewFlag() {
return this.PrepaidRenewFlag;
}
/**
* Set 自动续费标记,仅预付费使用。参考值:
- 0:不自动续费
- 1:自动续费
* @param PrepaidRenewFlag 自动续费标记,仅预付费使用。参考值:
- 0:不自动续费
- 1:自动续费
*/
public void setPrepaidRenewFlag(Long PrepaidRenewFlag) {
this.PrepaidRenewFlag = PrepaidRenewFlag;
}
public CreateEngineRequest() {
}
/**
* 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 CreateEngineRequest(CreateEngineRequest source) {
if (source.EngineType != null) {
this.EngineType = new String(source.EngineType);
}
if (source.EngineVersion != null) {
this.EngineVersion = new String(source.EngineVersion);
}
if (source.EngineProductVersion != null) {
this.EngineProductVersion = new String(source.EngineProductVersion);
}
if (source.EngineRegion != null) {
this.EngineRegion = new String(source.EngineRegion);
}
if (source.EngineName != null) {
this.EngineName = new String(source.EngineName);
}
if (source.TradeType != null) {
this.TradeType = new Long(source.TradeType);
}
if (source.EngineResourceSpec != null) {
this.EngineResourceSpec = new String(source.EngineResourceSpec);
}
if (source.EngineNodeNum != null) {
this.EngineNodeNum = new Long(source.EngineNodeNum);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.ApolloEnvParams != null) {
this.ApolloEnvParams = new ApolloEnvParam[source.ApolloEnvParams.length];
for (int i = 0; i < source.ApolloEnvParams.length; i++) {
this.ApolloEnvParams[i] = new ApolloEnvParam(source.ApolloEnvParams[i]);
}
}
if (source.EngineTags != null) {
this.EngineTags = new InstanceTagInfo[source.EngineTags.length];
for (int i = 0; i < source.EngineTags.length; i++) {
this.EngineTags[i] = new InstanceTagInfo(source.EngineTags[i]);
}
}
if (source.EngineAdmin != null) {
this.EngineAdmin = new EngineAdmin(source.EngineAdmin);
}
if (source.PrepaidPeriod != null) {
this.PrepaidPeriod = new Long(source.PrepaidPeriod);
}
if (source.PrepaidRenewFlag != null) {
this.PrepaidRenewFlag = new Long(source.PrepaidRenewFlag);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "EngineType", this.EngineType);
this.setParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
this.setParamSimple(map, prefix + "EngineProductVersion", this.EngineProductVersion);
this.setParamSimple(map, prefix + "EngineRegion", this.EngineRegion);
this.setParamSimple(map, prefix + "EngineName", this.EngineName);
this.setParamSimple(map, prefix + "TradeType", this.TradeType);
this.setParamSimple(map, prefix + "EngineResourceSpec", this.EngineResourceSpec);
this.setParamSimple(map, prefix + "EngineNodeNum", this.EngineNodeNum);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamArrayObj(map, prefix + "ApolloEnvParams.", this.ApolloEnvParams);
this.setParamArrayObj(map, prefix + "EngineTags.", this.EngineTags);
this.setParamObj(map, prefix + "EngineAdmin.", this.EngineAdmin);
this.setParamSimple(map, prefix + "PrepaidPeriod", this.PrepaidPeriod);
this.setParamSimple(map, prefix + "PrepaidRenewFlag", this.PrepaidRenewFlag);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy