public static interface LifecycleRule.Builder extends SdkPojo, CopyableBuilder<LifecycleRule.Builder,LifecycleRule>
| Modifier and Type | Method and Description |
|---|---|
LifecycleRule.Builder |
abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Sets the value of the AbortIncompleteMultipartUpload property for this object.
|
default LifecycleRule.Builder |
abortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload)
Sets the value of the AbortIncompleteMultipartUpload property for this object.
|
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)
Sets the value of the Filter property for this object.
|
LifecycleRule.Builder |
filter(LifecycleRuleFilter filter)
Sets the value of the Filter property for this object.
|
LifecycleRule.Builder |
id(String id)
Unique identifier for the rule.
|
default LifecycleRule.Builder |
noncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration)
Sets the value of the NoncurrentVersionExpiration property for this object.
|
LifecycleRule.Builder |
noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
Sets the value of the NoncurrentVersionExpiration property for this object.
|
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 |
prefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
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 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 prefix(String prefix)
Prefix identifying one or more objects to which the rule applies. This is No longer used; use
Filter instead.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
prefix - Prefix identifying one or more objects to which the rule applies. This is No longer used; use
Filter instead. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
LifecycleRule.Builder filter(LifecycleRuleFilter filter)
filter - The new value for the Filter property for this object.default LifecycleRule.Builder filter(Consumer<LifecycleRuleFilter.Builder> filter)
LifecycleRuleFilter.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.
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.
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.
This is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #transitions(List) .transitions - a consumer that will call methods on List.Builder #transitions(List) 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.
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.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.
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.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 a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #noncurrentVersionTransitions(List) .noncurrentVersionTransitions - a consumer that will call methods on List.Builder #noncurrentVersionTransitions(List) LifecycleRule.Builder noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
noncurrentVersionExpiration - The new value for the NoncurrentVersionExpiration property for this object.default LifecycleRule.Builder noncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration)
NoncurrentVersionExpiration.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)
abortIncompleteMultipartUpload - The new value for the AbortIncompleteMultipartUpload property for this object.default LifecycleRule.Builder abortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload)
AbortIncompleteMultipartUpload.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 © 2021. All rights reserved.