@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecycleRuleFilter extends Object implements Serializable, Cloneable
The container for the filter of the lifecycle rule.
Constructor and Description |
---|
LifecycleRuleFilter() |
Modifier and Type | Method and Description |
---|---|
LifecycleRuleFilter |
clone() |
boolean |
equals(Object obj) |
LifecycleRuleAndOperator |
getAnd()
The container for the
AND condition for the lifecycle rule. |
Long |
getObjectSizeGreaterThan()
Minimum object size to which the rule applies.
|
Long |
getObjectSizeLessThan()
Maximum object size to which the rule applies.
|
String |
getPrefix()
Prefix identifying one or more objects to which the rule applies.
|
S3Tag |
getTag() |
int |
hashCode() |
void |
setAnd(LifecycleRuleAndOperator and)
The container for the
AND condition for the lifecycle rule. |
void |
setObjectSizeGreaterThan(Long objectSizeGreaterThan)
Minimum object size to which the rule applies.
|
void |
setObjectSizeLessThan(Long objectSizeLessThan)
Maximum object size to which the rule applies.
|
void |
setPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
void |
setTag(S3Tag tag) |
String |
toString()
Returns a string representation of this object.
|
LifecycleRuleFilter |
withAnd(LifecycleRuleAndOperator and)
The container for the
AND condition for the lifecycle rule. |
LifecycleRuleFilter |
withObjectSizeGreaterThan(Long objectSizeGreaterThan)
Minimum object size to which the rule applies.
|
LifecycleRuleFilter |
withObjectSizeLessThan(Long objectSizeLessThan)
Maximum object size to which the rule applies.
|
LifecycleRuleFilter |
withPrefix(String prefix)
Prefix identifying one or more objects to which the rule applies.
|
LifecycleRuleFilter |
withTag(S3Tag tag) |
public void setPrefix(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.
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.
public String getPrefix()
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.
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.
public LifecycleRuleFilter withPrefix(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.
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.
public void setTag(S3Tag tag)
tag
- public S3Tag getTag()
public LifecycleRuleFilter withTag(S3Tag tag)
tag
- public void setAnd(LifecycleRuleAndOperator and)
The container for the AND
condition for the lifecycle rule.
and
- The container for the AND
condition for the lifecycle rule.public LifecycleRuleAndOperator getAnd()
The container for the AND
condition for the lifecycle rule.
AND
condition for the lifecycle rule.public LifecycleRuleFilter withAnd(LifecycleRuleAndOperator and)
The container for the AND
condition for the lifecycle rule.
and
- The container for the AND
condition for the lifecycle rule.public void setObjectSizeGreaterThan(Long objectSizeGreaterThan)
Minimum object size to which the rule applies.
objectSizeGreaterThan
- Minimum object size to which the rule applies.public Long getObjectSizeGreaterThan()
Minimum object size to which the rule applies.
public LifecycleRuleFilter withObjectSizeGreaterThan(Long objectSizeGreaterThan)
Minimum object size to which the rule applies.
objectSizeGreaterThan
- Minimum object size to which the rule applies.public void setObjectSizeLessThan(Long objectSizeLessThan)
Maximum object size to which the rule applies.
objectSizeLessThan
- Maximum object size to which the rule applies.public Long getObjectSizeLessThan()
Maximum object size to which the rule applies.
public LifecycleRuleFilter withObjectSizeLessThan(Long objectSizeLessThan)
Maximum object size to which the rule applies.
objectSizeLessThan
- Maximum object size to which the rule applies.public String toString()
toString
in class Object
Object.toString()
public LifecycleRuleFilter clone()