public class CreateAutoSnapshotPolicyRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
autoSnapshotPolicyName
The name of the automatic snapshot policy.
|
Integer |
copiedSnapshotsRetentionDays
The retention period of the snapshot copy in the destination region.
|
Boolean |
enableCrossRegionCopy
Specifies whether to enable cross-region replication for the automatic snapshot.
|
Long |
ownerId |
String |
regionId
The ID of the region in which to create the automatic snapshot policy.
|
String |
repeatWeekdays
The days of the week on which to create automatic snapshots.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The retention period of the automatic snapshot.
|
String |
storageLocationArn
> This parameter is unavailable.
|
List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> |
tag
The tags to add to the automatic snapshot policy.
|
String |
targetCopyRegions
The destination region to which to copy the snapshot.
|
String |
timePoints
The points in time of the day at which to create automatic snapshots.
|
构造器和说明 |
---|
CreateAutoSnapshotPolicyRequest() |
@NameInMap(value="CopiedSnapshotsRetentionDays") public Integer copiedSnapshotsRetentionDays
The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
* \-1: The snapshot is permanently retained.
* 1 to 65535: The automatic snapshot is retained for the specified number of days.
Default value: -1.
@NameInMap(value="EnableCrossRegionCopy") public Boolean enableCrossRegionCopy
Specifies whether to enable cross-region replication for the automatic snapshot.
* true: enables cross-region replication for snapshots.
* false: disables cross-region replication for snapshots.
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StorageLocationArn") public String storageLocationArn
> This parameter is unavailable.
@NameInMap(value="Tag") public List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> tag
The tags to add to the automatic snapshot policy.
@NameInMap(value="TargetCopyRegions") public String targetCopyRegions
The destination region to which to copy the snapshot. You can specify only a single destination region.
@NameInMap(value="autoSnapshotPolicyName") public String autoSnapshotPolicyName
The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (.), underscores (\_), and hyphens (-).
This parameter is empty by default.
@NameInMap(value="regionId") public String regionId
The ID of the region in which to create the automatic snapshot policy. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="repeatWeekdays") public String repeatWeekdays
The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to Monday to Sunday. 1 indicates Monday.
* Set this parameter to a JSON-formatted array. For example, a value of \["1"] specifies automatic snapshots to be created every Monday.
* To schedule multiple automatic snapshots to be created in a week, you can specify multiple values. Separate the values with commas (,). You can specify a maximum of seven days. For example, a value of \["1","3","5"] specifies automatic snapshots to be created every Monday, Wednesday, and Friday.
@NameInMap(value="retentionDays") public Integer retentionDays
The retention period of the automatic snapshot. Unit: days. Valid values:
* \-1: The snapshot is permanently retained.
* 1 to 65535: The automatic snapshot is retained for the specified number of days.
Default value: -1.
@NameInMap(value="timePoints") public String timePoints
The points in time of the day at which to create automatic snapshots. The time must be in UTC+8. Unit: hours. Valid values are 0 to 23, which correspond to the 24 on-the-hour points in time from 00:00:00 to 23:00:00. 1 indicates 01:00:00. Format description:
* You must set this parameter to a JSON-formatted array. For example, a value of \["1"] specifies automatic snapshots to be created at 01:00:00.
* To schedule multiple automatic snapshots to be created in a day, you can specify multiple values. Separate the values with commas (,). You can specify a maximum of 24 points in time. For example, a value of \["1","3","5"] specifies automatic snapshots to be created at 01:00:00, 03:00:00, and 05:00:00.
public static CreateAutoSnapshotPolicyRequest build(Map<String,?> map) throws Exception
Exception
public CreateAutoSnapshotPolicyRequest setCopiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays)
public Integer getCopiedSnapshotsRetentionDays()
public CreateAutoSnapshotPolicyRequest setEnableCrossRegionCopy(Boolean enableCrossRegionCopy)
public Boolean getEnableCrossRegionCopy()
public CreateAutoSnapshotPolicyRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateAutoSnapshotPolicyRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateAutoSnapshotPolicyRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateAutoSnapshotPolicyRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateAutoSnapshotPolicyRequest setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public CreateAutoSnapshotPolicyRequest setTag(List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> tag)
public List<CreateAutoSnapshotPolicyRequest.CreateAutoSnapshotPolicyRequestTag> getTag()
public CreateAutoSnapshotPolicyRequest setTargetCopyRegions(String targetCopyRegions)
public String getTargetCopyRegions()
public CreateAutoSnapshotPolicyRequest setAutoSnapshotPolicyName(String autoSnapshotPolicyName)
public String getAutoSnapshotPolicyName()
public CreateAutoSnapshotPolicyRequest setRegionId(String regionId)
public String getRegionId()
public CreateAutoSnapshotPolicyRequest setRepeatWeekdays(String repeatWeekdays)
public String getRepeatWeekdays()
public CreateAutoSnapshotPolicyRequest setRetentionDays(Integer retentionDays)
public Integer getRetentionDays()
public CreateAutoSnapshotPolicyRequest setTimePoints(String timePoints)
public String getTimePoints()
Copyright © 2023. All rights reserved.