public static interface LifecycleRule.Builder extends 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)
Sets the value of the Expiration property for this object.
|
LifecycleRule.Builder |
expiration(LifecycleExpiration expiration)
Sets the value of the Expiration property for this object.
|
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)
Sets the value of the NoncurrentVersionTransitions property for this object.
|
LifecycleRule.Builder |
noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions)
Sets the value of the NoncurrentVersionTransitions property for this object.
|
LifecycleRule.Builder |
noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
Sets the value of the NoncurrentVersionTransitions property for this object.
|
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)
Sets the value of the Transitions property for this object.
|
LifecycleRule.Builder |
transitions(Consumer<Transition.Builder>... transitions)
Sets the value of the Transitions property for this object.
|
LifecycleRule.Builder |
transitions(Transition... transitions)
Sets the value of the Transitions property for this object.
|
copyapply, buildLifecycleRule.Builder expiration(LifecycleExpiration expiration)
expiration - The new value for the Expiration property for this object.default LifecycleRule.Builder expiration(Consumer<LifecycleExpiration.Builder> expiration)
LifecycleExpiration.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)
id - Unique identifier for the rule. The value cannot be longer than 255 characters.LifecycleRule.Builder prefix(String prefix)
prefix - Prefix identifying one or more objects to which the rule applies. This is deprecated; use Filter
instead.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)
status - If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being
applied.ExpirationStatus,
ExpirationStatusLifecycleRule.Builder status(ExpirationStatus status)
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)
transitions - The new value for the Transitions property for this object.LifecycleRule.Builder transitions(Transition... transitions)
transitions - The new value for the Transitions property for this object.LifecycleRule.Builder transitions(Consumer<Transition.Builder>... transitions)
List.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)
noncurrentVersionTransitions - The new value for the NoncurrentVersionTransitions property for this object.LifecycleRule.Builder noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
noncurrentVersionTransitions - The new value for the NoncurrentVersionTransitions property for this object.LifecycleRule.Builder noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions)
List.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 © 2017 Amazon Web Services, Inc. All Rights Reserved.