Interface LifecycleRuleFilter.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleRuleFilter.Builder,,LifecycleRuleFilter> SdkBuilder<LifecycleRuleFilter.Builder,,LifecycleRuleFilter> SdkPojo
- Enclosing class:
- LifecycleRuleFilter
-
Method Summary
Modifier and TypeMethodDescriptiondefault LifecycleRuleFilter.BuilderSets the value of the And property for this object.Sets the value of the And property for this object.objectSizeGreaterThan(Long objectSizeGreaterThan) Minimum object size to which the rule applies.objectSizeLessThan(Long objectSizeLessThan) Maximum object size to which the rule applies.Prefix identifying one or more objects to which the rule applies.default LifecycleRuleFilter.Buildertag(Consumer<Tag.Builder> tag) This tag must exist in the object's tag set in order for the rule to apply.This tag 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
prefix
Prefix identifying one or more objects to which the rule applies.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
- Parameters:
prefix- Prefix identifying one or more objects to which the rule applies.Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
This tag must exist in the object's tag set in order for the rule to apply.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
- Parameters:
tag- This tag must exist in the object's tag set in order for the rule to apply.This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
This tag 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 theThis parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totag(Tag).- Parameters:
tag- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-
and
Sets the value of the And property for this object.- Parameters:
and- The new value for the And property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
and
Sets the value of the And property for this object. This is a convenience method that creates an instance of theLifecycleRuleAndOperator.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:
-