com.tencentcloudapi.cvm.v20170312.models.Snapshot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-cvm Show documentation
Show all versions of tencentcloud-sdk-java-cvm Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.cvm.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 Snapshot extends AbstractModel{
/**
* 快照Id。
*/
@SerializedName("SnapshotId")
@Expose
private String SnapshotId;
/**
* 创建此快照的云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
*/
@SerializedName("DiskUsage")
@Expose
private String DiskUsage;
/**
* 创建此快照的云硬盘大小,单位GB。
*/
@SerializedName("DiskSize")
@Expose
private Long DiskSize;
/**
* Get 快照Id。
* @return SnapshotId 快照Id。
*/
public String getSnapshotId() {
return this.SnapshotId;
}
/**
* Set 快照Id。
* @param SnapshotId 快照Id。
*/
public void setSnapshotId(String SnapshotId) {
this.SnapshotId = SnapshotId;
}
/**
* 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 创建此快照的云硬盘大小,单位GB。
* @return DiskSize 创建此快照的云硬盘大小,单位GB。
*/
public Long getDiskSize() {
return this.DiskSize;
}
/**
* Set 创建此快照的云硬盘大小,单位GB。
* @param DiskSize 创建此快照的云硬盘大小,单位GB。
*/
public void setDiskSize(Long DiskSize) {
this.DiskSize = DiskSize;
}
public Snapshot() {
}
/**
* 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 Snapshot(Snapshot source) {
if (source.SnapshotId != null) {
this.SnapshotId = new String(source.SnapshotId);
}
if (source.DiskUsage != null) {
this.DiskUsage = new String(source.DiskUsage);
}
if (source.DiskSize != null) {
this.DiskSize = new Long(source.DiskSize);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SnapshotId", this.SnapshotId);
this.setParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.setParamSimple(map, prefix + "DiskSize", this.DiskSize);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy