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 |
---|---|
String |
getAutoSnapshotPolicyId()
Get Scheduled snapshot policy ID.
|
String |
getAutoSnapshotPolicyName()
Get Scheduled snapshot policy name.
|
String |
getAutoSnapshotPolicyState()
Get Scheduled snapshot policy state.
|
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 |
getRetentionDays()
Get Number of days the snapshot created by this scheduled snapshot policy is retained.
|
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 |
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 |
setRetentionDays(Long RetentionDays)
Set Number of days the 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 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.Copyright © 2022. All rights reserved.