@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.
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.
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.
public String getPrefix()
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.
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.
public LifecycleRuleFilter withPrefix(String 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.
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.
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 ObjectObject.toString()public LifecycleRuleFilter clone()
Copyright © 2022. All rights reserved.