Class CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.efs.CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystemPropsMixin.LifecyclePolicyProperty>
- Enclosing interface:
CfnFileSystemPropsMixin.LifecyclePolicyProperty
@Stability(Stable)
public static final class CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystemPropsMixin.LifecyclePolicyProperty>
A builder for
CfnFileSystemPropsMixin.LifecyclePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.transitionToArchive(String transitionToArchive) Sets the value ofCfnFileSystemPropsMixin.LifecyclePolicyProperty.getTransitionToArchive()transitionToIa(String transitionToIa) Sets the value ofCfnFileSystemPropsMixin.LifecyclePolicyProperty.getTransitionToIa()transitionToPrimaryStorageClass(String transitionToPrimaryStorageClass)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transitionToArchive
@Stability(Stable) public CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder transitionToArchive(String transitionToArchive) Sets the value ofCfnFileSystemPropsMixin.LifecyclePolicyProperty.getTransitionToArchive()- Parameters:
transitionToArchive- The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.- Returns:
this
-
transitionToIa
@Stability(Stable) public CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder transitionToIa(String transitionToIa) Sets the value ofCfnFileSystemPropsMixin.LifecyclePolicyProperty.getTransitionToIa()- Parameters:
transitionToIa- The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don't count as file access events.- Returns:
this
-
transitionToPrimaryStorageClass
@Stability(Stable) public CfnFileSystemPropsMixin.LifecyclePolicyProperty.Builder transitionToPrimaryStorageClass(String transitionToPrimaryStorageClass) Sets the value ofCfnFileSystemPropsMixin.LifecyclePolicyProperty.getTransitionToPrimaryStorageClass()- Parameters:
transitionToPrimaryStorageClass- Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don't count as file access events.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFileSystemPropsMixin.LifecyclePolicyProperty>- Returns:
- a new instance of
CfnFileSystemPropsMixin.LifecyclePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-