
com.tencentcloudapi.cbs.v20170312.models.InquiryPriceCreateDisksRequest 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.cbs.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class InquiryPriceCreateDisksRequest extends AbstractModel{
/**
* Cloud disk billing mode.
POSTPAID_BY_HOUR: Hourly pay-as-you-go.
*/
@SerializedName("DiskChargeType")
@Expose
private String DiskChargeType;
/**
* Cloud disk media type. Valid values:
CLOUD_BASIC: HDD Cloud Storage
CLOUD_PREMIUM: Premium Cloud Disk
CLOUD_SSD: SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: ulTra SSD.
*/
@SerializedName("DiskType")
@Expose
private String DiskType;
/**
* Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1).
*/
@SerializedName("DiskSize")
@Expose
private Long DiskSize;
/**
* ID of the project to which the cloud disk belongs.
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* Number of cloud disks to be purchased. If it is not specified, `1` will be used by default.
*/
@SerializedName("DiskCount")
@Expose
private Long DiskCount;
/**
* Extra performance in MB/s purchased for a cloud disk.
This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD).
*/
@SerializedName("ThroughputPerformance")
@Expose
private Long ThroughputPerformance;
/**
* Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
*/
@SerializedName("DiskChargePrepaid")
@Expose
private DiskChargePrepaid DiskChargePrepaid;
/**
* Specifies the cloud disk backup point quota.
*/
@SerializedName("DiskBackupQuota")
@Expose
private Long DiskBackupQuota;
/**
* Get Cloud disk billing mode.
POSTPAID_BY_HOUR: Hourly pay-as-you-go.
* @return DiskChargeType Cloud disk billing mode.
POSTPAID_BY_HOUR: Hourly pay-as-you-go.
*/
public String getDiskChargeType() {
return this.DiskChargeType;
}
/**
* Set Cloud disk billing mode.
POSTPAID_BY_HOUR: Hourly pay-as-you-go.
* @param DiskChargeType Cloud disk billing mode.
POSTPAID_BY_HOUR: Hourly pay-as-you-go.
*/
public void setDiskChargeType(String DiskChargeType) {
this.DiskChargeType = DiskChargeType;
}
/**
* Get Cloud disk media type. Valid values:
CLOUD_BASIC: HDD Cloud Storage
CLOUD_PREMIUM: Premium Cloud Disk
CLOUD_SSD: SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: ulTra SSD.
* @return DiskType Cloud disk media type. Valid values:
CLOUD_BASIC: HDD Cloud Storage
CLOUD_PREMIUM: Premium Cloud Disk
CLOUD_SSD: SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: ulTra SSD.
*/
public String getDiskType() {
return this.DiskType;
}
/**
* Set Cloud disk media type. Valid values:
CLOUD_BASIC: HDD Cloud Storage
CLOUD_PREMIUM: Premium Cloud Disk
CLOUD_SSD: SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: ulTra SSD.
* @param DiskType Cloud disk media type. Valid values:
CLOUD_BASIC: HDD Cloud Storage
CLOUD_PREMIUM: Premium Cloud Disk
CLOUD_SSD: SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: ulTra SSD.
*/
public void setDiskType(String DiskType) {
this.DiskType = DiskType;
}
/**
* Get Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1).
* @return DiskSize Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1).
*/
public Long getDiskSize() {
return this.DiskSize;
}
/**
* Set Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1).
* @param DiskSize Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1).
*/
public void setDiskSize(Long DiskSize) {
this.DiskSize = DiskSize;
}
/**
* Get ID of the project to which the cloud disk belongs.
* @return ProjectId ID of the project to which the cloud disk belongs.
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set ID of the project to which the cloud disk belongs.
* @param ProjectId ID of the project to which the cloud disk belongs.
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get Number of cloud disks to be purchased. If it is not specified, `1` will be used by default.
* @return DiskCount Number of cloud disks to be purchased. If it is not specified, `1` will be used by default.
*/
public Long getDiskCount() {
return this.DiskCount;
}
/**
* Set Number of cloud disks to be purchased. If it is not specified, `1` will be used by default.
* @param DiskCount Number of cloud disks to be purchased. If it is not specified, `1` will be used by default.
*/
public void setDiskCount(Long DiskCount) {
this.DiskCount = DiskCount;
}
/**
* Get Extra performance in MB/s purchased for a cloud disk.
This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD).
* @return ThroughputPerformance Extra performance in MB/s purchased for a cloud disk.
This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD).
*/
public Long getThroughputPerformance() {
return this.ThroughputPerformance;
}
/**
* Set Extra performance in MB/s purchased for a cloud disk.
This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD).
* @param ThroughputPerformance Extra performance in MB/s purchased for a cloud disk.
This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD).
*/
public void setThroughputPerformance(Long ThroughputPerformance) {
this.ThroughputPerformance = ThroughputPerformance;
}
/**
* Get Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
* @return DiskChargePrepaid Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
*/
public DiskChargePrepaid getDiskChargePrepaid() {
return this.DiskChargePrepaid;
}
/**
* Set Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
* @param DiskChargePrepaid Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
*/
public void setDiskChargePrepaid(DiskChargePrepaid DiskChargePrepaid) {
this.DiskChargePrepaid = DiskChargePrepaid;
}
/**
* Get Specifies the cloud disk backup point quota.
* @return DiskBackupQuota Specifies the cloud disk backup point quota.
*/
public Long getDiskBackupQuota() {
return this.DiskBackupQuota;
}
/**
* Set Specifies the cloud disk backup point quota.
* @param DiskBackupQuota Specifies the cloud disk backup point quota.
*/
public void setDiskBackupQuota(Long DiskBackupQuota) {
this.DiskBackupQuota = DiskBackupQuota;
}
public InquiryPriceCreateDisksRequest() {
}
/**
* 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 InquiryPriceCreateDisksRequest(InquiryPriceCreateDisksRequest source) {
if (source.DiskChargeType != null) {
this.DiskChargeType = new String(source.DiskChargeType);
}
if (source.DiskType != null) {
this.DiskType = new String(source.DiskType);
}
if (source.DiskSize != null) {
this.DiskSize = new Long(source.DiskSize);
}
if (source.ProjectId != null) {
this.ProjectId = new Long(source.ProjectId);
}
if (source.DiskCount != null) {
this.DiskCount = new Long(source.DiskCount);
}
if (source.ThroughputPerformance != null) {
this.ThroughputPerformance = new Long(source.ThroughputPerformance);
}
if (source.DiskChargePrepaid != null) {
this.DiskChargePrepaid = new DiskChargePrepaid(source.DiskChargePrepaid);
}
if (source.DiskBackupQuota != null) {
this.DiskBackupQuota = new Long(source.DiskBackupQuota);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.setParamSimple(map, prefix + "DiskType", this.DiskType);
this.setParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "DiskCount", this.DiskCount);
this.setParamSimple(map, prefix + "ThroughputPerformance", this.ThroughputPerformance);
this.setParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid);
this.setParamSimple(map, prefix + "DiskBackupQuota", this.DiskBackupQuota);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy