public class AutoSnapshotPolicy extends AbstractModel
Constructor and Description |
---|
AutoSnapshotPolicy() |
AutoSnapshotPolicy(AutoSnapshotPolicy 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 |
---|---|
AdvancedRetentionPolicy |
getAdvancedRetentionPolicy()
Get Retention policy for scheduled snapshots.
|
String |
getAutoSnapshotPolicyId()
Get Scheduled snapshot policy ID.
|
String |
getAutoSnapshotPolicyName()
Get Scheduled snapshot policy name.
|
String |
getAutoSnapshotPolicyState()
Get Scheduled snapshot policy state.
|
String |
getCopyFromAccountUin()
Get Source account ID of the copied snapshot policy
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getCopyToAccountUin()
Get ID of the replication target account
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getCreateTime()
Get The time the scheduled snapshot policy was created.
|
String[] |
getDiskIdSet()
Get The list of cloud disk IDs that the current scheduled snapshot policy is bound to.
|
String[] |
getInstanceIdSet()
Get List of IDs of the instances associated with the scheduled snapshot policy.
|
Boolean |
getIsActivated()
Get Whether scheduled snapshot policy is activated.
|
Long |
getIsCopyToRemote()
Get Whether it is to replicate a snapshot across accounts.
|
Boolean |
getIsPermanent()
Get Whether the snapshot created by this scheduled snapshot policy is retained permanently.
|
String |
getNextTriggerTime()
Get The time the scheduled snapshot will be triggered again.
|
Policy[] |
getPolicy()
Get The policy for executing the scheduled snapshot.
|
Long |
getRetentionAmount()
Get The maximum number of snapshots created by this scheduled snapshot policy that can be retained.
|
Long |
getRetentionDays()
Get Number of days the snapshot created by this scheduled snapshot policy is retained.
|
Long |
getRetentionMonths()
Get The number of months for which the snapshots created by this scheduled snapshot policy can be retained.
|
Tag[] |
getTags()
Get Tag.
|
void |
setAdvancedRetentionPolicy(AdvancedRetentionPolicy AdvancedRetentionPolicy)
Set Retention policy for scheduled snapshots.
|
void |
setAutoSnapshotPolicyId(String AutoSnapshotPolicyId)
Set Scheduled snapshot policy ID.
|
void |
setAutoSnapshotPolicyName(String AutoSnapshotPolicyName)
Set Scheduled snapshot policy name.
|
void |
setAutoSnapshotPolicyState(String AutoSnapshotPolicyState)
Set Scheduled snapshot policy state.
|
void |
setCopyFromAccountUin(String CopyFromAccountUin)
Set Source account ID of the copied snapshot policy
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setCopyToAccountUin(String CopyToAccountUin)
Set ID of the replication target account
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setCreateTime(String CreateTime)
Set The time the scheduled snapshot policy was created.
|
void |
setDiskIdSet(String[] DiskIdSet)
Set The list of cloud disk IDs that the current scheduled snapshot policy is bound to.
|
void |
setInstanceIdSet(String[] InstanceIdSet)
Set List of IDs of the instances associated with the scheduled snapshot policy.
|
void |
setIsActivated(Boolean IsActivated)
Set Whether scheduled snapshot policy is activated.
|
void |
setIsCopyToRemote(Long IsCopyToRemote)
Set Whether it is to replicate a snapshot across accounts.
|
void |
setIsPermanent(Boolean IsPermanent)
Set Whether the snapshot created by this scheduled snapshot policy is retained permanently.
|
void |
setNextTriggerTime(String NextTriggerTime)
Set The time the scheduled snapshot will be triggered again.
|
void |
setPolicy(Policy[] Policy)
Set The policy for executing the scheduled snapshot.
|
void |
setRetentionAmount(Long RetentionAmount)
Set The maximum number of snapshots created by this scheduled snapshot policy that can be retained.
|
void |
setRetentionDays(Long RetentionDays)
Set Number of days the snapshot created by this scheduled snapshot policy is retained.
|
void |
setRetentionMonths(Long RetentionMonths)
Set The number of months for which the snapshots created by this scheduled snapshot policy can be retained.
|
void |
setTags(Tag[] Tags)
Set Tag.
|
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 AutoSnapshotPolicy()
public AutoSnapshotPolicy(AutoSnapshotPolicy source)
public String[] getDiskIdSet()
public void setDiskIdSet(String[] DiskIdSet)
DiskIdSet
- The list of cloud disk IDs that the current scheduled snapshot policy is bound to.public Boolean getIsActivated()
public void setIsActivated(Boolean IsActivated)
IsActivated
- Whether scheduled snapshot policy is activated.public String getAutoSnapshotPolicyState()
public void setAutoSnapshotPolicyState(String AutoSnapshotPolicyState)
AutoSnapshotPolicyState
- Scheduled snapshot policy state. Value range:public Long getIsCopyToRemote()
public void setIsCopyToRemote(Long IsCopyToRemote)
IsCopyToRemote
- Whether it is to replicate a snapshot across accounts. `1`: yes, `0`: no.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsPermanent()
public void setIsPermanent(Boolean IsPermanent)
IsPermanent
- Whether the snapshot created by this scheduled snapshot policy is retained permanently.public String getNextTriggerTime()
public void setNextTriggerTime(String NextTriggerTime)
NextTriggerTime
- The time the scheduled snapshot will be triggered again.public String getAutoSnapshotPolicyName()
public void setAutoSnapshotPolicyName(String AutoSnapshotPolicyName)
AutoSnapshotPolicyName
- Scheduled snapshot policy name.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 getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- The time the scheduled snapshot policy was created.public Long getRetentionDays()
public void setRetentionDays(Long RetentionDays)
RetentionDays
- Number of days the snapshot created by this scheduled snapshot policy is retained.public String getCopyToAccountUin()
public void setCopyToAccountUin(String CopyToAccountUin)
CopyToAccountUin
- ID of the replication target account
Note: This field may return null, indicating that no valid values can be obtained.public String[] getInstanceIdSet()
public void setInstanceIdSet(String[] InstanceIdSet)
InstanceIdSet
- List of IDs of the instances associated with the scheduled snapshot policy.
Note: This field may return null, indicating that no valid values can be obtained.public Long getRetentionMonths()
public void setRetentionMonths(Long RetentionMonths)
RetentionMonths
- The number of months for which the snapshots created by this scheduled snapshot policy can be retained.
Note: This field may return null, indicating that no valid values can be obtained.public Long getRetentionAmount()
public void setRetentionAmount(Long RetentionAmount)
RetentionAmount
- The maximum number of snapshots created by this scheduled snapshot policy that can be retained.
Note: This field may return null, indicating that no valid values can be obtained.public AdvancedRetentionPolicy getAdvancedRetentionPolicy()
public void setAdvancedRetentionPolicy(AdvancedRetentionPolicy AdvancedRetentionPolicy)
AdvancedRetentionPolicy
- Retention policy for scheduled snapshots.
Note: This field may return null, indicating that no valid values can be obtained.public String getCopyFromAccountUin()
public void setCopyFromAccountUin(String CopyFromAccountUin)
CopyFromAccountUin
- Source account ID of the copied snapshot policy
Note: This field may return null, indicating that no valid values can be obtained.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.