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

com.tencentcloudapi.cbs.v20170312.models.InquiryPriceCreateDisksRequest 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.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 media type. Valid values: 
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Cloud disk size (in GB). For the value range of the cloud disk sizes, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis */ @SerializedName("DiskChargeType") @Expose private String DiskChargeType; /** * 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; /** * Quantity of cloud disks purchased. If left empty, default is 1. */ @SerializedName("DiskCount") @Expose private Long DiskCount; /** * ID of project the cloud disk belongs to. */ @SerializedName("ProjectId") @Expose private Long ProjectId; /** * Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). */ @SerializedName("ThroughputPerformance") @Expose private Long ThroughputPerformance; /** * Get Cloud disk media type. Valid values:
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD. * @return DiskType Cloud disk media type. Valid values:
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD. */ public String getDiskType() { return this.DiskType; } /** * Set Cloud disk media type. Valid values:
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD. * @param DiskType Cloud disk media type. Valid values:
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get Cloud disk size (in GB). For the value range of the cloud disk sizes, see cloud disk [Product 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 of the cloud disk sizes, see cloud disk [Product 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 of the cloud disk sizes, see cloud disk [Product 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 of the cloud disk sizes, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis * @return DiskChargeType Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis */ public String getDiskChargeType() { return this.DiskChargeType; } /** * Set Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis * @param DiskChargeType Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis */ public void setDiskChargeType(String DiskChargeType) { this.DiskChargeType = DiskChargeType; } /** * 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 Quantity of cloud disks purchased. If left empty, default is 1. * @return DiskCount Quantity of cloud disks purchased. If left empty, default is 1. */ public Long getDiskCount() { return this.DiskCount; } /** * Set Quantity of cloud disks purchased. If left empty, default is 1. * @param DiskCount Quantity of cloud disks purchased. If left empty, default is 1. */ public void setDiskCount(Long DiskCount) { this.DiskCount = DiskCount; } /** * Get ID of project the cloud disk belongs to. * @return ProjectId ID of project the cloud disk belongs to. */ public Long getProjectId() { return this.ProjectId; } /** * Set ID of project the cloud disk belongs to. * @param ProjectId ID of project the cloud disk belongs to. */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). * @return ThroughputPerformance Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). */ public Long getThroughputPerformance() { return this.ThroughputPerformance; } /** * Set Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). * @param ThroughputPerformance Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). */ public void setThroughputPerformance(Long ThroughputPerformance) { this.ThroughputPerformance = ThroughputPerformance; } 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.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.DiskChargeType != null) { this.DiskChargeType = new String(source.DiskChargeType); } if (source.DiskChargePrepaid != null) { this.DiskChargePrepaid = new DiskChargePrepaid(source.DiskChargePrepaid); } if (source.DiskCount != null) { this.DiskCount = new Long(source.DiskCount); } if (source.ProjectId != null) { this.ProjectId = new Long(source.ProjectId); } if (source.ThroughputPerformance != null) { this.ThroughputPerformance = new Long(source.ThroughputPerformance); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "DiskSize", this.DiskSize); this.setParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType); this.setParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid); this.setParamSimple(map, prefix + "DiskCount", this.DiskCount); this.setParamSimple(map, prefix + "ProjectId", this.ProjectId); this.setParamSimple(map, prefix + "ThroughputPerformance", this.ThroughputPerformance); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy