public static interface LifecycleRule.Builder extends SdkPojo, CopyableBuilder<LifecycleRule.Builder,LifecycleRule>
| Modifier and Type | Method and Description |
|---|---|
LifecycleRule.Builder |
abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before
permanently removing all parts of the upload.
|
default LifecycleRule.Builder |
abortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before
permanently removing all parts of the upload.
|
default LifecycleRule.Builder |
expiration(Consumer<LifecycleExpiration.Builder> expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object
has a delete marker.
|
LifecycleRule.Builder |
expiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object
has a delete marker.
|
default LifecycleRule.Builder |
filter(Consumer<LifecycleRuleFilter.Builder> filter)
The container for the filter of lifecycle rule.
|
LifecycleRule.Builder |
filter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
|
LifecycleRule.Builder |
id(String id)
Unique identifier for the rule.
|
default LifecycleRule.Builder |
noncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
|
LifecycleRule.Builder |
noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
|
LifecycleRule.Builder |
noncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
LifecycleRule.Builder |
noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
LifecycleRule.Builder |
noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
LifecycleRule.Builder |
status(ExpirationStatus status)
If 'Enabled', the rule is currently being applied.
|
LifecycleRule.Builder |
status(String status)
If 'Enabled', the rule is currently being applied.
|
LifecycleRule.Builder |
transitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
LifecycleRule.Builder |
transitions(Consumer<Transition.Builder>... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
LifecycleRule.Builder |
transitions(Transition... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLifecycleRule.Builder expiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
expiration - Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the
object has a delete marker.default LifecycleRule.Builder expiration(Consumer<LifecycleExpiration.Builder> expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
This is a convenience method that creates an instance of theLifecycleExpiration.Builder avoiding the
need to create one manually via LifecycleExpiration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to expiration(LifecycleExpiration).
expiration - a consumer that will call methods on LifecycleExpiration.Builderexpiration(LifecycleExpiration)LifecycleRule.Builder id(String id)
Unique identifier for the rule. The value cannot be longer than 255 characters.
id - Unique identifier for the rule. The value cannot be longer than 255 characters.LifecycleRule.Builder filter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
filter - The container for the filter of lifecycle rule.default LifecycleRule.Builder filter(Consumer<LifecycleRuleFilter.Builder> filter)
The container for the filter of lifecycle rule.
This is a convenience method that creates an instance of theLifecycleRuleFilter.Builder avoiding the
need to create one manually via LifecycleRuleFilter.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to filter(LifecycleRuleFilter).
filter - a consumer that will call methods on LifecycleRuleFilter.Builderfilter(LifecycleRuleFilter)LifecycleRule.Builder status(String status)
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
status - If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being
applied.ExpirationStatus,
ExpirationStatusLifecycleRule.Builder status(ExpirationStatus status)
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
status - If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being
applied.ExpirationStatus,
ExpirationStatusLifecycleRule.Builder transitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
transitions - Specifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets.
LifecycleRule.Builder transitions(Transition... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
transitions - Specifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets.
LifecycleRule.Builder transitions(Consumer<Transition.Builder>... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
Transition.Builder avoiding the need to create one
manually via Transition.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #transitions(List.
transitions - a consumer that will call methods on
Transition.Builder#transitions(java.util.Collection) LifecycleRule.Builder noncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
noncurrentVersionTransitions - Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition
to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you
can set this action to request that Amazon S3 transition noncurrent object versions to a specific
storage class at a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets.
LifecycleRule.Builder noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
noncurrentVersionTransitions - Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition
to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you
can set this action to request that Amazon S3 transition noncurrent object versions to a specific
storage class at a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets.
LifecycleRule.Builder noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
NoncurrentVersionTransition.Builder avoiding the need
to create one manually via
NoncurrentVersionTransition.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #noncurrentVersionTransitions(List.
noncurrentVersionTransitions - a consumer that will call methods on
NoncurrentVersionTransition.Builder#noncurrentVersionTransitions(java.util.Collection) LifecycleRule.Builder noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
noncurrentVersionExpiration - The noncurrent version expiration of the lifecycle rule.default LifecycleRule.Builder noncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
This is a convenience method that creates an instance of theNoncurrentVersionExpiration.Builder
avoiding the need to create one manually via NoncurrentVersionExpiration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to noncurrentVersionExpiration(NoncurrentVersionExpiration).
noncurrentVersionExpiration - a consumer that will call methods on NoncurrentVersionExpiration.BuildernoncurrentVersionExpiration(NoncurrentVersionExpiration)LifecycleRule.Builder abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
abortIncompleteMultipartUpload - Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before
permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3
User Guide.default LifecycleRule.Builder abortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
This is a convenience method that creates an instance of theAbortIncompleteMultipartUpload.Builder
avoiding the need to create one manually via AbortIncompleteMultipartUpload.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to
abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload).
abortIncompleteMultipartUpload - a consumer that will call methods on AbortIncompleteMultipartUpload.BuilderabortIncompleteMultipartUpload(AbortIncompleteMultipartUpload)Copyright © 2023. All rights reserved.