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

com.tencentcloudapi.redis.v20180412.models.CreateInstancesRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
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.redis.v20180412.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 CreateInstancesRequest extends AbstractModel {

    /**
    * Instance type
  • `2`: Redis 2.8 Memory Edition (Standard Architecture).
  • `3`: CKV 3.2 Memory Edition (Standard Architecture).
  • `4`: CKV 3.2 Memory Edition (Cluster Architecture).
  • `6`: Redis 4.0 Memory Edition (Standard Architecture).
  • `7`: Redis 4.0 Memory Edition (Cluster Architecture).
  • `8`: Redis 5.0 Memory Edition (Standard Architecture).
  • `9`: Redis 5.0 Memory Edition (Cluster Architecture).
  • `15`: Redis 6.2 Memory Edition (Standard Architecture).
  • `16`: Redis 6.2 Memory Edition (Cluster Architecture).
*/ @SerializedName("TypeId") @Expose private Long TypeId; /** * Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. */ @SerializedName("MemSize") @Expose private Long MemSize; /** * The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. */ @SerializedName("GoodsNum") @Expose private Long GoodsNum; /** * The purchase duration of an instance - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. */ @SerializedName("Period") @Expose private Long Period; /** * Billing mode. 0: pay-as-you-go */ @SerializedName("BillingMode") @Expose private Long BillingMode; /** * ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ @SerializedName("ZoneId") @Expose private Long ZoneId; /** * Instance access password - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. */ @SerializedName("Password") @Expose private String Password; /** * VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). */ @SerializedName("VpcId") @Expose private String VpcId; /** * VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). */ @SerializedName("SubnetId") @Expose private String SubnetId; /** * Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. */ @SerializedName("ProjectId") @Expose private Long ProjectId; /** * Auto-renewal flag - `0`: Manual renewal (default). - `1`: Auto-renewal. - `2`: Not auto-renewal (set by user). */ @SerializedName("AutoRenew") @Expose private Long AutoRenew; /** * Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. */ @SerializedName("SecurityGroupIdList") @Expose private String [] SecurityGroupIdList; /** * User-defined network port. Default value: `6379`. Range: [1024,65535]. */ @SerializedName("VPort") @Expose private Long VPort; /** * Quantity of instance shards - This parameter is not required for instances of Standard Edition. - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. */ @SerializedName("RedisShardNum") @Expose private Long RedisShardNum; /** * Quantity of instance replicas - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. */ @SerializedName("RedisReplicasNum") @Expose private Long RedisReplicasNum; /** * Whether to support read-only replicas. - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. - To enable read-only replicas, we recommend that you create two or more replicas. */ @SerializedName("ReplicasReadonly") @Expose private Boolean ReplicasReadonly; /** * Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. */ @SerializedName("InstanceName") @Expose private String InstanceName; /** * Whether to support password-free access for an instance - `true`: The instance access is password-free. - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. */ @SerializedName("NoAuth") @Expose private Boolean NoAuth; /** * The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. */ @SerializedName("NodeSet") @Expose private RedisNodeInfo [] NodeSet; /** * The tag for an instance */ @SerializedName("ResourceTags") @Expose private ResourceTag [] ResourceTags; /** * Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ @SerializedName("ZoneName") @Expose private String ZoneName; /** * The parameter template ID associated with the instance - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. */ @SerializedName("TemplateId") @Expose private String TemplateId; /** * An internal parameter used to indicate whether to check when creating an instance. - `false`: Default value. Send a normal request and create an instance if all the requirements are met. - `true`: Send a check request and create no instance. */ @SerializedName("DryRun") @Expose private Boolean DryRun; /** * The product edition of the instance - `local`: Local Disk Edition. - `cloud`: Cloud Disk Edition. - `cdc`: Dedicated Cluster Edition. Default value: `local`. */ @SerializedName("ProductVersion") @Expose private String ProductVersion; /** * Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. */ @SerializedName("RedisClusterId") @Expose private String RedisClusterId; /** * Alarm policy ID array.- Please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to access the alarm policy ID.- If this parameter is not configured, the default alarm policy will be bound. For the specific information about the default alarm policy, please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to view. */ @SerializedName("AlarmPolicyList") @Expose private String [] AlarmPolicyList; /** * Get Instance type
  • `2`: Redis 2.8 Memory Edition (Standard Architecture).
  • `3`: CKV 3.2 Memory Edition (Standard Architecture).
  • `4`: CKV 3.2 Memory Edition (Cluster Architecture).
  • `6`: Redis 4.0 Memory Edition (Standard Architecture).
  • `7`: Redis 4.0 Memory Edition (Cluster Architecture).
  • `8`: Redis 5.0 Memory Edition (Standard Architecture).
  • `9`: Redis 5.0 Memory Edition (Cluster Architecture).
  • `15`: Redis 6.2 Memory Edition (Standard Architecture).
  • `16`: Redis 6.2 Memory Edition (Cluster Architecture).
* @return TypeId Instance type
  • `2`: Redis 2.8 Memory Edition (Standard Architecture).
  • `3`: CKV 3.2 Memory Edition (Standard Architecture).
  • `4`: CKV 3.2 Memory Edition (Cluster Architecture).
  • `6`: Redis 4.0 Memory Edition (Standard Architecture).
  • `7`: Redis 4.0 Memory Edition (Cluster Architecture).
  • `8`: Redis 5.0 Memory Edition (Standard Architecture).
  • `9`: Redis 5.0 Memory Edition (Cluster Architecture).
  • `15`: Redis 6.2 Memory Edition (Standard Architecture).
  • `16`: Redis 6.2 Memory Edition (Cluster Architecture).
*/ public Long getTypeId() { return this.TypeId; } /** * Set Instance type
  • `2`: Redis 2.8 Memory Edition (Standard Architecture).
  • `3`: CKV 3.2 Memory Edition (Standard Architecture).
  • `4`: CKV 3.2 Memory Edition (Cluster Architecture).
  • `6`: Redis 4.0 Memory Edition (Standard Architecture).
  • `7`: Redis 4.0 Memory Edition (Cluster Architecture).
  • `8`: Redis 5.0 Memory Edition (Standard Architecture).
  • `9`: Redis 5.0 Memory Edition (Cluster Architecture).
  • `15`: Redis 6.2 Memory Edition (Standard Architecture).
  • `16`: Redis 6.2 Memory Edition (Cluster Architecture).
* @param TypeId Instance type
  • `2`: Redis 2.8 Memory Edition (Standard Architecture).
  • `3`: CKV 3.2 Memory Edition (Standard Architecture).
  • `4`: CKV 3.2 Memory Edition (Cluster Architecture).
  • `6`: Redis 4.0 Memory Edition (Standard Architecture).
  • `7`: Redis 4.0 Memory Edition (Cluster Architecture).
  • `8`: Redis 5.0 Memory Edition (Standard Architecture).
  • `9`: Redis 5.0 Memory Edition (Cluster Architecture).
  • `15`: Redis 6.2 Memory Edition (Standard Architecture).
  • `16`: Redis 6.2 Memory Edition (Cluster Architecture).
*/ public void setTypeId(Long TypeId) { this.TypeId = TypeId; } /** * Get Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. * @return MemSize Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. */ public Long getMemSize() { return this.MemSize; } /** * Set Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. * @param MemSize Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. */ public void setMemSize(Long MemSize) { this.MemSize = MemSize; } /** * Get The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. * @return GoodsNum The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. */ public Long getGoodsNum() { return this.GoodsNum; } /** * Set The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. * @param GoodsNum The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. */ public void setGoodsNum(Long GoodsNum) { this.GoodsNum = GoodsNum; } /** * Get The purchase duration of an instance - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. * @return Period The purchase duration of an instance - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. */ public Long getPeriod() { return this.Period; } /** * Set The purchase duration of an instance - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. * @param Period The purchase duration of an instance - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. */ public void setPeriod(Long Period) { this.Period = Period; } /** * Get Billing mode. 0: pay-as-you-go * @return BillingMode Billing mode. 0: pay-as-you-go */ public Long getBillingMode() { return this.BillingMode; } /** * Set Billing mode. 0: pay-as-you-go * @param BillingMode Billing mode. 0: pay-as-you-go */ public void setBillingMode(Long BillingMode) { this.BillingMode = BillingMode; } /** * Get ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). * @return ZoneId ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ public Long getZoneId() { return this.ZoneId; } /** * Set ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). * @param ZoneId ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ public void setZoneId(Long ZoneId) { this.ZoneId = ZoneId; } /** * Get Instance access password - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. * @return Password Instance access password - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. */ public String getPassword() { return this.Password; } /** * Set Instance access password - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. * @param Password Instance access password - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. */ public void setPassword(String Password) { this.Password = Password; } /** * Get VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). * @return VpcId VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). */ public String getVpcId() { return this.VpcId; } /** * Set VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). * @param VpcId VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). */ public void setVpcId(String VpcId) { this.VpcId = VpcId; } /** * Get VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). * @return SubnetId VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). */ public String getSubnetId() { return this.SubnetId; } /** * Set VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). * @param SubnetId VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). */ public void setSubnetId(String SubnetId) { this.SubnetId = SubnetId; } /** * Get Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. * @return ProjectId Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. */ public Long getProjectId() { return this.ProjectId; } /** * Set Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. * @param ProjectId Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get Auto-renewal flag - `0`: Manual renewal (default). - `1`: Auto-renewal. - `2`: Not auto-renewal (set by user). * @return AutoRenew Auto-renewal flag - `0`: Manual renewal (default). - `1`: Auto-renewal. - `2`: Not auto-renewal (set by user). */ public Long getAutoRenew() { return this.AutoRenew; } /** * Set Auto-renewal flag - `0`: Manual renewal (default). - `1`: Auto-renewal. - `2`: Not auto-renewal (set by user). * @param AutoRenew Auto-renewal flag - `0`: Manual renewal (default). - `1`: Auto-renewal. - `2`: Not auto-renewal (set by user). */ public void setAutoRenew(Long AutoRenew) { this.AutoRenew = AutoRenew; } /** * Get Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. * @return SecurityGroupIdList Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. */ public String [] getSecurityGroupIdList() { return this.SecurityGroupIdList; } /** * Set Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. * @param SecurityGroupIdList Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. */ public void setSecurityGroupIdList(String [] SecurityGroupIdList) { this.SecurityGroupIdList = SecurityGroupIdList; } /** * Get User-defined network port. Default value: `6379`. Range: [1024,65535]. * @return VPort User-defined network port. Default value: `6379`. Range: [1024,65535]. */ public Long getVPort() { return this.VPort; } /** * Set User-defined network port. Default value: `6379`. Range: [1024,65535]. * @param VPort User-defined network port. Default value: `6379`. Range: [1024,65535]. */ public void setVPort(Long VPort) { this.VPort = VPort; } /** * Get Quantity of instance shards - This parameter is not required for instances of Standard Edition. - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. * @return RedisShardNum Quantity of instance shards - This parameter is not required for instances of Standard Edition. - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. */ public Long getRedisShardNum() { return this.RedisShardNum; } /** * Set Quantity of instance shards - This parameter is not required for instances of Standard Edition. - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. * @param RedisShardNum Quantity of instance shards - This parameter is not required for instances of Standard Edition. - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. */ public void setRedisShardNum(Long RedisShardNum) { this.RedisShardNum = RedisShardNum; } /** * Get Quantity of instance replicas - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. * @return RedisReplicasNum Quantity of instance replicas - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. */ public Long getRedisReplicasNum() { return this.RedisReplicasNum; } /** * Set Quantity of instance replicas - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. * @param RedisReplicasNum Quantity of instance replicas - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. */ public void setRedisReplicasNum(Long RedisReplicasNum) { this.RedisReplicasNum = RedisReplicasNum; } /** * Get Whether to support read-only replicas. - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. - To enable read-only replicas, we recommend that you create two or more replicas. * @return ReplicasReadonly Whether to support read-only replicas. - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. - To enable read-only replicas, we recommend that you create two or more replicas. */ public Boolean getReplicasReadonly() { return this.ReplicasReadonly; } /** * Set Whether to support read-only replicas. - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. - To enable read-only replicas, we recommend that you create two or more replicas. * @param ReplicasReadonly Whether to support read-only replicas. - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. - To enable read-only replicas, we recommend that you create two or more replicas. */ public void setReplicasReadonly(Boolean ReplicasReadonly) { this.ReplicasReadonly = ReplicasReadonly; } /** * Get Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. * @return InstanceName Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. */ public String getInstanceName() { return this.InstanceName; } /** * Set Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. * @param InstanceName Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. */ public void setInstanceName(String InstanceName) { this.InstanceName = InstanceName; } /** * Get Whether to support password-free access for an instance - `true`: The instance access is password-free. - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. * @return NoAuth Whether to support password-free access for an instance - `true`: The instance access is password-free. - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. */ public Boolean getNoAuth() { return this.NoAuth; } /** * Set Whether to support password-free access for an instance - `true`: The instance access is password-free. - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. * @param NoAuth Whether to support password-free access for an instance - `true`: The instance access is password-free. - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. */ public void setNoAuth(Boolean NoAuth) { this.NoAuth = NoAuth; } /** * Get The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. * @return NodeSet The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. */ public RedisNodeInfo [] getNodeSet() { return this.NodeSet; } /** * Set The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. * @param NodeSet The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. */ public void setNodeSet(RedisNodeInfo [] NodeSet) { this.NodeSet = NodeSet; } /** * Get The tag for an instance * @return ResourceTags The tag for an instance */ public ResourceTag [] getResourceTags() { return this.ResourceTags; } /** * Set The tag for an instance * @param ResourceTags The tag for an instance */ public void setResourceTags(ResourceTag [] ResourceTags) { this.ResourceTags = ResourceTags; } /** * Get Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). * @return ZoneName Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ public String getZoneName() { return this.ZoneName; } /** * Set Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). * @param ZoneName Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). */ public void setZoneName(String ZoneName) { this.ZoneName = ZoneName; } /** * Get The parameter template ID associated with the instance - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. * @return TemplateId The parameter template ID associated with the instance - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. */ public String getTemplateId() { return this.TemplateId; } /** * Set The parameter template ID associated with the instance - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. * @param TemplateId The parameter template ID associated with the instance - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. */ public void setTemplateId(String TemplateId) { this.TemplateId = TemplateId; } /** * Get An internal parameter used to indicate whether to check when creating an instance. - `false`: Default value. Send a normal request and create an instance if all the requirements are met. - `true`: Send a check request and create no instance. * @return DryRun An internal parameter used to indicate whether to check when creating an instance. - `false`: Default value. Send a normal request and create an instance if all the requirements are met. - `true`: Send a check request and create no instance. */ public Boolean getDryRun() { return this.DryRun; } /** * Set An internal parameter used to indicate whether to check when creating an instance. - `false`: Default value. Send a normal request and create an instance if all the requirements are met. - `true`: Send a check request and create no instance. * @param DryRun An internal parameter used to indicate whether to check when creating an instance. - `false`: Default value. Send a normal request and create an instance if all the requirements are met. - `true`: Send a check request and create no instance. */ public void setDryRun(Boolean DryRun) { this.DryRun = DryRun; } /** * Get The product edition of the instance - `local`: Local Disk Edition. - `cloud`: Cloud Disk Edition. - `cdc`: Dedicated Cluster Edition. Default value: `local`. * @return ProductVersion The product edition of the instance - `local`: Local Disk Edition. - `cloud`: Cloud Disk Edition. - `cdc`: Dedicated Cluster Edition. Default value: `local`. */ public String getProductVersion() { return this.ProductVersion; } /** * Set The product edition of the instance - `local`: Local Disk Edition. - `cloud`: Cloud Disk Edition. - `cdc`: Dedicated Cluster Edition. Default value: `local`. * @param ProductVersion The product edition of the instance - `local`: Local Disk Edition. - `cloud`: Cloud Disk Edition. - `cdc`: Dedicated Cluster Edition. Default value: `local`. */ public void setProductVersion(String ProductVersion) { this.ProductVersion = ProductVersion; } /** * Get Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. * @return RedisClusterId Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. */ public String getRedisClusterId() { return this.RedisClusterId; } /** * Set Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. * @param RedisClusterId Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. */ public void setRedisClusterId(String RedisClusterId) { this.RedisClusterId = RedisClusterId; } /** * Get Alarm policy ID array.- Please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to access the alarm policy ID.- If this parameter is not configured, the default alarm policy will be bound. For the specific information about the default alarm policy, please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to view. * @return AlarmPolicyList Alarm policy ID array.- Please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to access the alarm policy ID.- If this parameter is not configured, the default alarm policy will be bound. For the specific information about the default alarm policy, please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to view. */ public String [] getAlarmPolicyList() { return this.AlarmPolicyList; } /** * Set Alarm policy ID array.- Please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to access the alarm policy ID.- If this parameter is not configured, the default alarm policy will be bound. For the specific information about the default alarm policy, please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to view. * @param AlarmPolicyList Alarm policy ID array.- Please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to access the alarm policy ID.- If this parameter is not configured, the default alarm policy will be bound. For the specific information about the default alarm policy, please log in to [Tencent Cloud Observability Platform - Alarm Management - Policy Management](https://console.cloud.tencent.com/monitor/alarm/policy) to view. */ public void setAlarmPolicyList(String [] AlarmPolicyList) { this.AlarmPolicyList = AlarmPolicyList; } public CreateInstancesRequest() { } /** * 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 CreateInstancesRequest(CreateInstancesRequest source) { if (source.TypeId != null) { this.TypeId = new Long(source.TypeId); } if (source.MemSize != null) { this.MemSize = new Long(source.MemSize); } if (source.GoodsNum != null) { this.GoodsNum = new Long(source.GoodsNum); } if (source.Period != null) { this.Period = new Long(source.Period); } if (source.BillingMode != null) { this.BillingMode = new Long(source.BillingMode); } if (source.ZoneId != null) { this.ZoneId = new Long(source.ZoneId); } if (source.Password != null) { this.Password = new String(source.Password); } if (source.VpcId != null) { this.VpcId = new String(source.VpcId); } if (source.SubnetId != null) { this.SubnetId = new String(source.SubnetId); } if (source.ProjectId != null) { this.ProjectId = new Long(source.ProjectId); } if (source.AutoRenew != null) { this.AutoRenew = new Long(source.AutoRenew); } if (source.SecurityGroupIdList != null) { this.SecurityGroupIdList = new String[source.SecurityGroupIdList.length]; for (int i = 0; i < source.SecurityGroupIdList.length; i++) { this.SecurityGroupIdList[i] = new String(source.SecurityGroupIdList[i]); } } if (source.VPort != null) { this.VPort = new Long(source.VPort); } if (source.RedisShardNum != null) { this.RedisShardNum = new Long(source.RedisShardNum); } if (source.RedisReplicasNum != null) { this.RedisReplicasNum = new Long(source.RedisReplicasNum); } if (source.ReplicasReadonly != null) { this.ReplicasReadonly = new Boolean(source.ReplicasReadonly); } if (source.InstanceName != null) { this.InstanceName = new String(source.InstanceName); } if (source.NoAuth != null) { this.NoAuth = new Boolean(source.NoAuth); } if (source.NodeSet != null) { this.NodeSet = new RedisNodeInfo[source.NodeSet.length]; for (int i = 0; i < source.NodeSet.length; i++) { this.NodeSet[i] = new RedisNodeInfo(source.NodeSet[i]); } } if (source.ResourceTags != null) { this.ResourceTags = new ResourceTag[source.ResourceTags.length]; for (int i = 0; i < source.ResourceTags.length; i++) { this.ResourceTags[i] = new ResourceTag(source.ResourceTags[i]); } } if (source.ZoneName != null) { this.ZoneName = new String(source.ZoneName); } if (source.TemplateId != null) { this.TemplateId = new String(source.TemplateId); } if (source.DryRun != null) { this.DryRun = new Boolean(source.DryRun); } if (source.ProductVersion != null) { this.ProductVersion = new String(source.ProductVersion); } if (source.RedisClusterId != null) { this.RedisClusterId = new String(source.RedisClusterId); } if (source.AlarmPolicyList != null) { this.AlarmPolicyList = new String[source.AlarmPolicyList.length]; for (int i = 0; i < source.AlarmPolicyList.length; i++) { this.AlarmPolicyList[i] = new String(source.AlarmPolicyList[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "TypeId", this.TypeId); this.setParamSimple(map, prefix + "MemSize", this.MemSize); this.setParamSimple(map, prefix + "GoodsNum", this.GoodsNum); this.setParamSimple(map, prefix + "Period", this.Period); this.setParamSimple(map, prefix + "BillingMode", this.BillingMode); this.setParamSimple(map, prefix + "ZoneId", this.ZoneId); this.setParamSimple(map, prefix + "Password", this.Password); this.setParamSimple(map, prefix + "VpcId", this.VpcId); this.setParamSimple(map, prefix + "SubnetId", this.SubnetId); this.setParamSimple(map, prefix + "ProjectId", this.ProjectId); this.setParamSimple(map, prefix + "AutoRenew", this.AutoRenew); this.setParamArraySimple(map, prefix + "SecurityGroupIdList.", this.SecurityGroupIdList); this.setParamSimple(map, prefix + "VPort", this.VPort); this.setParamSimple(map, prefix + "RedisShardNum", this.RedisShardNum); this.setParamSimple(map, prefix + "RedisReplicasNum", this.RedisReplicasNum); this.setParamSimple(map, prefix + "ReplicasReadonly", this.ReplicasReadonly); this.setParamSimple(map, prefix + "InstanceName", this.InstanceName); this.setParamSimple(map, prefix + "NoAuth", this.NoAuth); this.setParamArrayObj(map, prefix + "NodeSet.", this.NodeSet); this.setParamArrayObj(map, prefix + "ResourceTags.", this.ResourceTags); this.setParamSimple(map, prefix + "ZoneName", this.ZoneName); this.setParamSimple(map, prefix + "TemplateId", this.TemplateId); this.setParamSimple(map, prefix + "DryRun", this.DryRun); this.setParamSimple(map, prefix + "ProductVersion", this.ProductVersion); this.setParamSimple(map, prefix + "RedisClusterId", this.RedisClusterId); this.setParamArraySimple(map, prefix + "AlarmPolicyList.", this.AlarmPolicyList); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy