Interface PutLifecycleConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutLifecycleConfigurationRequest.Builder,
,PutLifecycleConfigurationRequest> EfsRequest.Builder
,SdkBuilder<PutLifecycleConfigurationRequest.Builder,
,PutLifecycleConfigurationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutLifecycleConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionfileSystemId
(String fileSystemId) The ID of the file system for which you are creating theLifecycleConfiguration
object (String).lifecyclePolicies
(Collection<LifecyclePolicy> lifecyclePolicies) An array ofLifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object.lifecyclePolicies
(Consumer<LifecyclePolicy.Builder>... lifecyclePolicies) An array ofLifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object.lifecyclePolicies
(LifecyclePolicy... lifecyclePolicies) An array ofLifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.efs.model.EfsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fileSystemId
The ID of the file system for which you are creating the
LifecycleConfiguration
object (String).- Parameters:
fileSystemId
- The ID of the file system for which you are creating theLifecycleConfiguration
object (String).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecyclePolicies
PutLifecycleConfigurationRequest.Builder lifecyclePolicies(Collection<LifecyclePolicy> lifecyclePolicies) An array of
LifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object. ALifecycleConfiguration
object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:-
When to move files in the file system from primary storage to the IA storage class.
-
When to move files that are in IA storage to primary storage.
When using the
put-lifecycle-configuration
CLI command or thePutLifecycleConfiguration
API action, Amazon EFS requires that eachLifecyclePolicy
object have only a single transition. This means that in a request body,LifecyclePolicies
must be structured as an array ofLifecyclePolicy
objects, one object for each transition,TransitionToIA
,TransitionToPrimaryStorageClass
. See the example requests in the following section for more information.- Parameters:
lifecyclePolicies
- An array ofLifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object. ALifecycleConfiguration
object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:-
When to move files in the file system from primary storage to the IA storage class.
-
When to move files that are in IA storage to primary storage.
When using the
put-lifecycle-configuration
CLI command or thePutLifecycleConfiguration
API action, Amazon EFS requires that eachLifecyclePolicy
object have only a single transition. This means that in a request body,LifecyclePolicies
must be structured as an array ofLifecyclePolicy
objects, one object for each transition,TransitionToIA
,TransitionToPrimaryStorageClass
. See the example requests in the following section for more information.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
lifecyclePolicies
An array of
LifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object. ALifecycleConfiguration
object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:-
When to move files in the file system from primary storage to the IA storage class.
-
When to move files that are in IA storage to primary storage.
When using the
put-lifecycle-configuration
CLI command or thePutLifecycleConfiguration
API action, Amazon EFS requires that eachLifecyclePolicy
object have only a single transition. This means that in a request body,LifecyclePolicies
must be structured as an array ofLifecyclePolicy
objects, one object for each transition,TransitionToIA
,TransitionToPrimaryStorageClass
. See the example requests in the following section for more information.- Parameters:
lifecyclePolicies
- An array ofLifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object. ALifecycleConfiguration
object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:-
When to move files in the file system from primary storage to the IA storage class.
-
When to move files that are in IA storage to primary storage.
When using the
put-lifecycle-configuration
CLI command or thePutLifecycleConfiguration
API action, Amazon EFS requires that eachLifecyclePolicy
object have only a single transition. This means that in a request body,LifecyclePolicies
must be structured as an array ofLifecyclePolicy
objects, one object for each transition,TransitionToIA
,TransitionToPrimaryStorageClass
. See the example requests in the following section for more information.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
lifecyclePolicies
PutLifecycleConfigurationRequest.Builder lifecyclePolicies(Consumer<LifecyclePolicy.Builder>... lifecyclePolicies) An array of
LifecyclePolicy
objects that define the file system'sLifecycleConfiguration
object. ALifecycleConfiguration
object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:-
When to move files in the file system from primary storage to the IA storage class.
-
When to move files that are in IA storage to primary storage.
When using the
put-lifecycle-configuration
CLI command or thePutLifecycleConfiguration
API action, Amazon EFS requires that eachLifecyclePolicy
object have only a single transition. This means that in a request body,LifecyclePolicies
must be structured as an array ofLifecyclePolicy
objects, one object for each transition,TransitionToIA
,TransitionToPrimaryStorageClass
. See the example requests in the following section for more information.LifecyclePolicy.Builder
avoiding the need to create one manually viaLifecyclePolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolifecyclePolicies(List<LifecyclePolicy>)
.- Parameters:
lifecyclePolicies
- a consumer that will call methods onLifecyclePolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
PutLifecycleConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutLifecycleConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-