Interface AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,AwsS3BucketBucketLifecycleConfigurationRulesDetails>,SdkBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,AwsS3BucketBucketLifecycleConfigurationRulesDetails>,SdkPojo
- Enclosing class:
- AwsS3BucketBucketLifecycleConfigurationRulesDetails
public static interface AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder extends SdkPojo, CopyableBuilder<AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder,AwsS3BucketBucketLifecycleConfigurationRulesDetails>
-
-
Method Summary
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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.Builderavoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails.builder().When the
Consumercompletes,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:
abortIncompleteMultipartUpload(AwsS3BucketBucketLifecycleConfigurationRulesAbortIncompleteMultipartUploadDetails)
-
expirationDate
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder expirationDate(String expirationDate)
The date when objects are moved or deleted.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
expirationDate- The date when objects are moved or deleted.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- 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 provideExpirationInDaysorExpirationDate.- 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 provideExpirationInDaysorExpirationDate.- 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.Builderavoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesFilterDetails.builder().When the
Consumercompletes,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:
filter(AwsS3BucketBucketLifecycleConfigurationRulesFilterDetails)
-
id
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder id(String 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.Builderavoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#noncurrentVersionTransitions(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:
#noncurrentVersionTransitions(java.util.Collection< AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails>)
-
prefix
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder prefix(String 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
AwsS3BucketBucketLifecycleConfigurationRulesDetails.Builder status(String 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.Builderavoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#transitions(List.) - 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:
#transitions(java.util.Collection)
-
-