@Generated(value="software.amazon.awssdk:codegen") public class LifecycleRule extends Object implements ToCopyableBuilder<LifecycleRule.Builder,LifecycleRule>
Modifier and Type | Class and Description |
---|---|
static interface |
LifecycleRule.Builder |
Modifier and Type | Method and Description |
---|---|
AbortIncompleteMultipartUpload |
abortIncompleteMultipartUpload()
Returns the value of the AbortIncompleteMultipartUpload property for this object.
|
static LifecycleRule.Builder |
builder() |
boolean |
equals(Object obj) |
LifecycleExpiration |
expiration()
Returns the value of the Expiration property for this object.
|
LifecycleRuleFilter |
filter()
Returns the value of the Filter property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
Unique identifier for the rule.
|
NoncurrentVersionExpiration |
noncurrentVersionExpiration()
Returns the value of the NoncurrentVersionExpiration property for this object.
|
List<NoncurrentVersionTransition> |
noncurrentVersionTransitions()
Returns the value of the NoncurrentVersionTransitions property for this object.
|
String |
prefix()
Prefix identifying one or more objects to which the rule applies.
|
static Class<? extends LifecycleRule.Builder> |
serializableBuilderClass() |
ExpirationStatus |
status()
If 'Enabled', the rule is currently being applied.
|
String |
statusString()
If 'Enabled', the rule is currently being applied.
|
LifecycleRule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<Transition> |
transitions()
Returns the value of the Transitions property for this object.
|
copy
public LifecycleExpiration expiration()
public String id()
public String prefix()
public LifecycleRuleFilter filter()
public ExpirationStatus status()
If the service returns an enum value that is not available in the current SDK version, status
will
return ExpirationStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusString()
.
ExpirationStatus
public String statusString()
If the service returns an enum value that is not available in the current SDK version, status
will
return ExpirationStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusString()
.
ExpirationStatus
public List<Transition> transitions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<NoncurrentVersionTransition> noncurrentVersionTransitions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public NoncurrentVersionExpiration noncurrentVersionExpiration()
public AbortIncompleteMultipartUpload abortIncompleteMultipartUpload()
public LifecycleRule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<LifecycleRule.Builder,LifecycleRule>
public static LifecycleRule.Builder builder()
public static Class<? extends LifecycleRule.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.