@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketBucketLifecycleConfigurationRulesDetails extends Object implements Serializable, Cloneable, StructuredPojo
Configuration for a lifecycle rule.
Constructor and Description |
---|
AwsS3BucketBucketLifecycleConfigurationRulesDetails() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
clone() |
boolean |
equals(Object obj) |
AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails |
getAbortIncompleteMultipartUpload()
How Amazon S3 responds when a multipart upload is incomplete.
|
String |
getExpirationDate()
The date when objects are moved or deleted.
|
Integer |
getExpirationInDays()
The length in days of the lifetime for objects that are subject to the rule.
|
Boolean |
getExpiredObjectDeleteMarker()
Whether Amazon S3 removes a delete marker that has no noncurrent versions.
|
AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails |
getFilter()
Identifies the objects that a rule applies to.
|
String |
getID()
The unique identifier of the rule.
|
Integer |
getNoncurrentVersionExpirationInDays()
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
|
List<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> |
getNoncurrentVersionTransitions()
Transition rules that describe when noncurrent objects transition to a specified storage class.
|
String |
getPrefix()
A prefix that identifies one or more objects that the rule applies to.
|
String |
getStatus()
The current status of the rule.
|
List<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> |
getTransitions()
Transition rules that indicate when objects transition to a specified storage class.
|
int |
hashCode() |
Boolean |
isExpiredObjectDeleteMarker()
Whether Amazon S3 removes a delete marker that has no noncurrent versions.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAbortIncompleteMultipartUpload(AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails abortIncompleteMultipartUpload)
How Amazon S3 responds when a multipart upload is incomplete.
|
void |
setExpirationDate(String expirationDate)
The date when objects are moved or deleted.
|
void |
setExpirationInDays(Integer expirationInDays)
The length in days of the lifetime for objects that are subject to the rule.
|
void |
setExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Whether Amazon S3 removes a delete marker that has no noncurrent versions.
|
void |
setFilter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter)
Identifies the objects that a rule applies to.
|
void |
setID(String iD)
The unique identifier of the rule.
|
void |
setNoncurrentVersionExpirationInDays(Integer noncurrentVersionExpirationInDays)
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
|
void |
setNoncurrentVersionTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
|
void |
setPrefix(String prefix)
A prefix that identifies one or more objects that the rule applies to.
|
void |
setStatus(String status)
The current status of the rule.
|
void |
setTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions)
Transition rules that indicate when objects transition to a specified storage class.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withAbortIncompleteMultipartUpload(AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails abortIncompleteMultipartUpload)
How Amazon S3 responds when a multipart upload is incomplete.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withExpirationDate(String expirationDate)
The date when objects are moved or deleted.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withExpirationInDays(Integer expirationInDays)
The length in days of the lifetime for objects that are subject to the rule.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Whether Amazon S3 removes a delete marker that has no noncurrent versions.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withFilter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter)
Identifies the objects that a rule applies to.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withID(String iD)
The unique identifier of the rule.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withNoncurrentVersionExpirationInDays(Integer noncurrentVersionExpirationInDays)
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withNoncurrentVersionTransitions(AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails... noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withNoncurrentVersionTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withPrefix(String prefix)
A prefix that identifies one or more objects that the rule applies to.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withStatus(String status)
The current status of the rule.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withTransitions(AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails... transitions)
Transition rules that indicate when objects transition to a specified storage class.
|
AwsS3BucketBucketLifecycleConfigurationRulesDetails |
withTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions)
Transition rules that indicate when objects transition to a specified storage class.
|
public AwsS3BucketBucketLifecycleConfigurationRulesDetails()
public void setAbortIncompleteMultipartUpload(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.
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 AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails getAbortIncompleteMultipartUpload()
How Amazon S3 responds when a multipart upload is incomplete. Specifically, provides a number of days before Amazon S3 cancels the entire upload.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withAbortIncompleteMultipartUpload(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.
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 void setExpirationDate(String expirationDate)
The date when objects are moved or deleted.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
expirationDate
- The date when objects are moved or deleted.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getExpirationDate()
The date when objects are moved or deleted.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withExpirationDate(String expirationDate)
The date when objects are moved or deleted.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
expirationDate
- The date when objects are moved or deleted.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public void setExpirationInDays(Integer expirationInDays)
The length in days of the lifetime for objects that are subject to the rule.
expirationInDays
- The length in days of the lifetime for objects that are subject to the rule.public Integer getExpirationInDays()
The length in days of the lifetime for objects that are subject to the rule.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withExpirationInDays(Integer expirationInDays)
The length in days of the lifetime for objects that are subject to the rule.
expirationInDays
- The length in days of the lifetime for objects that are subject to the rule.public void setExpiredObjectDeleteMarker(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
.
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
.
public Boolean getExpiredObjectDeleteMarker()
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 AwsS3BucketBucketLifecycleConfigurationRulesDetails withExpiredObjectDeleteMarker(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
.
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
.
public Boolean isExpiredObjectDeleteMarker()
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 void setFilter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter)
Identifies the objects that a rule applies to.
filter
- Identifies the objects that a rule applies to.public AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails getFilter()
Identifies the objects that a rule applies to.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withFilter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter)
Identifies the objects that a rule applies to.
filter
- Identifies the objects that a rule applies to.public void setID(String iD)
The unique identifier of the rule.
iD
- The unique identifier of the rule.public String getID()
The unique identifier of the rule.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withID(String iD)
The unique identifier of the rule.
iD
- The unique identifier of the rule.public void setNoncurrentVersionExpirationInDays(Integer noncurrentVersionExpirationInDays)
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
noncurrentVersionExpirationInDays
- The number of days that an object is noncurrent before Amazon S3 can perform the associated action.public Integer getNoncurrentVersionExpirationInDays()
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withNoncurrentVersionExpirationInDays(Integer noncurrentVersionExpirationInDays)
The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
noncurrentVersionExpirationInDays
- The number of days that an object is noncurrent before Amazon S3 can perform the associated action.public List<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> getNoncurrentVersionTransitions()
Transition rules that describe when noncurrent objects transition to a specified storage class.
public void setNoncurrentVersionTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
noncurrentVersionTransitions
- Transition rules that describe when noncurrent objects transition to a specified storage class.public AwsS3BucketBucketLifecycleConfigurationRulesDetails withNoncurrentVersionTransitions(AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails... noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
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
- Transition rules that describe when noncurrent objects transition to a specified storage class.public AwsS3BucketBucketLifecycleConfigurationRulesDetails withNoncurrentVersionTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions)
Transition rules that describe when noncurrent objects transition to a specified storage class.
noncurrentVersionTransitions
- Transition rules that describe when noncurrent objects transition to a specified storage class.public void setPrefix(String prefix)
A prefix that identifies one or more objects that the rule applies to.
prefix
- A prefix that identifies one or more objects that the rule applies to.public String getPrefix()
A prefix that identifies one or more objects that the rule applies to.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withPrefix(String prefix)
A prefix that identifies one or more objects that the rule applies to.
prefix
- A prefix that identifies one or more objects that the rule applies to.public void setStatus(String status)
The current status of the rule. Indicates whether the rule is currently being applied.
status
- The current status of the rule. Indicates whether the rule is currently being applied.public String getStatus()
The current status of the rule. Indicates whether the rule is currently being applied.
public AwsS3BucketBucketLifecycleConfigurationRulesDetails withStatus(String status)
The current status of the rule. Indicates whether the rule is currently being applied.
status
- The current status of the rule. Indicates whether the rule is currently being applied.public List<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> getTransitions()
Transition rules that indicate when objects transition to a specified storage class.
public void setTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions)
Transition rules that indicate when objects transition to a specified storage class.
transitions
- Transition rules that indicate when objects transition to a specified storage class.public AwsS3BucketBucketLifecycleConfigurationRulesDetails withTransitions(AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails... transitions)
Transition rules that indicate when objects transition to a specified storage class.
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
- Transition rules that indicate when objects transition to a specified storage class.public AwsS3BucketBucketLifecycleConfigurationRulesDetails withTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions)
Transition rules that indicate when objects transition to a specified storage class.
transitions
- Transition rules that indicate when objects transition to a specified storage class.public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketBucketLifecycleConfigurationRulesDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.