CopyableBuilder<LifecycleRule.Builder,LifecycleRule>
, SdkBuilder<LifecycleRule.Builder,LifecycleRule>
public static interface LifecycleRule.Builder extends CopyableBuilder<LifecycleRule.Builder,LifecycleRule>
copy
apply, build
LifecycleRule.Builder expiration(LifecycleExpiration expiration)
expiration
- 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
- LifecycleRule.Builder status(String status)
status
- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being
applied.ExpirationStatus
LifecycleRule.Builder status(ExpirationStatus status)
status
- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being
applied.ExpirationStatus
LifecycleRule.Builder transitions(Collection<Transition> transitions)
transitions
- LifecycleRule.Builder transitions(Transition... transitions)
NOTE: This method appends the values to the existing list (if any). Use
#setTransitions(java.util.Collection)
or #withTransitions(java.util.Collection)
if you want
to override the existing values.
transitions
- LifecycleRule.Builder noncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
noncurrentVersionTransitions
- LifecycleRule.Builder noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
NOTE: This method appends the values to the existing list (if any). Use
#setNoncurrentVersionTransitions(java.util.Collection)
or
#withNoncurrentVersionTransitions(java.util.Collection)
if you want to override the existing values.
noncurrentVersionTransitions
- LifecycleRule.Builder noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
noncurrentVersionExpiration
- LifecycleRule.Builder abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
abortIncompleteMultipartUpload
- Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.