@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) |
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 |
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 |
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 String toString()
toString
in class Object
Object.toString()
public LifecycleRuleAndOperator clone()