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

com.tencentcloudapi.cbs.v20170312.models.DiskConfig 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DiskConfig extends AbstractModel {

    /**
    * Whether the configuration is available.
    */
    @SerializedName("Available")
    @Expose
    private Boolean Available;

    /**
    * Billing method. Value range: 
  • PREPAID: Prepaid, that is, monthly subscription
  • POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. */ @SerializedName("DiskChargeType") @Expose private String DiskChargeType; /** * The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. */ @SerializedName("Zone") @Expose private String Zone; /** * Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) Note: This field may return null, indicating that no valid value was found. */ @SerializedName("InstanceFamily") @Expose private String InstanceFamily; /** * Type of cloud disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Minimum increment of cloud disk size adjustment in GB. Note: This field might return null, indicating that no valid values can be obtained. */ @SerializedName("StepSize") @Expose private Long StepSize; /** * Additional performance range. Note: This field might return null, indicating that no valid values can be obtained. */ @SerializedName("ExtraPerformanceRange") @Expose private Long [] ExtraPerformanceRange; /** * Instance model. Note: This field may return null, indicating that no valid value was found. */ @SerializedName("DeviceClass") @Expose private String DeviceClass; /** * Cloud disk type. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk. */ @SerializedName("DiskUsage") @Expose private String DiskUsage; /** * The minimum configurable cloud disk size (in GB). */ @SerializedName("MinDiskSize") @Expose private Long MinDiskSize; /** * The maximum configurable cloud disk size (in GB). */ @SerializedName("MaxDiskSize") @Expose private Long MaxDiskSize; /** * Price of a monthly subscribed or pay-as-you-go cloud disk. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("Price") @Expose private Price Price; /** * Get Whether the configuration is available. * @return Available Whether the configuration is available. */ public Boolean getAvailable() { return this.Available; } /** * Set Whether the configuration is available. * @param Available Whether the configuration is available. */ public void setAvailable(Boolean Available) { this.Available = Available; } /** * Get Billing method. Value range:
  • PREPAID: Prepaid, that is, monthly subscription
  • POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. * @return DiskChargeType Billing method. Value range:
  • PREPAID: Prepaid, that is, monthly subscription
  • POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. */ public String getDiskChargeType() { return this.DiskChargeType; } /** * Set Billing method. Value range:
  • PREPAID: Prepaid, that is, monthly subscription
  • POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. * @param DiskChargeType Billing method. Value range:
  • PREPAID: Prepaid, that is, monthly subscription
  • POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. */ public void setDiskChargeType(String DiskChargeType) { this.DiskChargeType = DiskChargeType; } /** * Get The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. * @return Zone The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. */ public String getZone() { return this.Zone; } /** * Set The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. * @param Zone The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. */ public void setZone(String Zone) { this.Zone = Zone; } /** * Get Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) Note: This field may return null, indicating that no valid value was found. * @return InstanceFamily Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) Note: This field may return null, indicating that no valid value was found. */ public String getInstanceFamily() { return this.InstanceFamily; } /** * Set Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) Note: This field may return null, indicating that no valid value was found. * @param InstanceFamily Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) Note: This field may return null, indicating that no valid value was found. */ public void setInstanceFamily(String InstanceFamily) { this.InstanceFamily = InstanceFamily; } /** * Get Type of cloud disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk. * @return DiskType Type of cloud disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk. */ public String getDiskType() { return this.DiskType; } /** * Set Type of cloud disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk. * @param DiskType Type of cloud disk medium. Value range:
  • CLOUD_BASIC: Ordinary cloud disk
  • CLOUD_PREMIUM: Premium cloud storage
  • CLOUD_SSD: SSD cloud disk. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get Minimum increment of cloud disk size adjustment in GB. Note: This field might return null, indicating that no valid values can be obtained. * @return StepSize Minimum increment of cloud disk size adjustment in GB. Note: This field might return null, indicating that no valid values can be obtained. */ public Long getStepSize() { return this.StepSize; } /** * Set Minimum increment of cloud disk size adjustment in GB. Note: This field might return null, indicating that no valid values can be obtained. * @param StepSize Minimum increment of cloud disk size adjustment in GB. Note: This field might return null, indicating that no valid values can be obtained. */ public void setStepSize(Long StepSize) { this.StepSize = StepSize; } /** * Get Additional performance range. Note: This field might return null, indicating that no valid values can be obtained. * @return ExtraPerformanceRange Additional performance range. Note: This field might return null, indicating that no valid values can be obtained. */ public Long [] getExtraPerformanceRange() { return this.ExtraPerformanceRange; } /** * Set Additional performance range. Note: This field might return null, indicating that no valid values can be obtained. * @param ExtraPerformanceRange Additional performance range. Note: This field might return null, indicating that no valid values can be obtained. */ public void setExtraPerformanceRange(Long [] ExtraPerformanceRange) { this.ExtraPerformanceRange = ExtraPerformanceRange; } /** * Get Instance model. Note: This field may return null, indicating that no valid value was found. * @return DeviceClass Instance model. Note: This field may return null, indicating that no valid value was found. */ public String getDeviceClass() { return this.DeviceClass; } /** * Set Instance model. Note: This field may return null, indicating that no valid value was found. * @param DeviceClass Instance model. Note: This field may return null, indicating that no valid value was found. */ public void setDeviceClass(String DeviceClass) { this.DeviceClass = DeviceClass; } /** * Get Cloud disk type. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk. * @return DiskUsage Cloud disk type. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk. */ public String getDiskUsage() { return this.DiskUsage; } /** * Set Cloud disk type. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk. * @param DiskUsage Cloud disk type. Value range:
  • SYSTEM_DISK: System disk
  • DATA_DISK: Data disk. */ public void setDiskUsage(String DiskUsage) { this.DiskUsage = DiskUsage; } /** * Get The minimum configurable cloud disk size (in GB). * @return MinDiskSize The minimum configurable cloud disk size (in GB). */ public Long getMinDiskSize() { return this.MinDiskSize; } /** * Set The minimum configurable cloud disk size (in GB). * @param MinDiskSize The minimum configurable cloud disk size (in GB). */ public void setMinDiskSize(Long MinDiskSize) { this.MinDiskSize = MinDiskSize; } /** * Get The maximum configurable cloud disk size (in GB). * @return MaxDiskSize The maximum configurable cloud disk size (in GB). */ public Long getMaxDiskSize() { return this.MaxDiskSize; } /** * Set The maximum configurable cloud disk size (in GB). * @param MaxDiskSize The maximum configurable cloud disk size (in GB). */ public void setMaxDiskSize(Long MaxDiskSize) { this.MaxDiskSize = MaxDiskSize; } /** * Get Price of a monthly subscribed or pay-as-you-go cloud disk. Note: This field may return null, indicating that no valid values can be obtained. * @return Price Price of a monthly subscribed or pay-as-you-go cloud disk. Note: This field may return null, indicating that no valid values can be obtained. */ public Price getPrice() { return this.Price; } /** * Set Price of a monthly subscribed or pay-as-you-go cloud disk. Note: This field may return null, indicating that no valid values can be obtained. * @param Price Price of a monthly subscribed or pay-as-you-go cloud disk. Note: This field may return null, indicating that no valid values can be obtained. */ public void setPrice(Price Price) { this.Price = Price; } public DiskConfig() { } /** * 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 DiskConfig(DiskConfig source) { if (source.Available != null) { this.Available = new Boolean(source.Available); } if (source.DiskChargeType != null) { this.DiskChargeType = new String(source.DiskChargeType); } if (source.Zone != null) { this.Zone = new String(source.Zone); } if (source.InstanceFamily != null) { this.InstanceFamily = new String(source.InstanceFamily); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.StepSize != null) { this.StepSize = new Long(source.StepSize); } if (source.ExtraPerformanceRange != null) { this.ExtraPerformanceRange = new Long[source.ExtraPerformanceRange.length]; for (int i = 0; i < source.ExtraPerformanceRange.length; i++) { this.ExtraPerformanceRange[i] = new Long(source.ExtraPerformanceRange[i]); } } if (source.DeviceClass != null) { this.DeviceClass = new String(source.DeviceClass); } if (source.DiskUsage != null) { this.DiskUsage = new String(source.DiskUsage); } if (source.MinDiskSize != null) { this.MinDiskSize = new Long(source.MinDiskSize); } if (source.MaxDiskSize != null) { this.MaxDiskSize = new Long(source.MaxDiskSize); } if (source.Price != null) { this.Price = new Price(source.Price); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Available", this.Available); this.setParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType); this.setParamSimple(map, prefix + "Zone", this.Zone); this.setParamSimple(map, prefix + "InstanceFamily", this.InstanceFamily); this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "StepSize", this.StepSize); this.setParamArraySimple(map, prefix + "ExtraPerformanceRange.", this.ExtraPerformanceRange); this.setParamSimple(map, prefix + "DeviceClass", this.DeviceClass); this.setParamSimple(map, prefix + "DiskUsage", this.DiskUsage); this.setParamSimple(map, prefix + "MinDiskSize", this.MinDiskSize); this.setParamSimple(map, prefix + "MaxDiskSize", this.MaxDiskSize); this.setParamObj(map, prefix + "Price.", this.Price); } }




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy