
com.tencentcloudapi.ckafka.v20190819.models.CreateInstancePostRequest 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.ckafka.v20190819.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateInstancePostRequest extends AbstractModel{
/**
* 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 实例带宽
*/
@SerializedName("BandWidth")
@Expose
private Long BandWidth;
/**
* vpcId,不填默认基础网络
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* 子网id,vpc网络需要传该参数,基础网络可以不传
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
*/
@SerializedName("MsgRetentionTime")
@Expose
private Long MsgRetentionTime;
/**
* 可用区
*/
@SerializedName("ZoneId")
@Expose
private Long ZoneId;
/**
* 创建实例时可以选择集群Id, 该入参表示集群Id
*/
@SerializedName("ClusterId")
@Expose
private Long ClusterId;
/**
* Get 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
* @return InstanceName 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
* @param InstanceName 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 实例带宽
* @return BandWidth 实例带宽
*/
public Long getBandWidth() {
return this.BandWidth;
}
/**
* Set 实例带宽
* @param BandWidth 实例带宽
*/
public void setBandWidth(Long BandWidth) {
this.BandWidth = BandWidth;
}
/**
* Get vpcId,不填默认基础网络
* @return VpcId vpcId,不填默认基础网络
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set vpcId,不填默认基础网络
* @param VpcId vpcId,不填默认基础网络
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get 子网id,vpc网络需要传该参数,基础网络可以不传
* @return SubnetId 子网id,vpc网络需要传该参数,基础网络可以不传
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set 子网id,vpc网络需要传该参数,基础网络可以不传
* @param SubnetId 子网id,vpc网络需要传该参数,基础网络可以不传
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
* @return MsgRetentionTime 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
*/
public Long getMsgRetentionTime() {
return this.MsgRetentionTime;
}
/**
* Set 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
* @param MsgRetentionTime 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
*/
public void setMsgRetentionTime(Long MsgRetentionTime) {
this.MsgRetentionTime = MsgRetentionTime;
}
/**
* Get 可用区
* @return ZoneId 可用区
*/
public Long getZoneId() {
return this.ZoneId;
}
/**
* Set 可用区
* @param ZoneId 可用区
*/
public void setZoneId(Long ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get 创建实例时可以选择集群Id, 该入参表示集群Id
* @return ClusterId 创建实例时可以选择集群Id, 该入参表示集群Id
*/
public Long getClusterId() {
return this.ClusterId;
}
/**
* Set 创建实例时可以选择集群Id, 该入参表示集群Id
* @param ClusterId 创建实例时可以选择集群Id, 该入参表示集群Id
*/
public void setClusterId(Long ClusterId) {
this.ClusterId = ClusterId;
}
public CreateInstancePostRequest() {
}
/**
* 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 CreateInstancePostRequest(CreateInstancePostRequest source) {
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.BandWidth != null) {
this.BandWidth = new Long(source.BandWidth);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.MsgRetentionTime != null) {
this.MsgRetentionTime = new Long(source.MsgRetentionTime);
}
if (source.ZoneId != null) {
this.ZoneId = new Long(source.ZoneId);
}
if (source.ClusterId != null) {
this.ClusterId = new Long(source.ClusterId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "BandWidth", this.BandWidth);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "MsgRetentionTime", this.MsgRetentionTime);
this.setParamSimple(map, prefix + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy