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 theLifecycleConfigurationobject (String).lifecyclePolicies(Collection<LifecyclePolicy> lifecyclePolicies) An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.lifecyclePolicies(Consumer<LifecyclePolicy.Builder>... lifecyclePolicies) An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.lifecyclePolicies(LifecyclePolicy... lifecyclePolicies) An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.efs.model.EfsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
LifecycleConfigurationobject (String).- Parameters:
fileSystemId- The ID of the file system for which you are creating theLifecycleConfigurationobject (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
LifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs EFS Lifecycle management of the following:-
TransitionToIA– When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access (IA) storage. -
TransitionToArchive– When to move files in the file system from their current storage class (either IA or Standard storage) into the Archive storage.File systems cannot transition into Archive storage before transitioning into IA storage. Therefore, TransitionToArchive must either not be set or must be later than TransitionToIA.
The Archive storage class is available only for file systems that use the Elastic Throughput mode and the General Purpose Performance mode.
-
TransitionToPrimaryStorageClass– Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.
When using the
put-lifecycle-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each storage transition. See the example requests in the following section for more information.- Parameters:
lifecyclePolicies- An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs EFS Lifecycle management of the following:-
TransitionToIA– When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access (IA) storage. -
TransitionToArchive– When to move files in the file system from their current storage class (either IA or Standard storage) into the Archive storage.File systems cannot transition into Archive storage before transitioning into IA storage. Therefore, TransitionToArchive must either not be set or must be later than TransitionToIA.
The Archive storage class is available only for file systems that use the Elastic Throughput mode and the General Purpose Performance mode.
-
TransitionToPrimaryStorageClass– Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.
When using the
put-lifecycle-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each storage transition. 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
LifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs EFS Lifecycle management of the following:-
TransitionToIA– When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access (IA) storage. -
TransitionToArchive– When to move files in the file system from their current storage class (either IA or Standard storage) into the Archive storage.File systems cannot transition into Archive storage before transitioning into IA storage. Therefore, TransitionToArchive must either not be set or must be later than TransitionToIA.
The Archive storage class is available only for file systems that use the Elastic Throughput mode and the General Purpose Performance mode.
-
TransitionToPrimaryStorageClass– Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.
When using the
put-lifecycle-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each storage transition. See the example requests in the following section for more information.- Parameters:
lifecyclePolicies- An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs EFS Lifecycle management of the following:-
TransitionToIA– When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access (IA) storage. -
TransitionToArchive– When to move files in the file system from their current storage class (either IA or Standard storage) into the Archive storage.File systems cannot transition into Archive storage before transitioning into IA storage. Therefore, TransitionToArchive must either not be set or must be later than TransitionToIA.
The Archive storage class is available only for file systems that use the Elastic Throughput mode and the General Purpose Performance mode.
-
TransitionToPrimaryStorageClass– Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.
When using the
put-lifecycle-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each storage transition. 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
LifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs EFS Lifecycle management of the following:-
TransitionToIA– When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access (IA) storage. -
TransitionToArchive– When to move files in the file system from their current storage class (either IA or Standard storage) into the Archive storage.File systems cannot transition into Archive storage before transitioning into IA storage. Therefore, TransitionToArchive must either not be set or must be later than TransitionToIA.
The Archive storage class is available only for file systems that use the Elastic Throughput mode and the General Purpose Performance mode.
-
TransitionToPrimaryStorageClass– Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.
This is a convenience method that creates an instance of theWhen using the
put-lifecycle-configurationCLI command or thePutLifecycleConfigurationAPI action, Amazon EFS requires that eachLifecyclePolicyobject have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each storage transition. See the example requests in the following section for more information.LifecyclePolicy.Builderavoiding the need to create one manually viaLifecyclePolicy.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-