Interface LifecycleRule.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<LifecycleRule.Builder,,- LifecycleRule> - SdkBuilder<LifecycleRule.Builder,,- LifecycleRule> - SdkPojo
- Enclosing class:
- LifecycleRule
- 
Method SummaryModifier and TypeMethodDescriptiondefault LifecycleRule.BuilderabortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload) Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload.abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload) Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload.default LifecycleRule.Builderexpiration(Consumer<LifecycleExpiration.Builder> expiration) Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.expiration(LifecycleExpiration expiration) Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.default LifecycleRule.Builderfilter(Consumer<LifecycleRuleFilter.Builder> filter) The container for the filter of lifecycle rule.filter(LifecycleRuleFilter filter) The container for the filter of lifecycle rule.Unique identifier for the rule.default LifecycleRule.BuildernoncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration) The noncurrent version expiration of the lifecycle rule.noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration) The noncurrent version expiration of the lifecycle rule.noncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class.noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class.noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class.If 'Enabled', the rule is currently being applied.status(ExpirationStatus status) If 'Enabled', the rule is currently being applied.transitions(Collection<Transition> transitions) Specifies when an Amazon S3 object transitions to a specified storage class.transitions(Consumer<Transition.Builder>... transitions) Specifies when an Amazon S3 object transitions to a specified storage class.transitions(Transition... transitions) Specifies when an Amazon S3 object transitions to a specified storage class.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
expirationSpecifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. - Parameters:
- expiration- Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
expirationSpecifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. This is a convenience method that creates an instance of theLifecycleExpiration.Builderavoiding the need to create one manually viaLifecycleExpiration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpiration(LifecycleExpiration).- Parameters:
- expiration- a consumer that will call methods on- LifecycleExpiration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
idUnique identifier for the rule. The value cannot be longer than 255 characters. - Parameters:
- id- Unique identifier for the rule. The value cannot be longer than 255 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
filterThe container for the filter of lifecycle rule. - Parameters:
- filter- The container for the filter of lifecycle rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
filterThe container for the filter of lifecycle rule. This is a convenience method that creates an instance of theLifecycleRuleFilter.Builderavoiding the need to create one manually viaLifecycleRuleFilter.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(LifecycleRuleFilter).- Parameters:
- filter- a consumer that will call methods on- LifecycleRuleFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusIf 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied. - Parameters:
- status- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusIf 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied. - Parameters:
- status- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
transitionsSpecifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets. - Parameters:
- transitions- Specifies when an Amazon S3 object transitions to a specified storage class.- This is not supported by Amazon S3 on Outposts buckets. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
transitionsSpecifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets. - Parameters:
- transitions- Specifies when an Amazon S3 object transitions to a specified storage class.- This is not supported by Amazon S3 on Outposts buckets. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
transitionsSpecifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets. Transition.Builderavoiding the need to create one manually viaTransition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransitions(List<Transition>).- Parameters:
- transitions- a consumer that will call methods on- Transition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
noncurrentVersionTransitionsLifecycleRule.Builder noncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets. - Parameters:
- noncurrentVersionTransitions- Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.- This is not supported by Amazon S3 on Outposts buckets. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
noncurrentVersionTransitionsLifecycleRule.Builder noncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets. - Parameters:
- noncurrentVersionTransitions- Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.- This is not supported by Amazon S3 on Outposts buckets. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
noncurrentVersionTransitionsLifecycleRule.Builder noncurrentVersionTransitions(Consumer<NoncurrentVersionTransition.Builder>... noncurrentVersionTransitions) Specifies the transition rule for the lifecycle rule that describes when non-current objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets. NoncurrentVersionTransition.Builderavoiding the need to create one manually viaNoncurrentVersionTransition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tononcurrentVersionTransitions(List<NoncurrentVersionTransition>).- Parameters:
- noncurrentVersionTransitions- a consumer that will call methods on- NoncurrentVersionTransition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
noncurrentVersionExpirationLifecycleRule.Builder noncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration) The noncurrent version expiration of the lifecycle rule. - Parameters:
- noncurrentVersionExpiration- The noncurrent version expiration of the lifecycle rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
noncurrentVersionExpirationdefault LifecycleRule.Builder noncurrentVersionExpiration(Consumer<NoncurrentVersionExpiration.Builder> noncurrentVersionExpiration) The noncurrent version expiration of the lifecycle rule. This is a convenience method that creates an instance of theNoncurrentVersionExpiration.Builderavoiding the need to create one manually viaNoncurrentVersionExpiration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tononcurrentVersionExpiration(NoncurrentVersionExpiration).- Parameters:
- noncurrentVersionExpiration- a consumer that will call methods on- NoncurrentVersionExpiration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
abortIncompleteMultipartUploadLifecycleRule.Builder abortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload) Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide. - Parameters:
- abortIncompleteMultipartUpload- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
abortIncompleteMultipartUploaddefault LifecycleRule.Builder abortIncompleteMultipartUpload(Consumer<AbortIncompleteMultipartUpload.Builder> abortIncompleteMultipartUpload) Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide. This is a convenience method that creates an instance of theAbortIncompleteMultipartUpload.Builderavoiding the need to create one manually viaAbortIncompleteMultipartUpload.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toabortIncompleteMultipartUpload(AbortIncompleteMultipartUpload).- Parameters:
- abortIncompleteMultipartUpload- a consumer that will call methods on- AbortIncompleteMultipartUpload.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-