
com.tencentcloudapi.tke.v20180525.models.ClusterBasicSettings 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.tke.v20180525.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ClusterBasicSettings extends AbstractModel{
/**
* 集群操作系统,支持设置公共镜像(字段传相应镜像ID)和自定义镜像(字段传相应镜像Name),详情参考:https://cloud.tencent.com/document/product/457/68289
*/
@SerializedName("ClusterOs")
@Expose
private String ClusterOs;
/**
* 集群版本,默认值为1.10.5
*/
@SerializedName("ClusterVersion")
@Expose
private String ClusterVersion;
/**
* 集群名称
*/
@SerializedName("ClusterName")
@Expose
private String ClusterName;
/**
* 集群描述
*/
@SerializedName("ClusterDescription")
@Expose
private String ClusterDescription;
/**
* 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* 集群内新增资源所属项目ID。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
*/
@SerializedName("TagSpecification")
@Expose
private TagSpecification [] TagSpecification;
/**
* 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
*/
@SerializedName("OsCustomizeType")
@Expose
private String OsCustomizeType;
/**
* 是否开启节点的默认安全组(默认: 否,Alpha特性)
*/
@SerializedName("NeedWorkSecurityGroup")
@Expose
private Boolean NeedWorkSecurityGroup;
/**
* 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* 集群等级,针对托管集群生效
*/
@SerializedName("ClusterLevel")
@Expose
private String ClusterLevel;
/**
* 自动变配集群等级,针对托管集群生效
*/
@SerializedName("AutoUpgradeClusterLevel")
@Expose
private AutoUpgradeClusterLevel AutoUpgradeClusterLevel;
/**
* Get 集群操作系统,支持设置公共镜像(字段传相应镜像ID)和自定义镜像(字段传相应镜像Name),详情参考:https://cloud.tencent.com/document/product/457/68289
* @return ClusterOs 集群操作系统,支持设置公共镜像(字段传相应镜像ID)和自定义镜像(字段传相应镜像Name),详情参考:https://cloud.tencent.com/document/product/457/68289
*/
public String getClusterOs() {
return this.ClusterOs;
}
/**
* Set 集群操作系统,支持设置公共镜像(字段传相应镜像ID)和自定义镜像(字段传相应镜像Name),详情参考:https://cloud.tencent.com/document/product/457/68289
* @param ClusterOs 集群操作系统,支持设置公共镜像(字段传相应镜像ID)和自定义镜像(字段传相应镜像Name),详情参考:https://cloud.tencent.com/document/product/457/68289
*/
public void setClusterOs(String ClusterOs) {
this.ClusterOs = ClusterOs;
}
/**
* Get 集群版本,默认值为1.10.5
* @return ClusterVersion 集群版本,默认值为1.10.5
*/
public String getClusterVersion() {
return this.ClusterVersion;
}
/**
* Set 集群版本,默认值为1.10.5
* @param ClusterVersion 集群版本,默认值为1.10.5
*/
public void setClusterVersion(String ClusterVersion) {
this.ClusterVersion = ClusterVersion;
}
/**
* Get 集群名称
* @return ClusterName 集群名称
*/
public String getClusterName() {
return this.ClusterName;
}
/**
* Set 集群名称
* @param ClusterName 集群名称
*/
public void setClusterName(String ClusterName) {
this.ClusterName = ClusterName;
}
/**
* Get 集群描述
* @return ClusterDescription 集群描述
*/
public String getClusterDescription() {
return this.ClusterDescription;
}
/**
* Set 集群描述
* @param ClusterDescription 集群描述
*/
public void setClusterDescription(String ClusterDescription) {
this.ClusterDescription = ClusterDescription;
}
/**
* Get 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
* @return VpcId 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
* @param VpcId 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get 集群内新增资源所属项目ID。
* @return ProjectId 集群内新增资源所属项目ID。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 集群内新增资源所属项目ID。
* @param ProjectId 集群内新增资源所属项目ID。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
* @return TagSpecification 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
*/
public TagSpecification [] getTagSpecification() {
return this.TagSpecification;
}
/**
* Set 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
* @param TagSpecification 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
*/
public void setTagSpecification(TagSpecification [] TagSpecification) {
this.TagSpecification = TagSpecification;
}
/**
* Get 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
* @return OsCustomizeType 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
*/
public String getOsCustomizeType() {
return this.OsCustomizeType;
}
/**
* Set 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
* @param OsCustomizeType 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
*/
public void setOsCustomizeType(String OsCustomizeType) {
this.OsCustomizeType = OsCustomizeType;
}
/**
* Get 是否开启节点的默认安全组(默认: 否,Alpha特性)
* @return NeedWorkSecurityGroup 是否开启节点的默认安全组(默认: 否,Alpha特性)
*/
public Boolean getNeedWorkSecurityGroup() {
return this.NeedWorkSecurityGroup;
}
/**
* Set 是否开启节点的默认安全组(默认: 否,Alpha特性)
* @param NeedWorkSecurityGroup 是否开启节点的默认安全组(默认: 否,Alpha特性)
*/
public void setNeedWorkSecurityGroup(Boolean NeedWorkSecurityGroup) {
this.NeedWorkSecurityGroup = NeedWorkSecurityGroup;
}
/**
* Get 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
* @return SubnetId 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
* @param SubnetId 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get 集群等级,针对托管集群生效
* @return ClusterLevel 集群等级,针对托管集群生效
*/
public String getClusterLevel() {
return this.ClusterLevel;
}
/**
* Set 集群等级,针对托管集群生效
* @param ClusterLevel 集群等级,针对托管集群生效
*/
public void setClusterLevel(String ClusterLevel) {
this.ClusterLevel = ClusterLevel;
}
/**
* Get 自动变配集群等级,针对托管集群生效
* @return AutoUpgradeClusterLevel 自动变配集群等级,针对托管集群生效
*/
public AutoUpgradeClusterLevel getAutoUpgradeClusterLevel() {
return this.AutoUpgradeClusterLevel;
}
/**
* Set 自动变配集群等级,针对托管集群生效
* @param AutoUpgradeClusterLevel 自动变配集群等级,针对托管集群生效
*/
public void setAutoUpgradeClusterLevel(AutoUpgradeClusterLevel AutoUpgradeClusterLevel) {
this.AutoUpgradeClusterLevel = AutoUpgradeClusterLevel;
}
public ClusterBasicSettings() {
}
/**
* 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 ClusterBasicSettings(ClusterBasicSettings source) {
if (source.ClusterOs != null) {
this.ClusterOs = new String(source.ClusterOs);
}
if (source.ClusterVersion != null) {
this.ClusterVersion = new String(source.ClusterVersion);
}
if (source.ClusterName != null) {
this.ClusterName = new String(source.ClusterName);
}
if (source.ClusterDescription != null) {
this.ClusterDescription = new String(source.ClusterDescription);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.TagSpecification != null) {
this.TagSpecification = new TagSpecification[source.TagSpecification.length];
for (int i = 0; i < source.TagSpecification.length; i++) {
this.TagSpecification[i] = new TagSpecification(source.TagSpecification[i]);
}
}
if (source.OsCustomizeType != null) {
this.OsCustomizeType = new String(source.OsCustomizeType);
}
if (source.NeedWorkSecurityGroup != null) {
this.NeedWorkSecurityGroup = new Boolean(source.NeedWorkSecurityGroup);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.ClusterLevel != null) {
this.ClusterLevel = new String(source.ClusterLevel);
}
if (source.AutoUpgradeClusterLevel != null) {
this.AutoUpgradeClusterLevel = new AutoUpgradeClusterLevel(source.AutoUpgradeClusterLevel);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ClusterOs", this.ClusterOs);
this.setParamSimple(map, prefix + "ClusterVersion", this.ClusterVersion);
this.setParamSimple(map, prefix + "ClusterName", this.ClusterName);
this.setParamSimple(map, prefix + "ClusterDescription", this.ClusterDescription);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamArrayObj(map, prefix + "TagSpecification.", this.TagSpecification);
this.setParamSimple(map, prefix + "OsCustomizeType", this.OsCustomizeType);
this.setParamSimple(map, prefix + "NeedWorkSecurityGroup", this.NeedWorkSecurityGroup);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "ClusterLevel", this.ClusterLevel);
this.setParamObj(map, prefix + "AutoUpgradeClusterLevel.", this.AutoUpgradeClusterLevel);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy