Class CfnDataLake.LifecycleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securitylake.CfnDataLake.LifecycleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataLake.LifecycleConfigurationProperty>
- Enclosing interface:
CfnDataLake.LifecycleConfigurationProperty
@Stability(Stable)
public static final class CfnDataLake.LifecycleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataLake.LifecycleConfigurationProperty>
A builder for
CfnDataLake.LifecycleConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.expiration
(IResolvable expiration) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getExpiration()
expiration
(CfnDataLake.ExpirationProperty expiration) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getExpiration()
transitions
(List<? extends Object> transitions) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getTransitions()
transitions
(IResolvable transitions) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getTransitions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expiration
@Stability(Stable) public CfnDataLake.LifecycleConfigurationProperty.Builder expiration(IResolvable expiration) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getExpiration()
- Parameters:
expiration
- Provides data expiration details of the Amazon Security Lake object.- Returns:
this
-
expiration
@Stability(Stable) public CfnDataLake.LifecycleConfigurationProperty.Builder expiration(CfnDataLake.ExpirationProperty expiration) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getExpiration()
- Parameters:
expiration
- Provides data expiration details of the Amazon Security Lake object.- Returns:
this
-
transitions
@Stability(Stable) public CfnDataLake.LifecycleConfigurationProperty.Builder transitions(IResolvable transitions) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getTransitions()
- Parameters:
transitions
- Provides data storage transition details of Amazon Security Lake object. By configuring these settings, you can specify your preferred Amazon S3 storage class and the time period for S3 objects to stay in that storage class before they transition to a different storage class.- Returns:
this
-
transitions
@Stability(Stable) public CfnDataLake.LifecycleConfigurationProperty.Builder transitions(List<? extends Object> transitions) Sets the value ofCfnDataLake.LifecycleConfigurationProperty.getTransitions()
- Parameters:
transitions
- Provides data storage transition details of Amazon Security Lake object. By configuring these settings, you can specify your preferred Amazon S3 storage class and the time period for S3 objects to stay in that storage class before they transition to a different storage class.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataLake.LifecycleConfigurationProperty>
- Returns:
- a new instance of
CfnDataLake.LifecycleConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-