Interface PutLifecycleConfigurationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutLifecycleConfigurationRequest.Builder,PutLifecycleConfigurationRequest>,EfsRequest.Builder,SdkBuilder<PutLifecycleConfigurationRequest.Builder,PutLifecycleConfigurationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutLifecycleConfigurationRequest
public static interface PutLifecycleConfigurationRequest.Builder extends EfsRequest.Builder, SdkPojo, CopyableBuilder<PutLifecycleConfigurationRequest.Builder,PutLifecycleConfigurationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutLifecycleConfigurationRequest.BuilderfileSystemId(String fileSystemId)The ID of the file system for which you are creating theLifecycleConfigurationobject (String).PutLifecycleConfigurationRequest.BuilderlifecyclePolicies(Collection<LifecyclePolicy> lifecyclePolicies)An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.PutLifecycleConfigurationRequest.BuilderlifecyclePolicies(Consumer<LifecyclePolicy.Builder>... lifecyclePolicies)An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.PutLifecycleConfigurationRequest.BuilderlifecyclePolicies(LifecyclePolicy... lifecyclePolicies)An array ofLifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject.PutLifecycleConfigurationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutLifecycleConfigurationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
fileSystemId
PutLifecycleConfigurationRequest.Builder fileSystemId(String 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 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 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(LifecyclePolicy... lifecyclePolicies)
An array of
LifecyclePolicyobjects that define the file system'sLifecycleConfigurationobject. ALifecycleConfigurationobject informs 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 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 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 to#lifecyclePolicies(List.) - 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:
#lifecyclePolicies(java.util.Collection)
-
-
overrideConfiguration
PutLifecycleConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutLifecycleConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-