@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecycleRuleAndOperator extends Object implements Serializable, Cloneable
The container for the Outposts bucket lifecycle rule and operator.
Constructor and Description |
---|
LifecycleRuleAndOperator() |
Modifier and Type | Method and Description |
---|---|
LifecycleRuleAndOperator |
clone() |
boolean |
equals(Object obj) |
Long |
getObjectSizeGreaterThan()
The non-inclusive minimum object size for the lifecycle rule.
|
Long |
getObjectSizeLessThan()
The non-inclusive maximum object size for the lifecycle rule.
|
String |
getPrefix()
Prefix identifying one or more objects to which the rule applies.
|
List<S3Tag> |
getTags()
All of these tags must exist in the object's tag set in order for the rule to apply.
|
int |
hashCode() |
void |
setObjectSizeGreaterThan(Long objectSizeGreaterThan)
The non-inclusive minimum object size for the lifecycle rule.
|
void |
setObjectSizeLessThan(Long objectSizeLessThan)
The non-inclusive maximum object size for the lifecycle rule.
|
void |
setPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
void |
setTags(Collection<S3Tag> tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
|
String |
toString()
Returns a string representation of this object.
|
LifecycleRuleAndOperator |
withObjectSizeGreaterThan(Long objectSizeGreaterThan)
The non-inclusive minimum object size for the lifecycle rule.
|
LifecycleRuleAndOperator |
withObjectSizeLessThan(Long objectSizeLessThan)
The non-inclusive maximum object size for the lifecycle rule.
|
LifecycleRuleAndOperator |
withPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
LifecycleRuleAndOperator |
withTags(Collection<S3Tag> tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
|
LifecycleRuleAndOperator |
withTags(S3Tag... tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
|
public void setPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
prefix
- Prefix identifying one or more objects to which the rule applies.public String getPrefix()
Prefix identifying one or more objects to which the rule applies.
public LifecycleRuleAndOperator withPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
prefix
- Prefix identifying one or more objects to which the rule applies.public List<S3Tag> getTags()
All of these tags must exist in the object's tag set in order for the rule to apply.
public void setTags(Collection<S3Tag> tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
tags
- All of these tags must exist in the object's tag set in order for the rule to apply.public LifecycleRuleAndOperator withTags(S3Tag... tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- All of these tags must exist in the object's tag set in order for the rule to apply.public LifecycleRuleAndOperator withTags(Collection<S3Tag> tags)
All of these tags must exist in the object's tag set in order for the rule to apply.
tags
- All of these tags must exist in the object's tag set in order for the rule to apply.public void setObjectSizeGreaterThan(Long objectSizeGreaterThan)
The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule applies to objects with a size that is greater than 7.
objectSizeGreaterThan
- The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule
applies to objects with a size that is greater than 7.public Long getObjectSizeGreaterThan()
The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule applies to objects with a size that is greater than 7.
public LifecycleRuleAndOperator withObjectSizeGreaterThan(Long objectSizeGreaterThan)
The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule applies to objects with a size that is greater than 7.
objectSizeGreaterThan
- The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule
applies to objects with a size that is greater than 7.public void setObjectSizeLessThan(Long objectSizeLessThan)
The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule applies to objects with a size that is less than 77.
objectSizeLessThan
- The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule
applies to objects with a size that is less than 77.public Long getObjectSizeLessThan()
The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule applies to objects with a size that is less than 77.
public LifecycleRuleAndOperator withObjectSizeLessThan(Long objectSizeLessThan)
The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule applies to objects with a size that is less than 77.
objectSizeLessThan
- The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule
applies to objects with a size that is less than 77.public String toString()
toString
in class Object
Object.toString()
public LifecycleRuleAndOperator clone()