Interface LifecycleRuleAndOperator.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleRuleAndOperator.Builder,LifecycleRuleAndOperator>,SdkBuilder<LifecycleRuleAndOperator.Builder,LifecycleRuleAndOperator>,SdkPojo
- Enclosing class:
- LifecycleRuleAndOperator
public static interface LifecycleRuleAndOperator.Builder extends SdkPojo, CopyableBuilder<LifecycleRuleAndOperator.Builder,LifecycleRuleAndOperator>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifecycleRuleAndOperator.BuilderobjectSizeGreaterThan(Long objectSizeGreaterThan)Minimum object size to which the rule applies.LifecycleRuleAndOperator.BuilderobjectSizeLessThan(Long objectSizeLessThan)Maximum object size to which the rule applies.LifecycleRuleAndOperator.Builderprefix(String prefix)Prefix identifying one or more objects to which the rule applies.LifecycleRuleAndOperator.Buildertags(Collection<S3Tag> tags)All of these tags must exist in the object's tag set in order for the rule to apply.LifecycleRuleAndOperator.Buildertags(Consumer<S3Tag.Builder>... tags)All of these tags must exist in the object's tag set in order for the rule to apply.LifecycleRuleAndOperator.Buildertags(S3Tag... tags)All of these tags must exist in the object's tag set in order for the rule to apply.-
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 Detail
-
prefix
LifecycleRuleAndOperator.Builder prefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
- Parameters:
prefix- Prefix identifying one or more objects to which the rule applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
LifecycleRuleAndOperator.Builder tags(Collection<S3Tag> tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
- Parameters:
tags- All of these tags must exist in the object's tag set in order for the rule to apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
LifecycleRuleAndOperator.Builder tags(S3Tag... tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
- Parameters:
tags- All of these tags must exist in the object's tag set in order for the rule to apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
LifecycleRuleAndOperator.Builder tags(Consumer<S3Tag.Builder>... tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
This is a convenience method that creates an instance of theS3Tag.Builderavoiding the need to create one manually viaS3Tag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onS3Tag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
objectSizeGreaterThan
LifecycleRuleAndOperator.Builder objectSizeGreaterThan(Long objectSizeGreaterThan)
Minimum object size to which the rule applies.
- Parameters:
objectSizeGreaterThan- Minimum object size to which the rule applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectSizeLessThan
LifecycleRuleAndOperator.Builder objectSizeLessThan(Long objectSizeLessThan)
Maximum object size to which the rule applies.
- Parameters:
objectSizeLessThan- Maximum object size to which the rule applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-