public class ModifyAutoSnapshotPolicyAttributeRequest extends AbstractModel
Constructor and Description |
---|
ModifyAutoSnapshotPolicyAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAutoSnapshotPolicyId()
Get Scheduled snapshot policy ID.
|
String |
getAutoSnapshotPolicyName()
Get The name of the scheduled snapshot policy to be created.
|
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 for which snapshots created by this policy are retained.
|
void |
setAutoSnapshotPolicyId(String AutoSnapshotPolicyId)
Set Scheduled snapshot policy ID.
|
void |
setAutoSnapshotPolicyName(String AutoSnapshotPolicyName)
Set The name of the scheduled snapshot policy to be created.
|
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 for which snapshots created by this policy are 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 ModifyAutoSnapshotPolicyAttributeRequest()
public String getAutoSnapshotPolicyId()
public void setAutoSnapshotPolicyId(String AutoSnapshotPolicyId)
AutoSnapshotPolicyId
- Scheduled snapshot policy ID.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 for which snapshots created by this policy are retained. This parameter cannot clash with `IsPermanent`, which is, if the scheduled snapshot policy is configured to retain permanently, `RetentionDays` must be 0.Copyright © 2020. All rights reserved.