Class CfnBackupPlan.LifecycleResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupPlan.LifecycleResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupPlan.LifecycleResourceTypeProperty>
- Enclosing interface:
CfnBackupPlan.LifecycleResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupPlan.LifecycleResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupPlan.LifecycleResourceTypeProperty>
A builder for
CfnBackupPlan.LifecycleResourceTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteAfterDays(Number deleteAfterDays) Sets the value ofCfnBackupPlan.LifecycleResourceTypeProperty.getDeleteAfterDays()moveToColdStorageAfterDays(Number moveToColdStorageAfterDays) optInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources) optInToArchiveForSupportedResources(IResolvable optInToArchiveForSupportedResources)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteAfterDays
@Stability(Stable) public CfnBackupPlan.LifecycleResourceTypeProperty.Builder deleteAfterDays(Number deleteAfterDays) Sets the value ofCfnBackupPlan.LifecycleResourceTypeProperty.getDeleteAfterDays()- Parameters:
deleteAfterDays- The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified inMoveToColdStorageAfterDays.- Returns:
this
-
moveToColdStorageAfterDays
@Stability(Stable) public CfnBackupPlan.LifecycleResourceTypeProperty.Builder moveToColdStorageAfterDays(Number moveToColdStorageAfterDays) - Parameters:
moveToColdStorageAfterDays- The number of days after creation that a recovery point is moved to cold storage.- Returns:
this
-
optInToArchiveForSupportedResources
@Stability(Stable) public CfnBackupPlan.LifecycleResourceTypeProperty.Builder optInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources) Sets the value ofCfnBackupPlan.LifecycleResourceTypeProperty.getOptInToArchiveForSupportedResources()- Parameters:
optInToArchiveForSupportedResources- If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.- Returns:
this
-
optInToArchiveForSupportedResources
@Stability(Stable) public CfnBackupPlan.LifecycleResourceTypeProperty.Builder optInToArchiveForSupportedResources(IResolvable optInToArchiveForSupportedResources) Sets the value ofCfnBackupPlan.LifecycleResourceTypeProperty.getOptInToArchiveForSupportedResources()- Parameters:
optInToArchiveForSupportedResources- If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBackupPlan.LifecycleResourceTypeProperty>- Returns:
- a new instance of
CfnBackupPlan.LifecycleResourceTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-