public class CreateAutoSnapshotPolicyRequest extends AbstractModel
Constructor and Description |
---|
CreateAutoSnapshotPolicyRequest() |
CreateAutoSnapshotPolicyRequest(CreateAutoSnapshotPolicyRequest 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 |
---|---|
String |
getAutoSnapshotPolicyName()
Get The name of the scheduled snapshot policy to be created.
|
Boolean |
getDryRun()
Get Whether to create an execution policy for the scheduled snapshot.
|
Boolean |
getIsActivated()
Get Whether or not the scheduled snapshot policy is activated.
|
Boolean |
getIsPermanent()
Get Whether the snapshot created by this scheduled snapshot policy is retained permanently.
|
Policy[] |
getPolicy()
Get The policy for executing the scheduled snapshot.
|
Long |
getRetentionDays()
Get The number of days that a snapshot created by this scheduled snapshot policy is retained.
|
void |
setAutoSnapshotPolicyName(String AutoSnapshotPolicyName)
Set The name of the scheduled snapshot policy to be created.
|
void |
setDryRun(Boolean DryRun)
Set Whether to create an execution policy for the scheduled snapshot.
|
void |
setIsActivated(Boolean IsActivated)
Set Whether or not the scheduled snapshot policy is activated.
|
void |
setIsPermanent(Boolean IsPermanent)
Set Whether the snapshot created by this scheduled snapshot policy is retained permanently.
|
void |
setPolicy(Policy[] Policy)
Set The policy for executing the scheduled snapshot.
|
void |
setRetentionDays(Long RetentionDays)
Set The number of days that a snapshot created by this scheduled snapshot policy is retained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateAutoSnapshotPolicyRequest()
public CreateAutoSnapshotPolicyRequest(CreateAutoSnapshotPolicyRequest source)
public Policy[] getPolicy()
public void setPolicy(Policy[] Policy)
Policy
- The policy for executing the scheduled snapshot.public String getAutoSnapshotPolicyName()
public void setAutoSnapshotPolicyName(String AutoSnapshotPolicyName)
AutoSnapshotPolicyName
- The name of the scheduled snapshot policy to be created. If it is left empty, the default is 'Not named'. The maximum length cannot exceed 60 bytes.public Boolean getIsActivated()
public void setIsActivated(Boolean IsActivated)
IsActivated
- Whether or not the scheduled snapshot policy is activated. FALSE: Not activated. TRUE: Activated. The default value is TRUE.public Boolean getIsPermanent()
public void setIsPermanent(Boolean IsPermanent)
IsPermanent
- Whether the snapshot created by this scheduled snapshot policy is retained permanently. FALSE: Not retained permanently. TRUE: Retained permanently. The default value is FALSE.public Long getRetentionDays()
public void setRetentionDays(Long RetentionDays)
RetentionDays
- The number of days that a snapshot created by this scheduled snapshot policy is retained. The default value is 7. If this parameter is specified, the IsPermanent input parameter can not be TRUE, otherwise a conflict will occur.public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Whether to create an execution policy for the scheduled snapshot. TRUE: Only the time of the initial backup needs to be obtained, and no scheduled snapshot policy is actually created. FALSE: Create. The default value is FALSE.Copyright © 2023. All rights reserved.