public static final class CreateAutoSnapshotPolicyRequest.Builder extends Object
public CreateAutoSnapshotPolicyRequest.Builder sourceRegionId(String sourceRegionId)
public CreateAutoSnapshotPolicyRequest.Builder copiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays)
* \-1: The snapshot copy is retained until it is deleted. * 1 to 65535: The snapshot copy is retained for the specified number of days. After the retention period of the snapshot copy expires, the snapshot copy is automatically deleted. Default value: -1.
public CreateAutoSnapshotPolicyRequest.Builder copyEncryptionConfiguration(CreateAutoSnapshotPolicyRequest.CopyEncryptionConfiguration copyEncryptionConfiguration)
public CreateAutoSnapshotPolicyRequest.Builder enableCrossRegionCopy(Boolean enableCrossRegionCopy)
* true * false
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)
By default, this parameter is left empty.
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 automatic snapshot is retained until it is deleted. * 1 to 65535: The automatic snapshot is retained for the specified number of days. After the retention period of the automatic snapshot expires, the automatic snapshot is automatically deleted. Default value: -1.
public CreateAutoSnapshotPolicyRequest.Builder timePoints(String timePoints)
* 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 © 2024. All rights reserved.