Class CfnBackupPlan.CopyActionResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupPlan.CopyActionResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupPlan.CopyActionResourceTypeProperty>
- Enclosing interface:
CfnBackupPlan.CopyActionResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupPlan.CopyActionResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupPlan.CopyActionResourceTypeProperty>
A builder for
CfnBackupPlan.CopyActionResourceTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationBackupVaultArn(String destinationBackupVaultArn) lifecycle(IResolvable lifecycle) Sets the value ofCfnBackupPlan.CopyActionResourceTypeProperty.getLifecycle()Sets the value ofCfnBackupPlan.CopyActionResourceTypeProperty.getLifecycle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationBackupVaultArn
@Stability(Stable) public CfnBackupPlan.CopyActionResourceTypeProperty.Builder destinationBackupVaultArn(String destinationBackupVaultArn) - Parameters:
destinationBackupVaultArn- An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. This parameter is required. For example,arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.- Returns:
this
-
lifecycle
@Stability(Stable) public CfnBackupPlan.CopyActionResourceTypeProperty.Builder lifecycle(IResolvable lifecycle) Sets the value ofCfnBackupPlan.CopyActionResourceTypeProperty.getLifecycle()- Parameters:
lifecycle- Defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define. If you do not specify a lifecycle, AWS Backup applies the lifecycle policy of the source backup to the destination backup.Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
- Returns:
this
-
lifecycle
@Stability(Stable) public CfnBackupPlan.CopyActionResourceTypeProperty.Builder lifecycle(CfnBackupPlan.LifecycleResourceTypeProperty lifecycle) Sets the value ofCfnBackupPlan.CopyActionResourceTypeProperty.getLifecycle()- Parameters:
lifecycle- Defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define. If you do not specify a lifecycle, AWS Backup applies the lifecycle policy of the source backup to the destination backup.Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBackupPlan.CopyActionResourceTypeProperty>- Returns:
- a new instance of
CfnBackupPlan.CopyActionResourceTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-