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

com.tencentcloudapi.cbs.v20170312.models.ModifyDiskAttributesRequest 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 ModifyDiskAttributesRequest extends AbstractModel{

    /**
    * IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes.
    */
    @SerializedName("DiskIds")
    @Expose
    private String [] DiskIds;

    /**
    * The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1).
    */
    @SerializedName("ProjectId")
    @Expose
    private Long ProjectId;

    /**
    * Name of new cloud disk.
    */
    @SerializedName("DiskName")
    @Expose
    private String DiskName;

    /**
    * Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks.
    */
    @SerializedName("Portable")
    @Expose
    private Boolean Portable;

    /**
    * Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go.
    */
    @SerializedName("DeleteWithInstance")
    @Expose
    private Boolean DeleteWithInstance;

    /**
    * When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range: 
  • CLOUD_PREMIUM: Premium cloud storage.
  • CLOUD_SSD: SSD cloud disk.
    Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`.
    When the cloud disk type is changed, the changing of other attributes is not supported concurrently. */ @SerializedName("DiskType") @Expose private String DiskType; /** * Get IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes. * @return DiskIds IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes. */ public String [] getDiskIds() { return this.DiskIds; } /** * Set IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes. * @param DiskIds IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes. */ public void setDiskIds(String [] DiskIds) { this.DiskIds = DiskIds; } /** * Get The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). * @return ProjectId The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). */ public Long getProjectId() { return this.ProjectId; } /** * Set The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). * @param ProjectId The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get Name of new cloud disk. * @return DiskName Name of new cloud disk. */ public String getDiskName() { return this.DiskName; } /** * Set Name of new cloud disk. * @param DiskName Name of new cloud disk. */ public void setDiskName(String DiskName) { this.DiskName = DiskName; } /** * Get Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks. * @return Portable Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks. */ public Boolean getPortable() { return this.Portable; } /** * Set Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks. * @param Portable Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks. */ public void setPortable(Boolean Portable) { this.Portable = Portable; } /** * Get Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go. * @return DeleteWithInstance Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go. */ public Boolean getDeleteWithInstance() { return this.DeleteWithInstance; } /** * Set Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go. * @param DeleteWithInstance Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go. */ public void setDeleteWithInstance(Boolean DeleteWithInstance) { this.DeleteWithInstance = DeleteWithInstance; } /** * Get When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range:
  • CLOUD_PREMIUM: Premium cloud storage.
  • CLOUD_SSD: SSD cloud disk.
    Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`.
    When the cloud disk type is changed, the changing of other attributes is not supported concurrently. * @return DiskType When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range:
  • CLOUD_PREMIUM: Premium cloud storage.
  • CLOUD_SSD: SSD cloud disk.
    Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`.
    When the cloud disk type is changed, the changing of other attributes is not supported concurrently. */ public String getDiskType() { return this.DiskType; } /** * Set When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range:
  • CLOUD_PREMIUM: Premium cloud storage.
  • CLOUD_SSD: SSD cloud disk.
    Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`.
    When the cloud disk type is changed, the changing of other attributes is not supported concurrently. * @param DiskType When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range:
  • CLOUD_PREMIUM: Premium cloud storage.
  • CLOUD_SSD: SSD cloud disk.
    Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`.
    When the cloud disk type is changed, the changing of other attributes is not supported concurrently. */ public void setDiskType(String DiskType) { this.DiskType = DiskType; } public ModifyDiskAttributesRequest() { } /** * 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 ModifyDiskAttributesRequest(ModifyDiskAttributesRequest source) { if (source.DiskIds != null) { this.DiskIds = new String[source.DiskIds.length]; for (int i = 0; i < source.DiskIds.length; i++) { this.DiskIds[i] = new String(source.DiskIds[i]); } } if (source.ProjectId != null) { this.ProjectId = new Long(source.ProjectId); } if (source.DiskName != null) { this.DiskName = new String(source.DiskName); } if (source.Portable != null) { this.Portable = new Boolean(source.Portable); } if (source.DeleteWithInstance != null) { this.DeleteWithInstance = new Boolean(source.DeleteWithInstance); } if (source.DiskType != null) { this.DiskType = new String(source.DiskType); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamArraySimple(map, prefix + "DiskIds.", this.DiskIds); this.setParamSimple(map, prefix + "ProjectId", this.ProjectId); this.setParamSimple(map, prefix + "DiskName", this.DiskName); this.setParamSimple(map, prefix + "Portable", this.Portable); this.setParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance); this.setParamSimple(map, prefix + "DiskType", this.DiskType); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy