All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.es.v20180416.models.CreateLogstashInstanceRequest 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.es.v20180416.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class CreateLogstashInstanceRequest extends AbstractModel {

    /**
    * 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_)
    */
    @SerializedName("InstanceName")
    @Expose
    private String InstanceName;

    /**
    * 可用区
    */
    @SerializedName("Zone")
    @Expose
    private String Zone;

    /**
    * 实例版本(支持"6.8.13"、"7.10.1")
    */
    @SerializedName("LogstashVersion")
    @Expose
    private String LogstashVersion;

    /**
    * 私有网络ID
    */
    @SerializedName("VpcId")
    @Expose
    private String VpcId;

    /**
    * 子网ID
    */
    @SerializedName("SubnetId")
    @Expose
    private String SubnetId;

    /**
    * 节点数量(2-50个)
    */
    @SerializedName("NodeNum")
    @Expose
    private Long NodeNum;

    /**
    * 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR */ @SerializedName("ChargeType") @Expose private String ChargeType; /** * 包年包月购买时长(单位由参数TimeUnit决定) */ @SerializedName("ChargePeriod") @Expose private Long ChargePeriod; /** * 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) */ @SerializedName("TimeUnit") @Expose private String TimeUnit; /** * 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 */ @SerializedName("AutoVoucher") @Expose private Long AutoVoucher; /** * 代金券ID列表(目前仅支持指定一张代金券) */ @SerializedName("VoucherIds") @Expose private String [] VoucherIds; /** * 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 */ @SerializedName("RenewFlag") @Expose private String RenewFlag; /** * 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • */ @SerializedName("NodeType") @Expose private String NodeType; /** * 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD */ @SerializedName("DiskType") @Expose private String DiskType; /** * 节点磁盘容量(单位GB) */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack */ @SerializedName("LicenseType") @Expose private String LicenseType; /** * 标签信息列表 */ @SerializedName("TagList") @Expose private TagInfo [] TagList; /** * 可维护时间段 */ @SerializedName("OperationDuration") @Expose private OperationDuration OperationDuration; /** * Get 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) * @return InstanceName 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) */ public String getInstanceName() { return this.InstanceName; } /** * Set 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) * @param InstanceName 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) */ public void setInstanceName(String InstanceName) { this.InstanceName = InstanceName; } /** * Get 可用区 * @return Zone 可用区 */ public String getZone() { return this.Zone; } /** * Set 可用区 * @param Zone 可用区 */ public void setZone(String Zone) { this.Zone = Zone; } /** * Get 实例版本(支持"6.8.13"、"7.10.1") * @return LogstashVersion 实例版本(支持"6.8.13"、"7.10.1") */ public String getLogstashVersion() { return this.LogstashVersion; } /** * Set 实例版本(支持"6.8.13"、"7.10.1") * @param LogstashVersion 实例版本(支持"6.8.13"、"7.10.1") */ public void setLogstashVersion(String LogstashVersion) { this.LogstashVersion = LogstashVersion; } /** * Get 私有网络ID * @return VpcId 私有网络ID */ public String getVpcId() { return this.VpcId; } /** * Set 私有网络ID * @param VpcId 私有网络ID */ public void setVpcId(String VpcId) { this.VpcId = VpcId; } /** * Get 子网ID * @return SubnetId 子网ID */ public String getSubnetId() { return this.SubnetId; } /** * Set 子网ID * @param SubnetId 子网ID */ public void setSubnetId(String SubnetId) { this.SubnetId = SubnetId; } /** * Get 节点数量(2-50个) * @return NodeNum 节点数量(2-50个) */ public Long getNodeNum() { return this.NodeNum; } /** * Set 节点数量(2-50个) * @param NodeNum 节点数量(2-50个) */ public void setNodeNum(Long NodeNum) { this.NodeNum = NodeNum; } /** * Get 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR * @return ChargeType 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR */ public String getChargeType() { return this.ChargeType; } /** * Set 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR * @param ChargeType 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR */ public void setChargeType(String ChargeType) { this.ChargeType = ChargeType; } /** * Get 包年包月购买时长(单位由参数TimeUnit决定) * @return ChargePeriod 包年包月购买时长(单位由参数TimeUnit决定) */ public Long getChargePeriod() { return this.ChargePeriod; } /** * Set 包年包月购买时长(单位由参数TimeUnit决定) * @param ChargePeriod 包年包月购买时长(单位由参数TimeUnit决定) */ public void setChargePeriod(Long ChargePeriod) { this.ChargePeriod = ChargePeriod; } /** * Get 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) * @return TimeUnit 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) */ public String getTimeUnit() { return this.TimeUnit; } /** * Set 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) * @param TimeUnit 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) */ public void setTimeUnit(String TimeUnit) { this.TimeUnit = TimeUnit; } /** * Get 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 * @return AutoVoucher 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 */ public Long getAutoVoucher() { return this.AutoVoucher; } /** * Set 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 * @param AutoVoucher 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 */ public void setAutoVoucher(Long AutoVoucher) { this.AutoVoucher = AutoVoucher; } /** * Get 代金券ID列表(目前仅支持指定一张代金券) * @return VoucherIds 代金券ID列表(目前仅支持指定一张代金券) */ public String [] getVoucherIds() { return this.VoucherIds; } /** * Set 代金券ID列表(目前仅支持指定一张代金券) * @param VoucherIds 代金券ID列表(目前仅支持指定一张代金券) */ public void setVoucherIds(String [] VoucherIds) { this.VoucherIds = VoucherIds; } /** * Get 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 * @return RenewFlag 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 */ public String getRenewFlag() { return this.RenewFlag; } /** * Set 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 * @param RenewFlag 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 */ public void setRenewFlag(String RenewFlag) { this.RenewFlag = RenewFlag; } /** * Get 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • * @return NodeType 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • */ public String getNodeType() { return this.NodeType; } /** * Set 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • * @param NodeType 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • */ public void setNodeType(String NodeType) { this.NodeType = NodeType; } /** * Get 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD * @return DiskType 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD */ public String getDiskType() { return this.DiskType; } /** * Set 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD * @param DiskType 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get 节点磁盘容量(单位GB) * @return DiskSize 节点磁盘容量(单位GB) */ public Long getDiskSize() { return this.DiskSize; } /** * Set 节点磁盘容量(单位GB) * @param DiskSize 节点磁盘容量(单位GB) */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack * @return LicenseType License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack */ public String getLicenseType() { return this.LicenseType; } /** * Set License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack * @param LicenseType License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack */ public void setLicenseType(String LicenseType) { this.LicenseType = LicenseType; } /** * Get 标签信息列表 * @return TagList 标签信息列表 */ public TagInfo [] getTagList() { return this.TagList; } /** * Set 标签信息列表 * @param TagList 标签信息列表 */ public void setTagList(TagInfo [] TagList) { this.TagList = TagList; } /** * Get 可维护时间段 * @return OperationDuration 可维护时间段 */ public OperationDuration getOperationDuration() { return this.OperationDuration; } /** * Set 可维护时间段 * @param OperationDuration 可维护时间段 */ public void setOperationDuration(OperationDuration OperationDuration) { this.OperationDuration = OperationDuration; } public CreateLogstashInstanceRequest() { } /** * 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 CreateLogstashInstanceRequest(CreateLogstashInstanceRequest source) { if (source.InstanceName != null) { this.InstanceName = new String(source.InstanceName); } if (source.Zone != null) { this.Zone = new String(source.Zone); } if (source.LogstashVersion != null) { this.LogstashVersion = new String(source.LogstashVersion); } if (source.VpcId != null) { this.VpcId = new String(source.VpcId); } if (source.SubnetId != null) { this.SubnetId = new String(source.SubnetId); } if (source.NodeNum != null) { this.NodeNum = new Long(source.NodeNum); } if (source.ChargeType != null) { this.ChargeType = new String(source.ChargeType); } if (source.ChargePeriod != null) { this.ChargePeriod = new Long(source.ChargePeriod); } if (source.TimeUnit != null) { this.TimeUnit = new String(source.TimeUnit); } if (source.AutoVoucher != null) { this.AutoVoucher = new Long(source.AutoVoucher); } if (source.VoucherIds != null) { this.VoucherIds = new String[source.VoucherIds.length]; for (int i = 0; i < source.VoucherIds.length; i++) { this.VoucherIds[i] = new String(source.VoucherIds[i]); } } if (source.RenewFlag != null) { this.RenewFlag = new String(source.RenewFlag); } if (source.NodeType != null) { this.NodeType = new String(source.NodeType); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.LicenseType != null) { this.LicenseType = new String(source.LicenseType); } if (source.TagList != null) { this.TagList = new TagInfo[source.TagList.length]; for (int i = 0; i < source.TagList.length; i++) { this.TagList[i] = new TagInfo(source.TagList[i]); } } if (source.OperationDuration != null) { this.OperationDuration = new OperationDuration(source.OperationDuration); } } /** * 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 + "Zone", this.Zone); this.setParamSimple(map, prefix + "LogstashVersion", this.LogstashVersion); this.setParamSimple(map, prefix + "VpcId", this.VpcId); this.setParamSimple(map, prefix + "SubnetId", this.SubnetId); this.setParamSimple(map, prefix + "NodeNum", this.NodeNum); this.setParamSimple(map, prefix + "ChargeType", this.ChargeType); this.setParamSimple(map, prefix + "ChargePeriod", this.ChargePeriod); this.setParamSimple(map, prefix + "TimeUnit", this.TimeUnit); this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher); this.setParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds); this.setParamSimple(map, prefix + "RenewFlag", this.RenewFlag); this.setParamSimple(map, prefix + "NodeType", this.NodeType); this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "DiskSize", this.DiskSize); this.setParamSimple(map, prefix + "LicenseType", this.LicenseType); this.setParamArrayObj(map, prefix + "TagList.", this.TagList); this.setParamObj(map, prefix + "OperationDuration.", this.OperationDuration); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy