com.tencentcloudapi.cbs.v20170312.models.ApplySnapshotRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.cbs.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 ApplySnapshotRequest extends AbstractModel {
/**
* Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
*/
@SerializedName("SnapshotId")
@Expose
private String SnapshotId;
/**
* ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
*/
@SerializedName("DiskId")
@Expose
private String DiskId;
/**
* Specifies whether to shut down a CVM automatically before a rollback
*/
@SerializedName("AutoStopInstance")
@Expose
private Boolean AutoStopInstance;
/**
* Specifies whether to start up a CVM automatically after a rollback
*/
@SerializedName("AutoStartInstance")
@Expose
private Boolean AutoStartInstance;
/**
* Get Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
* @return SnapshotId Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
*/
public String getSnapshotId() {
return this.SnapshotId;
}
/**
* Set Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
* @param SnapshotId Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
*/
public void setSnapshotId(String SnapshotId) {
this.SnapshotId = SnapshotId;
}
/**
* Get ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* @return DiskId ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
*/
public String getDiskId() {
return this.DiskId;
}
/**
* Set ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* @param DiskId ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
*/
public void setDiskId(String DiskId) {
this.DiskId = DiskId;
}
/**
* Get Specifies whether to shut down a CVM automatically before a rollback
* @return AutoStopInstance Specifies whether to shut down a CVM automatically before a rollback
*/
public Boolean getAutoStopInstance() {
return this.AutoStopInstance;
}
/**
* Set Specifies whether to shut down a CVM automatically before a rollback
* @param AutoStopInstance Specifies whether to shut down a CVM automatically before a rollback
*/
public void setAutoStopInstance(Boolean AutoStopInstance) {
this.AutoStopInstance = AutoStopInstance;
}
/**
* Get Specifies whether to start up a CVM automatically after a rollback
* @return AutoStartInstance Specifies whether to start up a CVM automatically after a rollback
*/
public Boolean getAutoStartInstance() {
return this.AutoStartInstance;
}
/**
* Set Specifies whether to start up a CVM automatically after a rollback
* @param AutoStartInstance Specifies whether to start up a CVM automatically after a rollback
*/
public void setAutoStartInstance(Boolean AutoStartInstance) {
this.AutoStartInstance = AutoStartInstance;
}
public ApplySnapshotRequest() {
}
/**
* 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 ApplySnapshotRequest(ApplySnapshotRequest source) {
if (source.SnapshotId != null) {
this.SnapshotId = new String(source.SnapshotId);
}
if (source.DiskId != null) {
this.DiskId = new String(source.DiskId);
}
if (source.AutoStopInstance != null) {
this.AutoStopInstance = new Boolean(source.AutoStopInstance);
}
if (source.AutoStartInstance != null) {
this.AutoStartInstance = new Boolean(source.AutoStartInstance);
}
}
/**
* 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 + "DiskId", this.DiskId);
this.setParamSimple(map, prefix + "AutoStopInstance", this.AutoStopInstance);
this.setParamSimple(map, prefix + "AutoStartInstance", this.AutoStartInstance);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy