Interface AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,
,AwsS3BucketBucketLifecycleConfigurationRulesDetails> SdkBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,
,AwsS3BucketBucketLifecycleConfigurationRulesDetails> SdkPojo
- Enclosing class:
AwsS3BucketBucketLifecycleConfigurationRulesDetails
-
Method Summary
Modifier and TypeMethodDescriptionabortIncompleteMultipartUpload
(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.Builder> abortIncompleteMultipartUpload) How Amazon S3 responds when a multipart upload is incomplete.abortIncompleteMultipartUpload
(AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails abortIncompleteMultipartUpload) How Amazon S3 responds when a multipart upload is incomplete.expirationDate
(String expirationDate) The date when objects are moved or deleted.expirationInDays
(Integer expirationInDays) The length in days of the lifetime for objects that are subject to the rule.expiredObjectDeleteMarker
(Boolean expiredObjectDeleteMarker) Whether Amazon S3 removes a delete marker that has no noncurrent versions.Identifies the objects that a rule applies to.Identifies the objects that a rule applies to.The unique identifier of the rule.noncurrentVersionExpirationInDays
(Integer noncurrentVersionExpirationInDays) The number of days that an object is noncurrent before Amazon S3 can perform the associated action.noncurrentVersionTransitions
(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.noncurrentVersionTransitions
(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.Builder>... noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.noncurrentVersionTransitions
(AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails... noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.A prefix that identifies one or more objects that the rule applies to.The current status of the rule.Transition rules that indicate when objects transition to a specified storage class.transitions
(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.Builder>... transitions) Transition rules that indicate when objects transition to a specified storage class.Transition rules that indicate when objects transition to a specified storage class.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
abortIncompleteMultipartUpload
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder abortIncompleteMultipartUpload(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.
- Parameters:
abortIncompleteMultipartUpload
- How Amazon S3 responds when a multipart upload is incomplete. Specifically, provides a number of days before Amazon S3 cancels the entire upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
abortIncompleteMultipartUpload
default AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder abortIncompleteMultipartUpload(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.Builder> abortIncompleteMultipartUpload) How Amazon S3 responds when a multipart upload is incomplete. Specifically, provides a number of days before Amazon S3 cancels the entire upload.
This is a convenience method that creates an instance of theAwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.Builder
avoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toabortIncompleteMultipartUpload(AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails)
.- Parameters:
abortIncompleteMultipartUpload
- a consumer that will call methods onAwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
)
- Parameters:
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
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
expirationInDays
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder expirationInDays(Integer expirationInDays) The length in days of the lifetime for objects that are subject to the rule.
- Parameters:
expirationInDays
- The length in days of the lifetime for objects that are subject to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiredObjectDeleteMarker
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder expiredObjectDeleteMarker(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 tofalse
, the policy takes no action.If you provide
ExpiredObjectDeleteMarker
, you cannot provideExpirationInDays
orExpirationDate
.- Parameters:
expiredObjectDeleteMarker
- Whether Amazon S3 removes a delete marker that has no noncurrent versions. If set totrue
, the delete marker is expired. If set tofalse
, the policy takes no action.If you provide
ExpiredObjectDeleteMarker
, you cannot provideExpirationInDays
orExpirationDate
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder filter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails filter) Identifies the objects that a rule applies to.
- Parameters:
filter
- Identifies the objects that a rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
default AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder filter(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails.Builder> filter) Identifies the objects that a rule applies to.
This is a convenience method that creates an instance of theAwsS3BucketBucketLifecycleConfigurationRulesFilterDetails.Builder
avoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesFilterDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails)
.- Parameters:
filter
- a consumer that will call methods onAwsS3BucketBucketLifecycleConfigurationRulesFilterDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The unique identifier of the rule.
- Parameters:
id
- The unique identifier of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noncurrentVersionExpirationInDays
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder noncurrentVersionExpirationInDays(Integer noncurrentVersionExpirationInDays) The number of days that an object is noncurrent before Amazon S3 can perform the associated action.
- Parameters:
noncurrentVersionExpirationInDays
- The number of days that an object is noncurrent before Amazon S3 can perform the associated action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noncurrentVersionTransitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder noncurrentVersionTransitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails> noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.
- Parameters:
noncurrentVersionTransitions
- Transition rules that describe when noncurrent objects transition to a specified storage class.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noncurrentVersionTransitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder noncurrentVersionTransitions(AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails... noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.
- Parameters:
noncurrentVersionTransitions
- Transition rules that describe when noncurrent objects transition to a specified storage class.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noncurrentVersionTransitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder noncurrentVersionTransitions(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.Builder>... noncurrentVersionTransitions) Transition rules that describe when noncurrent objects transition to a specified storage class.
This is a convenience method that creates an instance of theAwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.Builder
avoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tononcurrentVersionTransitions(List<AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails>)
.- Parameters:
noncurrentVersionTransitions
- a consumer that will call methods onAwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
prefix
A prefix that identifies one or more objects that the rule applies to.
- Parameters:
prefix
- A prefix that identifies one or more objects that the rule applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the rule. Indicates whether the rule is currently being applied.
- Parameters:
status
- The current status of the rule. Indicates whether the rule is currently being applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder transitions(Collection<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails> transitions) Transition rules that indicate when objects transition to a specified storage class.
- Parameters:
transitions
- Transition rules that indicate when objects transition to a specified storage class.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder transitions(AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails... transitions) Transition rules that indicate when objects transition to a specified storage class.
- Parameters:
transitions
- Transition rules that indicate when objects transition to a specified storage class.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitions
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder transitions(Consumer<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.Builder>... transitions) Transition rules that indicate when objects transition to a specified storage class.
This is a convenience method that creates an instance of theAwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.Builder
avoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totransitions(List<AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails>)
.- Parameters:
transitions
- a consumer that will call methods onAwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-