Class CfnFileSystem.LifecyclePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.efs.CfnFileSystem.LifecyclePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystem.LifecyclePolicyProperty>
- Enclosing interface:
CfnFileSystem.LifecyclePolicyProperty
@Stability(Stable)
public static final class CfnFileSystem.LifecyclePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystem.LifecyclePolicyProperty>
A builder for
CfnFileSystem.LifecyclePolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.transitionToIa
(String transitionToIa) Sets the value ofCfnFileSystem.LifecyclePolicyProperty.getTransitionToIa()
transitionToPrimaryStorageClass
(String transitionToPrimaryStorageClass)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transitionToIa
@Stability(Stable) public CfnFileSystem.LifecyclePolicyProperty.Builder transitionToIa(String transitionToIa) Sets the value ofCfnFileSystem.LifecyclePolicyProperty.getTransitionToIa()
- Parameters:
transitionToIa
- Describes the period of time that a file is not accessed, after which it transitions to 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 CfnFileSystem.LifecyclePolicyProperty.Builder transitionToPrimaryStorageClass(String transitionToPrimaryStorageClass) - Parameters:
transitionToPrimaryStorageClass
- Describes when to transition a file from IA storage to primary 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnFileSystem.LifecyclePolicyProperty>
- Returns:
- a new instance of
CfnFileSystem.LifecyclePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-