com.tencentcloudapi.sqlserver.v20180328.models.CreateDBInstancesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.sqlserver.v20180328.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateDBInstancesRequest extends AbstractModel{
/**
* Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* Instance memory size in GB
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* Instance storage capacity in GB
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* Billing mode. Valid value: POSTPAID (pay-as-you-go).
*/
@SerializedName("InstanceChargeType")
@Expose
private String InstanceChargeType;
/**
* Project ID
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* Number of instances purchased this time. Default value: 1. Maximum value: 10
*/
@SerializedName("GoodsNum")
@Expose
private Long GoodsNum;
/**
* VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
@SerializedName("SubnetId")
@Expose
private String SubnetId;
/**
* VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* Whether to automatically use voucher. 0: no, 1: yes. Default value: no
*/
@SerializedName("AutoVoucher")
@Expose
private Long AutoVoucher;
/**
* Array of voucher IDs (currently, only one voucher can be used per order)
*/
@SerializedName("VoucherIds")
@Expose
private String [] VoucherIds;
/**
* SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default.
*/
@SerializedName("DBVersion")
@Expose
private String DBVersion;
/**
* Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1.
*/
@SerializedName("AutoRenewFlag")
@Expose
private Long AutoRenewFlag;
/**
* Security group list, which contains security group IDs in the format of sg-xxx.
*/
@SerializedName("SecurityGroupList")
@Expose
private String [] SecurityGroupList;
/**
* Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday).
*/
@SerializedName("Weekly")
@Expose
private Long [] Weekly;
/**
* Configuration of the maintenance window, which specifies the start time of daily maintenance.
*/
@SerializedName("StartTime")
@Expose
private String StartTime;
/**
* Configuration of the maintenance window, which specifies the maintenance duration in hours.
*/
@SerializedName("Span")
@Expose
private Long Span;
/**
* The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL.
*/
@SerializedName("HAType")
@Expose
private String HAType;
/**
* Whether to deploy across availability zones. Default value: false.
*/
@SerializedName("MultiZones")
@Expose
private Boolean MultiZones;
/**
* Tags associated with the instances to be created
*/
@SerializedName("ResourceTags")
@Expose
private ResourceTag [] ResourceTags;
/**
* Get Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API
* @return Zone Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API
*/
public String getZone() {
return this.Zone;
}
/**
* Set Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API
* @param Zone Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get Instance memory size in GB
* @return Memory Instance memory size in GB
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set Instance memory size in GB
* @param Memory Instance memory size in GB
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get Instance storage capacity in GB
* @return Storage Instance storage capacity in GB
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set Instance storage capacity in GB
* @param Storage Instance storage capacity in GB
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get Billing mode. Valid value: POSTPAID (pay-as-you-go).
* @return InstanceChargeType Billing mode. Valid value: POSTPAID (pay-as-you-go).
*/
public String getInstanceChargeType() {
return this.InstanceChargeType;
}
/**
* Set Billing mode. Valid value: POSTPAID (pay-as-you-go).
* @param InstanceChargeType Billing mode. Valid value: POSTPAID (pay-as-you-go).
*/
public void setInstanceChargeType(String InstanceChargeType) {
this.InstanceChargeType = InstanceChargeType;
}
/**
* Get Project ID
* @return ProjectId Project ID
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set Project ID
* @param ProjectId Project ID
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get Number of instances purchased this time. Default value: 1. Maximum value: 10
* @return GoodsNum Number of instances purchased this time. Default value: 1. Maximum value: 10
*/
public Long getGoodsNum() {
return this.GoodsNum;
}
/**
* Set Number of instances purchased this time. Default value: 1. Maximum value: 10
* @param GoodsNum Number of instances purchased this time. Default value: 1. Maximum value: 10
*/
public void setGoodsNum(Long GoodsNum) {
this.GoodsNum = GoodsNum;
}
/**
* Get VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously
* @return SubnetId VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
public String getSubnetId() {
return this.SubnetId;
}
/**
* Set VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously
* @param SubnetId VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
public void setSubnetId(String SubnetId) {
this.SubnetId = SubnetId;
}
/**
* Get VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously
* @return VpcId VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously
* @param VpcId VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48
* @return Period Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48
* @param Period Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get Whether to automatically use voucher. 0: no, 1: yes. Default value: no
* @return AutoVoucher Whether to automatically use voucher. 0: no, 1: yes. Default value: no
*/
public Long getAutoVoucher() {
return this.AutoVoucher;
}
/**
* Set Whether to automatically use voucher. 0: no, 1: yes. Default value: no
* @param AutoVoucher Whether to automatically use voucher. 0: no, 1: yes. Default value: no
*/
public void setAutoVoucher(Long AutoVoucher) {
this.AutoVoucher = AutoVoucher;
}
/**
* Get Array of voucher IDs (currently, only one voucher can be used per order)
* @return VoucherIds Array of voucher IDs (currently, only one voucher can be used per order)
*/
public String [] getVoucherIds() {
return this.VoucherIds;
}
/**
* Set Array of voucher IDs (currently, only one voucher can be used per order)
* @param VoucherIds Array of voucher IDs (currently, only one voucher can be used per order)
*/
public void setVoucherIds(String [] VoucherIds) {
this.VoucherIds = VoucherIds;
}
/**
* Get SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default.
* @return DBVersion SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default.
*/
public String getDBVersion() {
return this.DBVersion;
}
/**
* Set SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default.
* @param DBVersion SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default.
*/
public void setDBVersion(String DBVersion) {
this.DBVersion = DBVersion;
}
/**
* Get Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1.
* @return AutoRenewFlag Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1.
*/
public Long getAutoRenewFlag() {
return this.AutoRenewFlag;
}
/**
* Set Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1.
* @param AutoRenewFlag Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1.
*/
public void setAutoRenewFlag(Long AutoRenewFlag) {
this.AutoRenewFlag = AutoRenewFlag;
}
/**
* Get Security group list, which contains security group IDs in the format of sg-xxx.
* @return SecurityGroupList Security group list, which contains security group IDs in the format of sg-xxx.
*/
public String [] getSecurityGroupList() {
return this.SecurityGroupList;
}
/**
* Set Security group list, which contains security group IDs in the format of sg-xxx.
* @param SecurityGroupList Security group list, which contains security group IDs in the format of sg-xxx.
*/
public void setSecurityGroupList(String [] SecurityGroupList) {
this.SecurityGroupList = SecurityGroupList;
}
/**
* Get Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday).
* @return Weekly Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday).
*/
public Long [] getWeekly() {
return this.Weekly;
}
/**
* Set Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday).
* @param Weekly Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday).
*/
public void setWeekly(Long [] Weekly) {
this.Weekly = Weekly;
}
/**
* Get Configuration of the maintenance window, which specifies the start time of daily maintenance.
* @return StartTime Configuration of the maintenance window, which specifies the start time of daily maintenance.
*/
public String getStartTime() {
return this.StartTime;
}
/**
* Set Configuration of the maintenance window, which specifies the start time of daily maintenance.
* @param StartTime Configuration of the maintenance window, which specifies the start time of daily maintenance.
*/
public void setStartTime(String StartTime) {
this.StartTime = StartTime;
}
/**
* Get Configuration of the maintenance window, which specifies the maintenance duration in hours.
* @return Span Configuration of the maintenance window, which specifies the maintenance duration in hours.
*/
public Long getSpan() {
return this.Span;
}
/**
* Set Configuration of the maintenance window, which specifies the maintenance duration in hours.
* @param Span Configuration of the maintenance window, which specifies the maintenance duration in hours.
*/
public void setSpan(Long Span) {
this.Span = Span;
}
/**
* Get The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL.
* @return HAType The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL.
*/
public String getHAType() {
return this.HAType;
}
/**
* Set The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL.
* @param HAType The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL.
*/
public void setHAType(String HAType) {
this.HAType = HAType;
}
/**
* Get Whether to deploy across availability zones. Default value: false.
* @return MultiZones Whether to deploy across availability zones. Default value: false.
*/
public Boolean getMultiZones() {
return this.MultiZones;
}
/**
* Set Whether to deploy across availability zones. Default value: false.
* @param MultiZones Whether to deploy across availability zones. Default value: false.
*/
public void setMultiZones(Boolean MultiZones) {
this.MultiZones = MultiZones;
}
/**
* Get Tags associated with the instances to be created
* @return ResourceTags Tags associated with the instances to be created
*/
public ResourceTag [] getResourceTags() {
return this.ResourceTags;
}
/**
* Set Tags associated with the instances to be created
* @param ResourceTags Tags associated with the instances to be created
*/
public void setResourceTags(ResourceTag [] ResourceTags) {
this.ResourceTags = ResourceTags;
}
public CreateDBInstancesRequest() {
}
/**
* 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 CreateDBInstancesRequest(CreateDBInstancesRequest source) {
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.InstanceChargeType != null) {
this.InstanceChargeType = new String(source.InstanceChargeType);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.GoodsNum != null) {
this.GoodsNum = new Long(source.GoodsNum);
}
if (source.SubnetId != null) {
this.SubnetId = new String(source.SubnetId);
}
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
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.DBVersion != null) {
this.DBVersion = new String(source.DBVersion);
}
if (source.AutoRenewFlag != null) {
this.AutoRenewFlag = new Long(source.AutoRenewFlag);
}
if (source.SecurityGroupList != null) {
this.SecurityGroupList = new String[source.SecurityGroupList.length];
for (int i = 0; i < source.SecurityGroupList.length; i++) {
this.SecurityGroupList[i] = new String(source.SecurityGroupList[i]);
}
}
if (source.Weekly != null) {
this.Weekly = new Long[source.Weekly.length];
for (int i = 0; i < source.Weekly.length; i++) {
this.Weekly[i] = new Long(source.Weekly[i]);
}
}
if (source.StartTime != null) {
this.StartTime = new String(source.StartTime);
}
if (source.Span != null) {
this.Span = new Long(source.Span);
}
if (source.HAType != null) {
this.HAType = new String(source.HAType);
}
if (source.MultiZones != null) {
this.MultiZones = new Boolean(source.MultiZones);
}
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]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
this.setParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher);
this.setParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds);
this.setParamSimple(map, prefix + "DBVersion", this.DBVersion);
this.setParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.setParamArraySimple(map, prefix + "SecurityGroupList.", this.SecurityGroupList);
this.setParamArraySimple(map, prefix + "Weekly.", this.Weekly);
this.setParamSimple(map, prefix + "StartTime", this.StartTime);
this.setParamSimple(map, prefix + "Span", this.Span);
this.setParamSimple(map, prefix + "HAType", this.HAType);
this.setParamSimple(map, prefix + "MultiZones", this.MultiZones);
this.setParamArrayObj(map, prefix + "ResourceTags.", this.ResourceTags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy