@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationRuleAndOperator extends Object implements Serializable, Cloneable
A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter.
For example:
If you specify both a Prefix and a Tag filter, wrap these filters in an And
element.
If you specify a filter based on multiple tags, wrap the Tag elements in an And element.
| Constructor and Description |
|---|
ReplicationRuleAndOperator() |
| Modifier and Type | Method and Description |
|---|---|
ReplicationRuleAndOperator |
clone() |
boolean |
equals(Object obj) |
String |
getPrefix()
An object key name prefix that identifies the subset of objects that the rule applies to.
|
List<S3Tag> |
getTags()
An array of tags that contain key and value pairs.
|
int |
hashCode() |
void |
setPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
|
void |
setTags(Collection<S3Tag> tags)
An array of tags that contain key and value pairs.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationRuleAndOperator |
withPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
|
ReplicationRuleAndOperator |
withTags(Collection<S3Tag> tags)
An array of tags that contain key and value pairs.
|
ReplicationRuleAndOperator |
withTags(S3Tag... tags)
An array of tags that contain key and value pairs.
|
public void setPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
prefix - An object key name prefix that identifies the subset of objects that the rule applies to.public String getPrefix()
An object key name prefix that identifies the subset of objects that the rule applies to.
public ReplicationRuleAndOperator withPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
prefix - An object key name prefix that identifies the subset of objects that the rule applies to.public List<S3Tag> getTags()
An array of tags that contain key and value pairs.
public void setTags(Collection<S3Tag> tags)
An array of tags that contain key and value pairs.
tags - An array of tags that contain key and value pairs.public ReplicationRuleAndOperator withTags(S3Tag... tags)
An array of tags that contain key and value pairs.
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 - An array of tags that contain key and value pairs.public ReplicationRuleAndOperator withTags(Collection<S3Tag> tags)
An array of tags that contain key and value pairs.
tags - An array of tags that contain key and value pairs.public String toString()
toString in class ObjectObject.toString()public ReplicationRuleAndOperator clone()