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

com.tencentcloudapi.as.v20180419.models.DataDisk 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.as.v20180419.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 DataDisk extends AbstractModel {

    /**
    * Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:
  • `LOCAL_BASIC`: Local disk
  • `LOCAL_SSD`: Local SSD disk
  • `CLOUD_BASIC`: HDD cloud disk
  • `CLOUD_PREMIUM`: Premium cloud storage
  • `CLOUD_SSD`: SSD cloud disk
  • `CLOUD_HSSD`: Enhanced SSD
  • `CLOUD_TSSD`: Tremendous SSD

    The default value should be the same as the `DiskType` field under `SystemDisk`. Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("DiskSize") @Expose private Long DiskSize; /** * Data disk snapshot ID, such as `snap-l8psqwnt`. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("SnapshotId") @Expose private String SnapshotId; /** * Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values:
  • `TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. Note: this field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("DeleteWithInstance") @Expose private Boolean DeleteWithInstance; /** * Data disk encryption. Valid values:
  • `TRUE`: Encrypted
  • `FALSE`: Not encrypted Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("Encrypt") @Expose private Boolean Encrypt; /** * Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. Note: This field may return `null`, indicating that no valid value can be obtained. */ @SerializedName("ThroughputPerformance") @Expose private Long ThroughputPerformance; /** * Get Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:
  • `LOCAL_BASIC`: Local disk
  • `LOCAL_SSD`: Local SSD disk
  • `CLOUD_BASIC`: HDD cloud disk
  • `CLOUD_PREMIUM`: Premium cloud storage
  • `CLOUD_SSD`: SSD cloud disk
  • `CLOUD_HSSD`: Enhanced SSD
  • `CLOUD_TSSD`: Tremendous SSD

    The default value should be the same as the `DiskType` field under `SystemDisk`. Note: This field may return `null`, indicating that no valid value can be obtained. * @return DiskType Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:
  • `LOCAL_BASIC`: Local disk
  • `LOCAL_SSD`: Local SSD disk
  • `CLOUD_BASIC`: HDD cloud disk
  • `CLOUD_PREMIUM`: Premium cloud storage
  • `CLOUD_SSD`: SSD cloud disk
  • `CLOUD_HSSD`: Enhanced SSD
  • `CLOUD_TSSD`: Tremendous SSD

    The default value should be the same as the `DiskType` field under `SystemDisk`. Note: This field may return `null`, indicating that no valid value can be obtained. */ public String getDiskType() { return this.DiskType; } /** * Set Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:
  • `LOCAL_BASIC`: Local disk
  • `LOCAL_SSD`: Local SSD disk
  • `CLOUD_BASIC`: HDD cloud disk
  • `CLOUD_PREMIUM`: Premium cloud storage
  • `CLOUD_SSD`: SSD cloud disk
  • `CLOUD_HSSD`: Enhanced SSD
  • `CLOUD_TSSD`: Tremendous SSD

    The default value should be the same as the `DiskType` field under `SystemDisk`. Note: This field may return `null`, indicating that no valid value can be obtained. * @param DiskType Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:
  • `LOCAL_BASIC`: Local disk
  • `LOCAL_SSD`: Local SSD disk
  • `CLOUD_BASIC`: HDD cloud disk
  • `CLOUD_PREMIUM`: Premium cloud storage
  • `CLOUD_SSD`: SSD cloud disk
  • `CLOUD_HSSD`: Enhanced SSD
  • `CLOUD_TSSD`: Tremendous SSD

    The default value should be the same as the `DiskType` field under `SystemDisk`. Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. Note: This field may return null, indicating that no valid values can be obtained. * @return DiskSize Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. Note: This field may return null, indicating that no valid values can be obtained. */ public Long getDiskSize() { return this.DiskSize; } /** * Set Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. Note: This field may return null, indicating that no valid values can be obtained. * @param DiskSize Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. Note: This field may return null, indicating that no valid values can be obtained. */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get Data disk snapshot ID, such as `snap-l8psqwnt`. Note: This field may return null, indicating that no valid values can be obtained. * @return SnapshotId Data disk snapshot ID, such as `snap-l8psqwnt`. Note: This field may return null, indicating that no valid values can be obtained. */ public String getSnapshotId() { return this.SnapshotId; } /** * Set Data disk snapshot ID, such as `snap-l8psqwnt`. Note: This field may return null, indicating that no valid values can be obtained. * @param SnapshotId Data disk snapshot ID, such as `snap-l8psqwnt`. Note: This field may return null, indicating that no valid values can be obtained. */ public void setSnapshotId(String SnapshotId) { this.SnapshotId = SnapshotId; } /** * Get Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values:
  • `TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. Note: this field may return `null`, indicating that no valid value can be obtained. * @return DeleteWithInstance Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values:
  • `TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. Note: this field may return `null`, indicating that no valid value can be obtained. */ public Boolean getDeleteWithInstance() { return this.DeleteWithInstance; } /** * Set Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values:
  • `TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. Note: this field may return `null`, indicating that no valid value can be obtained. * @param DeleteWithInstance Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values:
  • `TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. Note: this field may return `null`, indicating that no valid value can be obtained. */ public void setDeleteWithInstance(Boolean DeleteWithInstance) { this.DeleteWithInstance = DeleteWithInstance; } /** * Get Data disk encryption. Valid values:
  • `TRUE`: Encrypted
  • `FALSE`: Not encrypted Note: This field may return `null`, indicating that no valid value can be obtained. * @return Encrypt Data disk encryption. Valid values:
  • `TRUE`: Encrypted
  • `FALSE`: Not encrypted Note: This field may return `null`, indicating that no valid value can be obtained. */ public Boolean getEncrypt() { return this.Encrypt; } /** * Set Data disk encryption. Valid values:
  • `TRUE`: Encrypted
  • `FALSE`: Not encrypted Note: This field may return `null`, indicating that no valid value can be obtained. * @param Encrypt Data disk encryption. Valid values:
  • `TRUE`: Encrypted
  • `FALSE`: Not encrypted Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setEncrypt(Boolean Encrypt) { this.Encrypt = Encrypt; } /** * Get Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. Note: This field may return `null`, indicating that no valid value can be obtained. * @return ThroughputPerformance Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. Note: This field may return `null`, indicating that no valid value can be obtained. */ public Long getThroughputPerformance() { return this.ThroughputPerformance; } /** * Set Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. Note: This field may return `null`, indicating that no valid value can be obtained. * @param ThroughputPerformance Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. Note: This field may return `null`, indicating that no valid value can be obtained. */ public void setThroughputPerformance(Long ThroughputPerformance) { this.ThroughputPerformance = ThroughputPerformance; } public DataDisk() { } /** * 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 DataDisk(DataDisk source) { if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.SnapshotId != null) { this.SnapshotId = new String(source.SnapshotId); } if (source.DeleteWithInstance != null) { this.DeleteWithInstance = new Boolean(source.DeleteWithInstance); } if (source.Encrypt != null) { this.Encrypt = new Boolean(source.Encrypt); } 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 + "SnapshotId", this.SnapshotId); this.setParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance); this.setParamSimple(map, prefix + "Encrypt", this.Encrypt); this.setParamSimple(map, prefix + "ThroughputPerformance", this.ThroughputPerformance); } }




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy