Interface LifecycleRuleFilter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>,SdkBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>,SdkPojo
- Enclosing class:
- LifecycleRuleFilter
public static interface LifecycleRuleFilter.Builder extends SdkPojo, CopyableBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LifecycleRuleFilter.Builderand(Consumer<LifecycleRuleAndOperator.Builder> and)The container for theANDcondition for the lifecycle rule.LifecycleRuleFilter.Builderand(LifecycleRuleAndOperator and)The container for theANDcondition for the lifecycle rule.LifecycleRuleFilter.BuilderobjectSizeGreaterThan(Long objectSizeGreaterThan)Minimum object size to which the rule applies.LifecycleRuleFilter.BuilderobjectSizeLessThan(Long objectSizeLessThan)Maximum object size to which the rule applies.LifecycleRuleFilter.Builderprefix(String prefix)Prefix identifying one or more objects to which the rule applies.default LifecycleRuleFilter.Buildertag(Consumer<S3Tag.Builder> tag)Sets the value of the Tag property for this object.LifecycleRuleFilter.Buildertag(S3Tag tag)Sets the value of the Tag property for this object.-
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
LifecycleRuleFilter.Builder prefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
- Parameters:
prefix- Prefix identifying one or more objects to which the rule applies.When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
LifecycleRuleFilter.Builder tag(S3Tag tag)
Sets the value of the Tag property for this object.- Parameters:
tag- The new value for the Tag property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
default LifecycleRuleFilter.Builder tag(Consumer<S3Tag.Builder> tag)
Sets the value of the Tag property for this object. 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 totag(S3Tag).- Parameters:
tag- 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:
tag(S3Tag)
-
and
LifecycleRuleFilter.Builder and(LifecycleRuleAndOperator and)
The container for the
ANDcondition for the lifecycle rule.- Parameters:
and- The container for theANDcondition for the lifecycle rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
and
default LifecycleRuleFilter.Builder and(Consumer<LifecycleRuleAndOperator.Builder> and)
The container for the
This is a convenience method that creates an instance of theANDcondition for the lifecycle rule.LifecycleRuleAndOperator.Builderavoiding the need to create one manually viaLifecycleRuleAndOperator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toand(LifecycleRuleAndOperator).- Parameters:
and- a consumer that will call methods onLifecycleRuleAndOperator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
and(LifecycleRuleAndOperator)
-
objectSizeGreaterThan
LifecycleRuleFilter.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
LifecycleRuleFilter.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.
-
-