
com.tencentcloudapi.ckafka.v20190819.models.CreateInstancePreRequest 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 CreateInstancePreRequest extends AbstractModel{
/**
* 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 可用区
*/
@SerializedName("ZoneId")
@Expose
private Long ZoneId;
/**
* 预付费购买时长,例如 "1m",就是一个月
*/
@SerializedName("Period")
@Expose
private String Period;
/**
* 实例规格,1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
*/
@SerializedName("InstanceType")
@Expose
private Long InstanceType;
/**
* 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;
/**
* 创建实例时可以选择集群Id, 该入参表示集群Id
*/
@SerializedName("ClusterId")
@Expose
private Long ClusterId;
/**
* 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
*/
@SerializedName("RenewFlag")
@Expose
private Long RenewFlag;
/**
* 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 ZoneId 可用区
*/
public Long getZoneId() {
return this.ZoneId;
}
/**
* Set 可用区
* @param ZoneId 可用区
*/
public void setZoneId(Long ZoneId) {
this.ZoneId = ZoneId;
}
/**
* Get 预付费购买时长,例如 "1m",就是一个月
* @return Period 预付费购买时长,例如 "1m",就是一个月
*/
public String getPeriod() {
return this.Period;
}
/**
* Set 预付费购买时长,例如 "1m",就是一个月
* @param Period 预付费购买时长,例如 "1m",就是一个月
*/
public void setPeriod(String Period) {
this.Period = Period;
}
/**
* Get 实例规格,1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
* @return InstanceType 实例规格,1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
*/
public Long getInstanceType() {
return this.InstanceType;
}
/**
* Set 实例规格,1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
* @param InstanceType 实例规格,1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
*/
public void setInstanceType(Long InstanceType) {
this.InstanceType = InstanceType;
}
/**
* 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 创建实例时可以选择集群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;
}
/**
* Get 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
* @return RenewFlag 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
*/
public Long getRenewFlag() {
return this.RenewFlag;
}
/**
* Set 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
* @param RenewFlag 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
*/
public void setRenewFlag(Long RenewFlag) {
this.RenewFlag = RenewFlag;
}
/**
* 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 + "ZoneId", this.ZoneId);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
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 + "ClusterId", this.ClusterId);
this.setParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy