@Generated(value="software.amazon.awssdk:codegen") public final class LifecycleRule extends Object implements SdkPojo, Serializable, 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()
|
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()
|
String |
prefix()
Prefix identifying one or more objects to which the rule applies.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LifecycleRule.Builder> |
serializableBuilderClass() |
ExpirationStatus |
status()
If 'Enabled', the rule is currently being applied.
|
String |
statusAsString()
If 'Enabled', the rule is currently being applied.
|
LifecycleRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Transition> |
transitions()
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public LifecycleExpiration expiration()
public String id()
Unique identifier for the rule. The value cannot be longer than 255 characters.
public String prefix()
Prefix identifying one or more objects to which the rule applies. This is No longer used; use Filter instead.
public LifecycleRuleFilter filter()
public ExpirationStatus status()
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
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
statusAsString()
.
ExpirationStatus
public String statusAsString()
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
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
statusAsString()
.
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()
toBuilder
in interface ToCopyableBuilder<LifecycleRule.Builder,LifecycleRule>
public static LifecycleRule.Builder builder()
public static Class<? extends LifecycleRule.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.