public static final class CreateAutoSnapshotPolicyRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateAutoSnapshotPolicyRequest.Builder |
autoSnapshotPolicyName(String autoSnapshotPolicyName)
The name of the automatic snapshot policy.
|
CreateAutoSnapshotPolicyRequest |
build() |
CreateAutoSnapshotPolicyRequest.Builder |
copiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays)
The retention period of the snapshot copy in the destination region.
|
CreateAutoSnapshotPolicyRequest.Builder |
enableCrossRegionCopy(Boolean enableCrossRegionCopy)
Specifies whether to enable cross-region replication for the automatic snapshot.
|
CreateAutoSnapshotPolicyRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateAutoSnapshotPolicyRequest.Builder |
regionId(String regionId)
The ID of the region in which to create the automatic snapshot policy.
|
CreateAutoSnapshotPolicyRequest.Builder |
repeatWeekdays(String repeatWeekdays)
The days of the week on which to create automatic snapshots.
|
CreateAutoSnapshotPolicyRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateAutoSnapshotPolicyRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateAutoSnapshotPolicyRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateAutoSnapshotPolicyRequest.Builder |
retentionDays(Integer retentionDays)
The retention period of the automatic snapshot.
|
CreateAutoSnapshotPolicyRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateAutoSnapshotPolicyRequest.Builder |
storageLocationArn(String storageLocationArn)
> This parameter is unavailable.
|
CreateAutoSnapshotPolicyRequest.Builder |
tag(List<CreateAutoSnapshotPolicyRequest.Tag> tag)
The tags to add to the automatic snapshot policy.
|
CreateAutoSnapshotPolicyRequest.Builder |
targetCopyRegions(String targetCopyRegions)
The destination region to which to copy the snapshot.
|
CreateAutoSnapshotPolicyRequest.Builder |
timePoints(String timePoints)
The points in time of the day at which to create automatic snapshots.
|
public CreateAutoSnapshotPolicyRequest.Builder sourceRegionId(String sourceRegionId)
public CreateAutoSnapshotPolicyRequest.Builder copiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays)
* \-1: The snapshot is permanently retained. * 1 to 65535: The automatic snapshot is retained for the specified number of days. Default value: -1.
public CreateAutoSnapshotPolicyRequest.Builder enableCrossRegionCopy(Boolean enableCrossRegionCopy)
* true: enables cross-region replication for snapshots. * false: disables cross-region replication for snapshots.
public CreateAutoSnapshotPolicyRequest.Builder ownerId(Long ownerId)
public CreateAutoSnapshotPolicyRequest.Builder resourceGroupId(String resourceGroupId)
public CreateAutoSnapshotPolicyRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateAutoSnapshotPolicyRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateAutoSnapshotPolicyRequest.Builder storageLocationArn(String storageLocationArn)
public CreateAutoSnapshotPolicyRequest.Builder tag(List<CreateAutoSnapshotPolicyRequest.Tag> tag)
public CreateAutoSnapshotPolicyRequest.Builder targetCopyRegions(String targetCopyRegions)
public CreateAutoSnapshotPolicyRequest.Builder autoSnapshotPolicyName(String autoSnapshotPolicyName)
This parameter is empty by default.
public CreateAutoSnapshotPolicyRequest.Builder regionId(String regionId)
public CreateAutoSnapshotPolicyRequest.Builder repeatWeekdays(String repeatWeekdays)
* 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.
public CreateAutoSnapshotPolicyRequest.Builder retentionDays(Integer retentionDays)
* \-1: The snapshot is permanently retained. * 1 to 65535: The automatic snapshot is retained for the specified number of days. Default value: -1.
public CreateAutoSnapshotPolicyRequest.Builder timePoints(String timePoints)
* 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 CreateAutoSnapshotPolicyRequest build()
Copyright © 2023. All rights reserved.