public class SnapshotPolicy extends AbstractModel
header, skipSign
Constructor and Description |
---|
SnapshotPolicy() |
SnapshotPolicy(SnapshotPolicy 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 |
---|---|
BackupPolicy[] |
getBackupPolicies()
Get Scheduled backup policies
Note: This field may return `null`, indicating that no valid values can be obtained.
|
String |
getBackupType()
Get Backup policy type.
|
String |
getCosBucket()
Get COS bucket
|
String |
getCosRegion()
Get Region of the COS bucket
|
Boolean |
getCreateNewCos()
Get Whether to create a new COS bucket.
|
String |
getCreateTime()
Get Creation time
Note: This field may return `null`, indicating that no valid values can be obtained.
|
Boolean |
getEnable()
Get Whether to enable the policy.
|
Long |
getKeepTime()
Get Snapshot retention period in days.
|
String |
getSnapshotPolicyId()
Get Snapshot policy ID
|
String |
getSnapshotPolicyName()
Get Snapshot policy name
|
void |
setBackupPolicies(BackupPolicy[] BackupPolicies)
Set Scheduled backup policies
Note: This field may return `null`, indicating that no valid values can be obtained.
|
void |
setBackupType(String BackupType)
Set Backup policy type.
|
void |
setCosBucket(String CosBucket)
Set COS bucket
|
void |
setCosRegion(String CosRegion)
Set Region of the COS bucket
|
void |
setCreateNewCos(Boolean CreateNewCos)
Set Whether to create a new COS bucket.
|
void |
setCreateTime(String CreateTime)
Set Creation time
Note: This field may return `null`, indicating that no valid values can be obtained.
|
void |
setEnable(Boolean Enable)
Set Whether to enable the policy.
|
void |
setKeepTime(Long KeepTime)
Set Snapshot retention period in days.
|
void |
setSnapshotPolicyId(String SnapshotPolicyId)
Set Snapshot policy ID
|
void |
setSnapshotPolicyName(String SnapshotPolicyName)
Set Snapshot policy name
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SnapshotPolicy()
public SnapshotPolicy(SnapshotPolicy source)
public String getSnapshotPolicyName()
public void setSnapshotPolicyName(String SnapshotPolicyName)
SnapshotPolicyName
- Snapshot policy namepublic String getBackupType()
public void setBackupType(String BackupType)
BackupType
- Backup policy type. Values: `operate` (Manual backup); `time` (Scheduled backup)public Long getKeepTime()
public void setKeepTime(Long KeepTime)
KeepTime
- Snapshot retention period in days. Range: 1 to 365.public Boolean getCreateNewCos()
public void setCreateNewCos(Boolean CreateNewCos)
CreateNewCos
- Whether to create a new COS bucket. It defaults to `False`.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getCosRegion()
public void setCosRegion(String CosRegion)
CosRegion
- Region of the COS bucketpublic String getCosBucket()
public void setCosBucket(String CosBucket)
CosBucket
- COS bucketpublic String getSnapshotPolicyId()
public void setSnapshotPolicyId(String SnapshotPolicyId)
SnapshotPolicyId
- Snapshot policy IDpublic BackupPolicy[] getBackupPolicies()
public void setBackupPolicies(BackupPolicy[] BackupPolicies)
BackupPolicies
- Scheduled backup policies
Note: This field may return `null`, indicating that no valid values can be obtained.public Boolean getEnable()
public void setEnable(Boolean Enable)
Enable
- Whether to enable the policy. Values: `True` (default), `False`public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation time
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.