
com.tencentcloudapi.ecm.v20190719.models.Disk Maven / Gradle / Ivy
/*
* 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.ecm.v20190719.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Disk extends AbstractModel{
/**
* 云盘是否与挂载的实例一起销毁。
true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。
false:销毁实例时不销毁云盘。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DeleteWithInstance")
@Expose
private Boolean DeleteWithInstance;
/**
* 自动续费标识。取值范围:
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RenewFlag")
@Expose
private String RenewFlag;
/**
* 硬盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:表示SSD云硬盘
CLOUD_HSSD:表示增强型SSD云硬盘
CLOUD_TSSD:表示极速型SSD云硬盘。
*/
@SerializedName("DiskType")
@Expose
private String DiskType;
/**
* 云盘状态。取值范围:
UNATTACHED:未挂载
ATTACHING:挂载中
ATTACHED:已挂载
DETACHING:解挂中
EXPANDING:扩容中
ROLLBACKING:回滚中
TORECYCLE:待回收
DUMPING:拷贝硬盘中。
*/
@SerializedName("DiskState")
@Expose
private String DiskState;
/**
* 云盘拥有的快照总数。
*/
@SerializedName("SnapshotCount")
@Expose
private Long SnapshotCount;
/**
* 云盘已挂载到子机,且子机与云盘都是包年包月。
true:子机设置了自动续费标识,但云盘未设置
false:云盘自动续费标识正常。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AutoRenewFlagError")
@Expose
private Boolean AutoRenewFlagError;
/**
* 云盘是否处于快照回滚状态。取值范围:
false:表示不处于快照回滚状态
true:表示处于快照回滚状态。
*/
@SerializedName("Rollbacking")
@Expose
private Boolean Rollbacking;
/**
* 对于非共享型云盘,该参数为空数组。对于共享型云盘,则表示该云盘当前被挂载到的CVM实例InstanceId
*/
@SerializedName("InstanceIdList")
@Expose
private String [] InstanceIdList;
/**
* 云盘是否为加密盘。取值范围:
false:表示非加密盘
true:表示加密盘。
*/
@SerializedName("Encrypt")
@Expose
private Boolean Encrypt;
/**
* 云硬盘名称。
*/
@SerializedName("DiskName")
@Expose
private String DiskName;
/**
* 云硬盘因欠费销毁或者到期销毁时, 是否使用快照备份数据的标识。true表示销毁时创建快照进行数据备份。false表示直接销毁,不进行数据备份。
*/
@SerializedName("BackupDisk")
@Expose
private Boolean BackupDisk;
/**
* 与云盘绑定的标签,云盘未绑定标签则取值为空。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* 云硬盘挂载的云主机ID。
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AutoSnapshotPolicyIds")
@Expose
private String [] AutoSnapshotPolicyIds;
/**
* 云硬盘额外性能值,单位MB/s。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ThroughputPerformance")
@Expose
private Long ThroughputPerformance;
/**
* 云盘是否处于类型变更中。取值范围:
false:表示云盘不处于类型变更中
true:表示云盘已发起类型变更,正处于迁移中。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Migrating")
@Expose
private Boolean Migrating;
/**
* 云硬盘ID。
*/
@SerializedName("DiskId")
@Expose
private String DiskId;
/**
* 云盘拥有的快照总容量,单位为MB。
*/
@SerializedName("SnapshotSize")
@Expose
private Long SnapshotSize;
/**
* 云硬盘所在的位置。
*/
@SerializedName("Placement")
@Expose
private Placement Placement;
/**
* 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("IsReturnable")
@Expose
private Boolean IsReturnable;
/**
* 云盘是否挂载到云主机上。取值范围:
false:表示未挂载
true:表示已挂载。
*/
@SerializedName("Attached")
@Expose
private Boolean Attached;
/**
* 云硬盘大小,单位GB。
*/
@SerializedName("DiskSize")
@Expose
private Long DiskSize;
/**
* 云盘类型变更的迁移进度,取值0到100。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("MigratePercent")
@Expose
private Long MigratePercent;
/**
* 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
*/
@SerializedName("DiskUsage")
@Expose
private String DiskUsage;
/**
* 付费模式。取值范围:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费。
*/
@SerializedName("DiskChargeType")
@Expose
private String DiskChargeType;
/**
* 是否为弹性云盘,false表示非弹性云盘,true表示弹性云盘。
*/
@SerializedName("Portable")
@Expose
private Boolean Portable;
/**
* 云盘是否具备创建快照的能力。取值范围:
false表示不具备
true表示具备。
*/
@SerializedName("SnapshotAbility")
@Expose
private Boolean SnapshotAbility;
/**
* 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。
true:云盘到期时间早于实例。
false:云盘到期时间晚于实例。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DeadlineError")
@Expose
private Boolean DeadlineError;
/**
* 云盘快照回滚的进度。
*/
@SerializedName("RollbackPercent")
@Expose
private Long RollbackPercent;
/**
* 当前时间距离盘到期的天数(仅对预付费盘有意义)。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DifferDaysOfDeadline")
@Expose
private Long DifferDaysOfDeadline;
/**
* 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ReturnFailCode")
@Expose
private Long ReturnFailCode;
/**
* 云盘是否为共享型云盘。
*/
@SerializedName("Shareable")
@Expose
private Boolean Shareable;
/**
* 云硬盘的创建时间。
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 云硬盘的到期时间。
*/
@SerializedName("DeadlineTime")
@Expose
private String DeadlineTime;
/**
* 云盘的挂载类型。取值范围:
PF: PF挂载
VF: VF挂载
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AttachMode")
@Expose
private String AttachMode;
/**
* Get 云盘是否与挂载的实例一起销毁。
true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。
false:销毁实例时不销毁云盘。
注意:此字段可能返回 null,表示取不到有效值。
* @return DeleteWithInstance 云盘是否与挂载的实例一起销毁。
true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。
false:销毁实例时不销毁云盘。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getDeleteWithInstance() {
return this.DeleteWithInstance;
}
/**
* Set 云盘是否与挂载的实例一起销毁。
true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。
false:销毁实例时不销毁云盘。
注意:此字段可能返回 null,表示取不到有效值。
* @param DeleteWithInstance 云盘是否与挂载的实例一起销毁。
true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。
false:销毁实例时不销毁云盘。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDeleteWithInstance(Boolean DeleteWithInstance) {
this.DeleteWithInstance = DeleteWithInstance;
}
/**
* Get 自动续费标识。取值范围:
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费。
注意:此字段可能返回 null,表示取不到有效值。
* @return RenewFlag 自动续费标识。取值范围:
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getRenewFlag() {
return this.RenewFlag;
}
/**
* Set 自动续费标识。取值范围:
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费。
注意:此字段可能返回 null,表示取不到有效值。
* @param RenewFlag 自动续费标识。取值范围:
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRenewFlag(String RenewFlag) {
this.RenewFlag = RenewFlag;
}
/**
* Get 硬盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:表示SSD云硬盘
CLOUD_HSSD:表示增强型SSD云硬盘
CLOUD_TSSD:表示极速型SSD云硬盘。
* @return DiskType 硬盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:表示SSD云硬盘
CLOUD_HSSD:表示增强型SSD云硬盘
CLOUD_TSSD:表示极速型SSD云硬盘。
*/
public String getDiskType() {
return this.DiskType;
}
/**
* Set 硬盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:表示SSD云硬盘
CLOUD_HSSD:表示增强型SSD云硬盘
CLOUD_TSSD:表示极速型SSD云硬盘。
* @param DiskType 硬盘介质类型。取值范围:
CLOUD_BASIC:表示普通云硬盘
CLOUD_PREMIUM:表示高性能云硬盘
CLOUD_SSD:表示SSD云硬盘
CLOUD_HSSD:表示增强型SSD云硬盘
CLOUD_TSSD:表示极速型SSD云硬盘。
*/
public void setDiskType(String DiskType) {
this.DiskType = DiskType;
}
/**
* Get 云盘状态。取值范围:
UNATTACHED:未挂载
ATTACHING:挂载中
ATTACHED:已挂载
DETACHING:解挂中
EXPANDING:扩容中
ROLLBACKING:回滚中
TORECYCLE:待回收
DUMPING:拷贝硬盘中。
* @return DiskState 云盘状态。取值范围:
UNATTACHED:未挂载
ATTACHING:挂载中
ATTACHED:已挂载
DETACHING:解挂中
EXPANDING:扩容中
ROLLBACKING:回滚中
TORECYCLE:待回收
DUMPING:拷贝硬盘中。
*/
public String getDiskState() {
return this.DiskState;
}
/**
* Set 云盘状态。取值范围:
UNATTACHED:未挂载
ATTACHING:挂载中
ATTACHED:已挂载
DETACHING:解挂中
EXPANDING:扩容中
ROLLBACKING:回滚中
TORECYCLE:待回收
DUMPING:拷贝硬盘中。
* @param DiskState 云盘状态。取值范围:
UNATTACHED:未挂载
ATTACHING:挂载中
ATTACHED:已挂载
DETACHING:解挂中
EXPANDING:扩容中
ROLLBACKING:回滚中
TORECYCLE:待回收
DUMPING:拷贝硬盘中。
*/
public void setDiskState(String DiskState) {
this.DiskState = DiskState;
}
/**
* Get 云盘拥有的快照总数。
* @return SnapshotCount 云盘拥有的快照总数。
*/
public Long getSnapshotCount() {
return this.SnapshotCount;
}
/**
* Set 云盘拥有的快照总数。
* @param SnapshotCount 云盘拥有的快照总数。
*/
public void setSnapshotCount(Long SnapshotCount) {
this.SnapshotCount = SnapshotCount;
}
/**
* Get 云盘已挂载到子机,且子机与云盘都是包年包月。
true:子机设置了自动续费标识,但云盘未设置
false:云盘自动续费标识正常。
注意:此字段可能返回 null,表示取不到有效值。
* @return AutoRenewFlagError 云盘已挂载到子机,且子机与云盘都是包年包月。
true:子机设置了自动续费标识,但云盘未设置
false:云盘自动续费标识正常。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getAutoRenewFlagError() {
return this.AutoRenewFlagError;
}
/**
* Set 云盘已挂载到子机,且子机与云盘都是包年包月。
true:子机设置了自动续费标识,但云盘未设置
false:云盘自动续费标识正常。
注意:此字段可能返回 null,表示取不到有效值。
* @param AutoRenewFlagError 云盘已挂载到子机,且子机与云盘都是包年包月。
true:子机设置了自动续费标识,但云盘未设置
false:云盘自动续费标识正常。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAutoRenewFlagError(Boolean AutoRenewFlagError) {
this.AutoRenewFlagError = AutoRenewFlagError;
}
/**
* Get 云盘是否处于快照回滚状态。取值范围:
false:表示不处于快照回滚状态
true:表示处于快照回滚状态。
* @return Rollbacking 云盘是否处于快照回滚状态。取值范围:
false:表示不处于快照回滚状态
true:表示处于快照回滚状态。
*/
public Boolean getRollbacking() {
return this.Rollbacking;
}
/**
* Set 云盘是否处于快照回滚状态。取值范围:
false:表示不处于快照回滚状态
true:表示处于快照回滚状态。
* @param Rollbacking 云盘是否处于快照回滚状态。取值范围:
false:表示不处于快照回滚状态
true:表示处于快照回滚状态。
*/
public void setRollbacking(Boolean Rollbacking) {
this.Rollbacking = Rollbacking;
}
/**
* Get 对于非共享型云盘,该参数为空数组。对于共享型云盘,则表示该云盘当前被挂载到的CVM实例InstanceId
* @return InstanceIdList 对于非共享型云盘,该参数为空数组。对于共享型云盘,则表示该云盘当前被挂载到的CVM实例InstanceId
*/
public String [] getInstanceIdList() {
return this.InstanceIdList;
}
/**
* Set 对于非共享型云盘,该参数为空数组。对于共享型云盘,则表示该云盘当前被挂载到的CVM实例InstanceId
* @param InstanceIdList 对于非共享型云盘,该参数为空数组。对于共享型云盘,则表示该云盘当前被挂载到的CVM实例InstanceId
*/
public void setInstanceIdList(String [] InstanceIdList) {
this.InstanceIdList = InstanceIdList;
}
/**
* Get 云盘是否为加密盘。取值范围:
false:表示非加密盘
true:表示加密盘。
* @return Encrypt 云盘是否为加密盘。取值范围:
false:表示非加密盘
true:表示加密盘。
*/
public Boolean getEncrypt() {
return this.Encrypt;
}
/**
* Set 云盘是否为加密盘。取值范围:
false:表示非加密盘
true:表示加密盘。
* @param Encrypt 云盘是否为加密盘。取值范围:
false:表示非加密盘
true:表示加密盘。
*/
public void setEncrypt(Boolean Encrypt) {
this.Encrypt = Encrypt;
}
/**
* Get 云硬盘名称。
* @return DiskName 云硬盘名称。
*/
public String getDiskName() {
return this.DiskName;
}
/**
* Set 云硬盘名称。
* @param DiskName 云硬盘名称。
*/
public void setDiskName(String DiskName) {
this.DiskName = DiskName;
}
/**
* Get 云硬盘因欠费销毁或者到期销毁时, 是否使用快照备份数据的标识。true表示销毁时创建快照进行数据备份。false表示直接销毁,不进行数据备份。
* @return BackupDisk 云硬盘因欠费销毁或者到期销毁时, 是否使用快照备份数据的标识。true表示销毁时创建快照进行数据备份。false表示直接销毁,不进行数据备份。
*/
public Boolean getBackupDisk() {
return this.BackupDisk;
}
/**
* Set 云硬盘因欠费销毁或者到期销毁时, 是否使用快照备份数据的标识。true表示销毁时创建快照进行数据备份。false表示直接销毁,不进行数据备份。
* @param BackupDisk 云硬盘因欠费销毁或者到期销毁时, 是否使用快照备份数据的标识。true表示销毁时创建快照进行数据备份。false表示直接销毁,不进行数据备份。
*/
public void setBackupDisk(Boolean BackupDisk) {
this.BackupDisk = BackupDisk;
}
/**
* Get 与云盘绑定的标签,云盘未绑定标签则取值为空。
注意:此字段可能返回 null,表示取不到有效值。
* @return Tags 与云盘绑定的标签,云盘未绑定标签则取值为空。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 与云盘绑定的标签,云盘未绑定标签则取值为空。
注意:此字段可能返回 null,表示取不到有效值。
* @param Tags 与云盘绑定的标签,云盘未绑定标签则取值为空。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get 云硬盘挂载的云主机ID。
* @return InstanceId 云硬盘挂载的云主机ID。
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 云硬盘挂载的云主机ID。
* @param InstanceId 云硬盘挂载的云主机ID。
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
注意:此字段可能返回 null,表示取不到有效值。
* @return AutoSnapshotPolicyIds 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getAutoSnapshotPolicyIds() {
return this.AutoSnapshotPolicyIds;
}
/**
* Set 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
注意:此字段可能返回 null,表示取不到有效值。
* @param AutoSnapshotPolicyIds 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAutoSnapshotPolicyIds(String [] AutoSnapshotPolicyIds) {
this.AutoSnapshotPolicyIds = AutoSnapshotPolicyIds;
}
/**
* Get 云硬盘额外性能值,单位MB/s。
注意:此字段可能返回 null,表示取不到有效值。
* @return ThroughputPerformance 云硬盘额外性能值,单位MB/s。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getThroughputPerformance() {
return this.ThroughputPerformance;
}
/**
* Set 云硬盘额外性能值,单位MB/s。
注意:此字段可能返回 null,表示取不到有效值。
* @param ThroughputPerformance 云硬盘额外性能值,单位MB/s。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setThroughputPerformance(Long ThroughputPerformance) {
this.ThroughputPerformance = ThroughputPerformance;
}
/**
* Get 云盘是否处于类型变更中。取值范围:
false:表示云盘不处于类型变更中
true:表示云盘已发起类型变更,正处于迁移中。
注意:此字段可能返回 null,表示取不到有效值。
* @return Migrating 云盘是否处于类型变更中。取值范围:
false:表示云盘不处于类型变更中
true:表示云盘已发起类型变更,正处于迁移中。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getMigrating() {
return this.Migrating;
}
/**
* Set 云盘是否处于类型变更中。取值范围:
false:表示云盘不处于类型变更中
true:表示云盘已发起类型变更,正处于迁移中。
注意:此字段可能返回 null,表示取不到有效值。
* @param Migrating 云盘是否处于类型变更中。取值范围:
false:表示云盘不处于类型变更中
true:表示云盘已发起类型变更,正处于迁移中。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setMigrating(Boolean Migrating) {
this.Migrating = Migrating;
}
/**
* Get 云硬盘ID。
* @return DiskId 云硬盘ID。
*/
public String getDiskId() {
return this.DiskId;
}
/**
* Set 云硬盘ID。
* @param DiskId 云硬盘ID。
*/
public void setDiskId(String DiskId) {
this.DiskId = DiskId;
}
/**
* Get 云盘拥有的快照总容量,单位为MB。
* @return SnapshotSize 云盘拥有的快照总容量,单位为MB。
*/
public Long getSnapshotSize() {
return this.SnapshotSize;
}
/**
* Set 云盘拥有的快照总容量,单位为MB。
* @param SnapshotSize 云盘拥有的快照总容量,单位为MB。
*/
public void setSnapshotSize(Long SnapshotSize) {
this.SnapshotSize = SnapshotSize;
}
/**
* Get 云硬盘所在的位置。
* @return Placement 云硬盘所在的位置。
*/
public Placement getPlacement() {
return this.Placement;
}
/**
* Set 云硬盘所在的位置。
* @param Placement 云硬盘所在的位置。
*/
public void setPlacement(Placement Placement) {
this.Placement = Placement;
}
/**
* Get 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
注意:此字段可能返回 null,表示取不到有效值。
* @return IsReturnable 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getIsReturnable() {
return this.IsReturnable;
}
/**
* Set 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
注意:此字段可能返回 null,表示取不到有效值。
* @param IsReturnable 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setIsReturnable(Boolean IsReturnable) {
this.IsReturnable = IsReturnable;
}
/**
* Get 云盘是否挂载到云主机上。取值范围:
false:表示未挂载
true:表示已挂载。
* @return Attached 云盘是否挂载到云主机上。取值范围:
false:表示未挂载
true:表示已挂载。
*/
public Boolean getAttached() {
return this.Attached;
}
/**
* Set 云盘是否挂载到云主机上。取值范围:
false:表示未挂载
true:表示已挂载。
* @param Attached 云盘是否挂载到云主机上。取值范围:
false:表示未挂载
true:表示已挂载。
*/
public void setAttached(Boolean Attached) {
this.Attached = Attached;
}
/**
* Get 云硬盘大小,单位GB。
* @return DiskSize 云硬盘大小,单位GB。
*/
public Long getDiskSize() {
return this.DiskSize;
}
/**
* Set 云硬盘大小,单位GB。
* @param DiskSize 云硬盘大小,单位GB。
*/
public void setDiskSize(Long DiskSize) {
this.DiskSize = DiskSize;
}
/**
* Get 云盘类型变更的迁移进度,取值0到100。
注意:此字段可能返回 null,表示取不到有效值。
* @return MigratePercent 云盘类型变更的迁移进度,取值0到100。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getMigratePercent() {
return this.MigratePercent;
}
/**
* Set 云盘类型变更的迁移进度,取值0到100。
注意:此字段可能返回 null,表示取不到有效值。
* @param MigratePercent 云盘类型变更的迁移进度,取值0到100。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setMigratePercent(Long MigratePercent) {
this.MigratePercent = MigratePercent;
}
/**
* Get 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
* @return DiskUsage 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
*/
public String getDiskUsage() {
return this.DiskUsage;
}
/**
* Set 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
* @param DiskUsage 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
*/
public void setDiskUsage(String DiskUsage) {
this.DiskUsage = DiskUsage;
}
/**
* Get 付费模式。取值范围:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费。
* @return DiskChargeType 付费模式。取值范围:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费。
*/
public String getDiskChargeType() {
return this.DiskChargeType;
}
/**
* Set 付费模式。取值范围:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费。
* @param DiskChargeType 付费模式。取值范围:
PREPAID:预付费,即包年包月
POSTPAID_BY_HOUR:后付费,即按量计费。
*/
public void setDiskChargeType(String DiskChargeType) {
this.DiskChargeType = DiskChargeType;
}
/**
* Get 是否为弹性云盘,false表示非弹性云盘,true表示弹性云盘。
* @return Portable 是否为弹性云盘,false表示非弹性云盘,true表示弹性云盘。
*/
public Boolean getPortable() {
return this.Portable;
}
/**
* Set 是否为弹性云盘,false表示非弹性云盘,true表示弹性云盘。
* @param Portable 是否为弹性云盘,false表示非弹性云盘,true表示弹性云盘。
*/
public void setPortable(Boolean Portable) {
this.Portable = Portable;
}
/**
* Get 云盘是否具备创建快照的能力。取值范围:
false表示不具备
true表示具备。
* @return SnapshotAbility 云盘是否具备创建快照的能力。取值范围:
false表示不具备
true表示具备。
*/
public Boolean getSnapshotAbility() {
return this.SnapshotAbility;
}
/**
* Set 云盘是否具备创建快照的能力。取值范围:
false表示不具备
true表示具备。
* @param SnapshotAbility 云盘是否具备创建快照的能力。取值范围:
false表示不具备
true表示具备。
*/
public void setSnapshotAbility(Boolean SnapshotAbility) {
this.SnapshotAbility = SnapshotAbility;
}
/**
* Get 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。
true:云盘到期时间早于实例。
false:云盘到期时间晚于实例。
注意:此字段可能返回 null,表示取不到有效值。
* @return DeadlineError 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。
true:云盘到期时间早于实例。
false:云盘到期时间晚于实例。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getDeadlineError() {
return this.DeadlineError;
}
/**
* Set 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。
true:云盘到期时间早于实例。
false:云盘到期时间晚于实例。
注意:此字段可能返回 null,表示取不到有效值。
* @param DeadlineError 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。
true:云盘到期时间早于实例。
false:云盘到期时间晚于实例。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDeadlineError(Boolean DeadlineError) {
this.DeadlineError = DeadlineError;
}
/**
* Get 云盘快照回滚的进度。
* @return RollbackPercent 云盘快照回滚的进度。
*/
public Long getRollbackPercent() {
return this.RollbackPercent;
}
/**
* Set 云盘快照回滚的进度。
* @param RollbackPercent 云盘快照回滚的进度。
*/
public void setRollbackPercent(Long RollbackPercent) {
this.RollbackPercent = RollbackPercent;
}
/**
* Get 当前时间距离盘到期的天数(仅对预付费盘有意义)。
注意:此字段可能返回 null,表示取不到有效值。
* @return DifferDaysOfDeadline 当前时间距离盘到期的天数(仅对预付费盘有意义)。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getDifferDaysOfDeadline() {
return this.DifferDaysOfDeadline;
}
/**
* Set 当前时间距离盘到期的天数(仅对预付费盘有意义)。
注意:此字段可能返回 null,表示取不到有效值。
* @param DifferDaysOfDeadline 当前时间距离盘到期的天数(仅对预付费盘有意义)。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDifferDaysOfDeadline(Long DifferDaysOfDeadline) {
this.DifferDaysOfDeadline = DifferDaysOfDeadline;
}
/**
* Get 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
注意:此字段可能返回 null,表示取不到有效值。
* @return ReturnFailCode 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getReturnFailCode() {
return this.ReturnFailCode;
}
/**
* Set 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
注意:此字段可能返回 null,表示取不到有效值。
* @param ReturnFailCode 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setReturnFailCode(Long ReturnFailCode) {
this.ReturnFailCode = ReturnFailCode;
}
/**
* Get 云盘是否为共享型云盘。
* @return Shareable 云盘是否为共享型云盘。
*/
public Boolean getShareable() {
return this.Shareable;
}
/**
* Set 云盘是否为共享型云盘。
* @param Shareable 云盘是否为共享型云盘。
*/
public void setShareable(Boolean Shareable) {
this.Shareable = Shareable;
}
/**
* Get 云硬盘的创建时间。
* @return CreateTime 云硬盘的创建时间。
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 云硬盘的创建时间。
* @param CreateTime 云硬盘的创建时间。
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 云硬盘的到期时间。
* @return DeadlineTime 云硬盘的到期时间。
*/
public String getDeadlineTime() {
return this.DeadlineTime;
}
/**
* Set 云硬盘的到期时间。
* @param DeadlineTime 云硬盘的到期时间。
*/
public void setDeadlineTime(String DeadlineTime) {
this.DeadlineTime = DeadlineTime;
}
/**
* Get 云盘的挂载类型。取值范围:
PF: PF挂载
VF: VF挂载
注意:此字段可能返回 null,表示取不到有效值。
* @return AttachMode 云盘的挂载类型。取值范围:
PF: PF挂载
VF: VF挂载
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getAttachMode() {
return this.AttachMode;
}
/**
* Set 云盘的挂载类型。取值范围:
PF: PF挂载
VF: VF挂载
注意:此字段可能返回 null,表示取不到有效值。
* @param AttachMode 云盘的挂载类型。取值范围:
PF: PF挂载
VF: VF挂载
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAttachMode(String AttachMode) {
this.AttachMode = AttachMode;
}
public Disk() {
}
/**
* 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 Disk(Disk source) {
if (source.DeleteWithInstance != null) {
this.DeleteWithInstance = new Boolean(source.DeleteWithInstance);
}
if (source.RenewFlag != null) {
this.RenewFlag = new String(source.RenewFlag);
}
if (source.DiskType != null) {
this.DiskType = new String(source.DiskType);
}
if (source.DiskState != null) {
this.DiskState = new String(source.DiskState);
}
if (source.SnapshotCount != null) {
this.SnapshotCount = new Long(source.SnapshotCount);
}
if (source.AutoRenewFlagError != null) {
this.AutoRenewFlagError = new Boolean(source.AutoRenewFlagError);
}
if (source.Rollbacking != null) {
this.Rollbacking = new Boolean(source.Rollbacking);
}
if (source.InstanceIdList != null) {
this.InstanceIdList = new String[source.InstanceIdList.length];
for (int i = 0; i < source.InstanceIdList.length; i++) {
this.InstanceIdList[i] = new String(source.InstanceIdList[i]);
}
}
if (source.Encrypt != null) {
this.Encrypt = new Boolean(source.Encrypt);
}
if (source.DiskName != null) {
this.DiskName = new String(source.DiskName);
}
if (source.BackupDisk != null) {
this.BackupDisk = new Boolean(source.BackupDisk);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.AutoSnapshotPolicyIds != null) {
this.AutoSnapshotPolicyIds = new String[source.AutoSnapshotPolicyIds.length];
for (int i = 0; i < source.AutoSnapshotPolicyIds.length; i++) {
this.AutoSnapshotPolicyIds[i] = new String(source.AutoSnapshotPolicyIds[i]);
}
}
if (source.ThroughputPerformance != null) {
this.ThroughputPerformance = new Long(source.ThroughputPerformance);
}
if (source.Migrating != null) {
this.Migrating = new Boolean(source.Migrating);
}
if (source.DiskId != null) {
this.DiskId = new String(source.DiskId);
}
if (source.SnapshotSize != null) {
this.SnapshotSize = new Long(source.SnapshotSize);
}
if (source.Placement != null) {
this.Placement = new Placement(source.Placement);
}
if (source.IsReturnable != null) {
this.IsReturnable = new Boolean(source.IsReturnable);
}
if (source.Attached != null) {
this.Attached = new Boolean(source.Attached);
}
if (source.DiskSize != null) {
this.DiskSize = new Long(source.DiskSize);
}
if (source.MigratePercent != null) {
this.MigratePercent = new Long(source.MigratePercent);
}
if (source.DiskUsage != null) {
this.DiskUsage = new String(source.DiskUsage);
}
if (source.DiskChargeType != null) {
this.DiskChargeType = new String(source.DiskChargeType);
}
if (source.Portable != null) {
this.Portable = new Boolean(source.Portable);
}
if (source.SnapshotAbility != null) {
this.SnapshotAbility = new Boolean(source.SnapshotAbility);
}
if (source.DeadlineError != null) {
this.DeadlineError = new Boolean(source.DeadlineError);
}
if (source.RollbackPercent != null) {
this.RollbackPercent = new Long(source.RollbackPercent);
}
if (source.DifferDaysOfDeadline != null) {
this.DifferDaysOfDeadline = new Long(source.DifferDaysOfDeadline);
}
if (source.ReturnFailCode != null) {
this.ReturnFailCode = new Long(source.ReturnFailCode);
}
if (source.Shareable != null) {
this.Shareable = new Boolean(source.Shareable);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.DeadlineTime != null) {
this.DeadlineTime = new String(source.DeadlineTime);
}
if (source.AttachMode != null) {
this.AttachMode = new String(source.AttachMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
this.setParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.setParamSimple(map, prefix + "DiskType", this.DiskType);
this.setParamSimple(map, prefix + "DiskState", this.DiskState);
this.setParamSimple(map, prefix + "SnapshotCount", this.SnapshotCount);
this.setParamSimple(map, prefix + "AutoRenewFlagError", this.AutoRenewFlagError);
this.setParamSimple(map, prefix + "Rollbacking", this.Rollbacking);
this.setParamArraySimple(map, prefix + "InstanceIdList.", this.InstanceIdList);
this.setParamSimple(map, prefix + "Encrypt", this.Encrypt);
this.setParamSimple(map, prefix + "DiskName", this.DiskName);
this.setParamSimple(map, prefix + "BackupDisk", this.BackupDisk);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamArraySimple(map, prefix + "AutoSnapshotPolicyIds.", this.AutoSnapshotPolicyIds);
this.setParamSimple(map, prefix + "ThroughputPerformance", this.ThroughputPerformance);
this.setParamSimple(map, prefix + "Migrating", this.Migrating);
this.setParamSimple(map, prefix + "DiskId", this.DiskId);
this.setParamSimple(map, prefix + "SnapshotSize", this.SnapshotSize);
this.setParamObj(map, prefix + "Placement.", this.Placement);
this.setParamSimple(map, prefix + "IsReturnable", this.IsReturnable);
this.setParamSimple(map, prefix + "Attached", this.Attached);
this.setParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.setParamSimple(map, prefix + "MigratePercent", this.MigratePercent);
this.setParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.setParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.setParamSimple(map, prefix + "Portable", this.Portable);
this.setParamSimple(map, prefix + "SnapshotAbility", this.SnapshotAbility);
this.setParamSimple(map, prefix + "DeadlineError", this.DeadlineError);
this.setParamSimple(map, prefix + "RollbackPercent", this.RollbackPercent);
this.setParamSimple(map, prefix + "DifferDaysOfDeadline", this.DifferDaysOfDeadline);
this.setParamSimple(map, prefix + "ReturnFailCode", this.ReturnFailCode);
this.setParamSimple(map, prefix + "Shareable", this.Shareable);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime);
this.setParamSimple(map, prefix + "AttachMode", this.AttachMode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy