@Generated(value="software.amazon.awssdk:codegen") public final class AwsS3BucketBucketLifecycleConfigurationRulesDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,AwsS3BucketBucketLifecycleConfigurationRulesDetails>
Configuration for a lifecycle rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails |
abortIncompleteMultipartUpload()
How Amazon S3 responds when a multipart upload is incomplete.
|
static AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
expirationDate()
The date when objects are moved or deleted.
|
Integer |
expirationInDays()
The length in days of the lifetime for objects that are subject to the rule.
|
Boolean |
expiredObjectDeleteMarker()
Whether Amazon S3 removes a delete marker that has no noncurrent versions.
|
AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails |
filter()
Identifies the objects that a rule applies to.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasNoncurrentVersionTransitions()
For responses, this returns true if the service returned a value for the NoncurrentVersionTransitions property.
|
boolean |
hasTransitions()
For responses, this returns true if the service returned a value for the Transitions property.
|
String |
id()
The unique identifier of the rule.
|
Integer |
noncurrentVersionExpirationInDays()
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
|
List<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> |
noncurrentVersionTransitions()
Transition rules that describe when noncurrent objects transition to a specified storage class.
|
String |
prefix()
A prefix that identifies one or more objects that the rule applies to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder> |
serializableBuilderClass() |
String |
status()
The current status of the rule.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> |
transitions()
Transition rules that indicate when objects transition to a specified storage class.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails abortIncompleteMultipartUpload()
How Amazon S3 responds when a multipart upload is incomplete. Specifically, provides a number of days before Amazon S3 cancels the entire upload.
public final String expirationDate()
The date when objects are moved or deleted.
Uses the date-time format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T. For example, 2020-03-22T13:22:13.933Z.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T. For
example, 2020-03-22T13:22:13.933Z.
public final Integer expirationInDays()
The length in days of the lifetime for objects that are subject to the rule.
public final Boolean expiredObjectDeleteMarker()
Whether Amazon S3 removes a delete marker that has no noncurrent versions. If set to true, the
delete marker is expired. If set to false, the policy takes no action.
If you provide ExpiredObjectDeleteMarker, you cannot provide ExpirationInDays or
ExpirationDate.
true,
the delete marker is expired. If set to false, the policy takes no action.
If you provide ExpiredObjectDeleteMarker, you cannot provide ExpirationInDays
or ExpirationDate.
public final AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter()
Identifies the objects that a rule applies to.
public final String id()
The unique identifier of the rule.
public final Integer noncurrentVersionExpirationInDays()
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
public final boolean hasNoncurrentVersionTransitions()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions()
Transition rules that describe when noncurrent objects transition to a specified storage class.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNoncurrentVersionTransitions() method.
public final String prefix()
A prefix that identifies one or more objects that the rule applies to.
public final String status()
The current status of the rule. Indicates whether the rule is currently being applied.
public final boolean hasTransitions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions()
Transition rules that indicate when objects transition to a specified storage class.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTransitions() method.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder toBuilder()
public static AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder builder()
public static Class<? extends AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.