public class ApplySnapshotRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ApplySnapshotRequest() | 
| ApplySnapshotRequest(ApplySnapshotRequest source)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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getAutoStartInstance()Get 回滚完成后是否自动开机,仅支持回滚快照至已挂载的云硬盘时传入。该参数传入时,需要同时传入AutoStopInstance参数。 | 
| Boolean | getAutoStopInstance()Get 回滚前是否执行自动关机,仅支持回滚快照至已挂载的云硬盘时传入。
此参数为true时,AutoStartInstance才能为true。 | 
| String | getDiskId()Get 快照原云硬盘ID,可通过[DescribeDisks](/document/product/362/16315)接口查询。 | 
| String | getSnapshotId()Get 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。 | 
| void | setAutoStartInstance(Boolean AutoStartInstance)Set 回滚完成后是否自动开机,仅支持回滚快照至已挂载的云硬盘时传入。该参数传入时,需要同时传入AutoStopInstance参数。 | 
| void | setAutoStopInstance(Boolean AutoStopInstance)Set 回滚前是否执行自动关机,仅支持回滚快照至已挂载的云硬盘时传入。
此参数为true时,AutoStartInstance才能为true。 | 
| void | setDiskId(String DiskId)Set 快照原云硬盘ID,可通过[DescribeDisks](/document/product/362/16315)接口查询。 | 
| void | setSnapshotId(String SnapshotId)Set 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ApplySnapshotRequest()
public ApplySnapshotRequest(ApplySnapshotRequest source)
public String getSnapshotId()
public void setSnapshotId(String SnapshotId)
SnapshotId - 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。public String getDiskId()
public void setDiskId(String DiskId)
DiskId - 快照原云硬盘ID,可通过[DescribeDisks](/document/product/362/16315)接口查询。public Boolean getAutoStopInstance()
public void setAutoStopInstance(Boolean AutoStopInstance)
AutoStopInstance - 回滚前是否执行自动关机,仅支持回滚快照至已挂载的云硬盘时传入。
此参数为true时,AutoStartInstance才能为true。public Boolean getAutoStartInstance()
public void setAutoStartInstance(Boolean AutoStartInstance)
AutoStartInstance - 回滚完成后是否自动开机,仅支持回滚快照至已挂载的云硬盘时传入。该参数传入时,需要同时传入AutoStopInstance参数。Copyright © 2025. All rights reserved.