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

com.tencentcloudapi.batch.v20170312.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.batch.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 DataDisk extends AbstractModel {

    /**
    * 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 [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
    */
    @SerializedName("DiskSize")
    @Expose
    private Long DiskSize;

    /**
    * Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values: 
  • LOCAL_BASIC: local disk
  • LOCAL_SSD: local SSD disk
  • LOCAL_NVME: local NVME disk, specified in the `InstanceType`
  • LOCAL_PRO: local HDD disk, specified in the `InstanceType`
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD
  • CLOUD_BSSD: Balanced SSD

    Default value: LOCAL_BASIC.

    This parameter is invalid for the `ResizeInstanceDisk` API. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Data disk ID. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks. It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`. */ @SerializedName("DiskId") @Expose private String DiskId; /** * Whether to terminate the data disk when its CVM is terminated. Valid values:
  • TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
  • FALSE: retain the data disk when its CVM is terminated.
    Default value: TRUE
    Currently this parameter is only used in the `RunInstances` API. Note: This field may return null, indicating that no valid value is found. */ @SerializedName("DeleteWithInstance") @Expose private Boolean DeleteWithInstance; /** * Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found. */ @SerializedName("SnapshotId") @Expose private String SnapshotId; /** * Specifies whether the data disk is encrypted. Valid values:
  • TRUE: encrypted
  • FALSE: not encrypted
    Default value: FALSE
    This parameter is only used with `RunInstances`. Note: this field may return `null`, indicating that no valid value is obtained. */ @SerializedName("Encrypt") @Expose private Boolean Encrypt; /** * ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks. Currently, this parameter is only used in the `RunInstances` API. Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("KmsKeyId") @Expose private String KmsKeyId; /** * Cloud disk performance, in MB/s Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("ThroughputPerformance") @Expose private Long ThroughputPerformance; /** * ID of the dedicated cluster to which the instance belongs. Note: this field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("CdcId") @Expose private String CdcId; /** * 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 [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. * @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 [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. */ 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 [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. * @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 [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. */ public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; } /** * Get Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values:
  • LOCAL_BASIC: local disk
  • LOCAL_SSD: local SSD disk
  • LOCAL_NVME: local NVME disk, specified in the `InstanceType`
  • LOCAL_PRO: local HDD disk, specified in the `InstanceType`
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD
  • CLOUD_BSSD: Balanced SSD

    Default value: LOCAL_BASIC.

    This parameter is invalid for the `ResizeInstanceDisk` API. * @return DiskType Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values:
  • LOCAL_BASIC: local disk
  • LOCAL_SSD: local SSD disk
  • LOCAL_NVME: local NVME disk, specified in the `InstanceType`
  • LOCAL_PRO: local HDD disk, specified in the `InstanceType`
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD
  • CLOUD_BSSD: Balanced SSD

    Default value: LOCAL_BASIC.

    This parameter is invalid for the `ResizeInstanceDisk` API. */ public String getDiskType() { return this.DiskType; } /** * Set Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values:
  • LOCAL_BASIC: local disk
  • LOCAL_SSD: local SSD disk
  • LOCAL_NVME: local NVME disk, specified in the `InstanceType`
  • LOCAL_PRO: local HDD disk, specified in the `InstanceType`
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD
  • CLOUD_BSSD: Balanced SSD

    Default value: LOCAL_BASIC.

    This parameter is invalid for the `ResizeInstanceDisk` API. * @param DiskType Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values:
  • LOCAL_BASIC: local disk
  • LOCAL_SSD: local SSD disk
  • LOCAL_NVME: local NVME disk, specified in the `InstanceType`
  • LOCAL_PRO: local HDD disk, specified in the `InstanceType`
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_SSD: SSD
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD
  • CLOUD_BSSD: Balanced SSD

    Default value: LOCAL_BASIC.

    This parameter is invalid for the `ResizeInstanceDisk` API. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } /** * Get Data disk ID. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks. It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`. * @return DiskId Data disk ID. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks. It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`. */ public String getDiskId() { return this.DiskId; } /** * Set Data disk ID. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks. It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`. * @param DiskId Data disk ID. Note that it’s not available for `LOCAL_BASIC` and `LOCAL_SSD` disks. It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`. */ public void setDiskId(String DiskId) { this.DiskId = DiskId; } /** * Get Whether to terminate the data disk when its CVM is terminated. Valid values:
  • TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
  • FALSE: retain the data disk when its CVM is terminated.
    Default value: TRUE
    Currently this parameter is only used in the `RunInstances` API. Note: This field may return null, indicating that no valid value is found. * @return DeleteWithInstance Whether to terminate the data disk when its CVM is terminated. Valid values:
  • TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
  • FALSE: retain the data disk when its CVM is terminated.
    Default value: TRUE
    Currently this parameter is only used in the `RunInstances` API. Note: This field may return null, indicating that no valid value is found. */ public Boolean getDeleteWithInstance() { return this.DeleteWithInstance; } /** * Set Whether to terminate the data disk when its CVM is terminated. Valid values:
  • TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
  • FALSE: retain the data disk when its CVM is terminated.
    Default value: TRUE
    Currently this parameter is only used in the `RunInstances` API. Note: This field may return null, indicating that no valid value is found. * @param DeleteWithInstance Whether to terminate the data disk when its CVM is terminated. Valid values:
  • TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
  • FALSE: retain the data disk when its CVM is terminated.
    Default value: TRUE
    Currently this parameter is only used in the `RunInstances` API. Note: This field may return null, indicating that no valid value is found. */ public void setDeleteWithInstance(Boolean DeleteWithInstance) { this.DeleteWithInstance = DeleteWithInstance; } /** * Get Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found. * @return SnapshotId Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found. */ public String getSnapshotId() { return this.SnapshotId; } /** * Set Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found. * @param SnapshotId Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk. Note: This field may return null, indicating that no valid value is found. */ public void setSnapshotId(String SnapshotId) { this.SnapshotId = SnapshotId; } /** * Get Specifies whether the data disk is encrypted. Valid values:
  • TRUE: encrypted
  • FALSE: not encrypted
    Default value: FALSE
    This parameter is only used with `RunInstances`. Note: this field may return `null`, indicating that no valid value is obtained. * @return Encrypt Specifies whether the data disk is encrypted. Valid values:
  • TRUE: encrypted
  • FALSE: not encrypted
    Default value: FALSE
    This parameter is only used with `RunInstances`. Note: this field may return `null`, indicating that no valid value is obtained. */ public Boolean getEncrypt() { return this.Encrypt; } /** * Set Specifies whether the data disk is encrypted. Valid values:
  • TRUE: encrypted
  • FALSE: not encrypted
    Default value: FALSE
    This parameter is only used with `RunInstances`. Note: this field may return `null`, indicating that no valid value is obtained. * @param Encrypt Specifies whether the data disk is encrypted. Valid values:
  • TRUE: encrypted
  • FALSE: not encrypted
    Default value: FALSE
    This parameter is only used with `RunInstances`. Note: this field may return `null`, indicating that no valid value is obtained. */ public void setEncrypt(Boolean Encrypt) { this.Encrypt = Encrypt; } /** * Get ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks. Currently, this parameter is only used in the `RunInstances` API. Note: this field may return null, indicating that no valid values can be obtained. * @return KmsKeyId ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks. Currently, this parameter is only used in the `RunInstances` API. Note: this field may return null, indicating that no valid values can be obtained. */ public String getKmsKeyId() { return this.KmsKeyId; } /** * Set ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks. Currently, this parameter is only used in the `RunInstances` API. Note: this field may return null, indicating that no valid values can be obtained. * @param KmsKeyId ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks. Currently, this parameter is only used in the `RunInstances` API. Note: this field may return null, indicating that no valid values can be obtained. */ public void setKmsKeyId(String KmsKeyId) { this.KmsKeyId = KmsKeyId; } /** * Get Cloud disk performance, in MB/s Note: this field may return `null`, indicating that no valid values can be obtained. * @return ThroughputPerformance Cloud disk performance, in MB/s Note: this field may return `null`, indicating that no valid values can be obtained. */ public Long getThroughputPerformance() { return this.ThroughputPerformance; } /** * Set Cloud disk performance, in MB/s Note: this field may return `null`, indicating that no valid values can be obtained. * @param ThroughputPerformance Cloud disk performance, in MB/s Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setThroughputPerformance(Long ThroughputPerformance) { this.ThroughputPerformance = ThroughputPerformance; } /** * Get ID of the dedicated cluster to which the instance belongs. Note: this field may return `null`, indicating that no valid values can be obtained. * @return CdcId ID of the dedicated cluster to which the instance belongs. Note: this field may return `null`, indicating that no valid values can be obtained. */ public String getCdcId() { return this.CdcId; } /** * Set ID of the dedicated cluster to which the instance belongs. Note: this field may return `null`, indicating that no valid values can be obtained. * @param CdcId ID of the dedicated cluster to which the instance belongs. Note: this field may return `null`, indicating that no valid values can be obtained. */ public void setCdcId(String CdcId) { this.CdcId = CdcId; } 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.DiskSize != null) { this.DiskSize = new Long(source.DiskSize); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } if (source.DiskId != null) { this.DiskId = new String(source.DiskId); } if (source.DeleteWithInstance != null) { this.DeleteWithInstance = new Boolean(source.DeleteWithInstance); } if (source.SnapshotId != null) { this.SnapshotId = new String(source.SnapshotId); } if (source.Encrypt != null) { this.Encrypt = new Boolean(source.Encrypt); } if (source.KmsKeyId != null) { this.KmsKeyId = new String(source.KmsKeyId); } if (source.ThroughputPerformance != null) { this.ThroughputPerformance = new Long(source.ThroughputPerformance); } if (source.CdcId != null) { this.CdcId = new String(source.CdcId); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "DiskSize", this.DiskSize); this.setParamSimple(map, prefix + "DiskType", this.DiskType); this.setParamSimple(map, prefix + "DiskId", this.DiskId); this.setParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance); this.setParamSimple(map, prefix + "SnapshotId", this.SnapshotId); this.setParamSimple(map, prefix + "Encrypt", this.Encrypt); this.setParamSimple(map, prefix + "KmsKeyId", this.KmsKeyId); this.setParamSimple(map, prefix + "ThroughputPerformance", this.ThroughputPerformance); this.setParamSimple(map, prefix + "CdcId", this.CdcId); } }




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy