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

com.tencentcloudapi.cynosdb.v20190107.models.AddInstancesRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * 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.cynosdb.v20190107.models;

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

public class AddInstancesRequest extends AbstractModel{

    /**
    * Cluster ID
    */
    @SerializedName("ClusterId")
    @Expose
    private String ClusterId;

    /**
    * Number of CPU cores
    */
    @SerializedName("Cpu")
    @Expose
    private Long Cpu;

    /**
    * Memory
    */
    @SerializedName("Memory")
    @Expose
    private Long Memory;

    /**
    * Number of added read-only instances
    */
    @SerializedName("ReadOnlyCount")
    @Expose
    private Long ReadOnlyCount;

    /**
    * Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created.
    */
    @SerializedName("InstanceGrpId")
    @Expose
    private String InstanceGrpId;

    /**
    * VPC ID
    */
    @SerializedName("VpcId")
    @Expose
    private String VpcId;

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

    /**
    * Port used when adding RO group
    */
    @SerializedName("Port")
    @Expose
    private Long Port;

    /**
    * Instance name
    */
    @SerializedName("InstanceName")
    @Expose
    private String InstanceName;

    /**
    * Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0
    */
    @SerializedName("AutoVoucher")
    @Expose
    private Long AutoVoucher;

    /**
    * Database type. Valid values: 
  • MYSQL
  • */ @SerializedName("DbType") @Expose private String DbType; /** * Order source */ @SerializedName("OrderSource") @Expose private String OrderSource; /** * Get Cluster ID * @return ClusterId Cluster ID */ public String getClusterId() { return this.ClusterId; } /** * Set Cluster ID * @param ClusterId Cluster ID */ public void setClusterId(String ClusterId) { this.ClusterId = ClusterId; } /** * Get Number of CPU cores * @return Cpu Number of CPU cores */ public Long getCpu() { return this.Cpu; } /** * Set Number of CPU cores * @param Cpu Number of CPU cores */ public void setCpu(Long Cpu) { this.Cpu = Cpu; } /** * Get Memory * @return Memory Memory */ public Long getMemory() { return this.Memory; } /** * Set Memory * @param Memory Memory */ public void setMemory(Long Memory) { this.Memory = Memory; } /** * Get Number of added read-only instances * @return ReadOnlyCount Number of added read-only instances */ public Long getReadOnlyCount() { return this.ReadOnlyCount; } /** * Set Number of added read-only instances * @param ReadOnlyCount Number of added read-only instances */ public void setReadOnlyCount(Long ReadOnlyCount) { this.ReadOnlyCount = ReadOnlyCount; } /** * Get Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. * @return InstanceGrpId Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. */ public String getInstanceGrpId() { return this.InstanceGrpId; } /** * Set Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. * @param InstanceGrpId Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. */ public void setInstanceGrpId(String InstanceGrpId) { this.InstanceGrpId = InstanceGrpId; } /** * Get VPC ID * @return VpcId VPC ID */ public String getVpcId() { return this.VpcId; } /** * Set VPC ID * @param VpcId VPC ID */ public void setVpcId(String VpcId) { this.VpcId = VpcId; } /** * Get Subnet ID * @return SubnetId Subnet ID */ public String getSubnetId() { return this.SubnetId; } /** * Set Subnet ID * @param SubnetId Subnet ID */ public void setSubnetId(String SubnetId) { this.SubnetId = SubnetId; } /** * Get Port used when adding RO group * @return Port Port used when adding RO group */ public Long getPort() { return this.Port; } /** * Set Port used when adding RO group * @param Port Port used when adding RO group */ public void setPort(Long Port) { this.Port = Port; } /** * Get Instance name * @return InstanceName Instance name */ public String getInstanceName() { return this.InstanceName; } /** * Set Instance name * @param InstanceName Instance name */ public void setInstanceName(String InstanceName) { this.InstanceName = InstanceName; } /** * Get Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 * @return AutoVoucher Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 */ public Long getAutoVoucher() { return this.AutoVoucher; } /** * Set Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 * @param AutoVoucher Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 */ public void setAutoVoucher(Long AutoVoucher) { this.AutoVoucher = AutoVoucher; } /** * Get Database type. Valid values:
  • MYSQL
  • * @return DbType Database type. Valid values:
  • MYSQL
  • */ public String getDbType() { return this.DbType; } /** * Set Database type. Valid values:
  • MYSQL
  • * @param DbType Database type. Valid values:
  • MYSQL
  • */ public void setDbType(String DbType) { this.DbType = DbType; } /** * Get Order source * @return OrderSource Order source */ public String getOrderSource() { return this.OrderSource; } /** * Set Order source * @param OrderSource Order source */ public void setOrderSource(String OrderSource) { this.OrderSource = OrderSource; } public AddInstancesRequest() { } /** * 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 AddInstancesRequest(AddInstancesRequest source) { if (source.ClusterId != null) { this.ClusterId = new String(source.ClusterId); } if (source.Cpu != null) { this.Cpu = new Long(source.Cpu); } if (source.Memory != null) { this.Memory = new Long(source.Memory); } if (source.ReadOnlyCount != null) { this.ReadOnlyCount = new Long(source.ReadOnlyCount); } if (source.InstanceGrpId != null) { this.InstanceGrpId = new String(source.InstanceGrpId); } if (source.VpcId != null) { this.VpcId = new String(source.VpcId); } if (source.SubnetId != null) { this.SubnetId = new String(source.SubnetId); } if (source.Port != null) { this.Port = new Long(source.Port); } if (source.InstanceName != null) { this.InstanceName = new String(source.InstanceName); } if (source.AutoVoucher != null) { this.AutoVoucher = new Long(source.AutoVoucher); } if (source.DbType != null) { this.DbType = new String(source.DbType); } if (source.OrderSource != null) { this.OrderSource = new String(source.OrderSource); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "ClusterId", this.ClusterId); this.setParamSimple(map, prefix + "Cpu", this.Cpu); this.setParamSimple(map, prefix + "Memory", this.Memory); this.setParamSimple(map, prefix + "ReadOnlyCount", this.ReadOnlyCount); this.setParamSimple(map, prefix + "InstanceGrpId", this.InstanceGrpId); this.setParamSimple(map, prefix + "VpcId", this.VpcId); this.setParamSimple(map, prefix + "SubnetId", this.SubnetId); this.setParamSimple(map, prefix + "Port", this.Port); this.setParamSimple(map, prefix + "InstanceName", this.InstanceName); this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher); this.setParamSimple(map, prefix + "DbType", this.DbType); this.setParamSimple(map, prefix + "OrderSource", this.OrderSource); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy