@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationRuleFilter extends Object implements Serializable, Cloneable
A filter that identifies the subset of objects to which the replication rule applies. A Filter element
must specify exactly one Prefix, Tag, or And child element.
| Constructor and Description |
|---|
ReplicationRuleFilter() |
| Modifier and Type | Method and Description |
|---|---|
ReplicationRuleFilter |
clone() |
boolean |
equals(Object obj) |
ReplicationRuleAndOperator |
getAnd()
A container for specifying rule filters.
|
String |
getPrefix()
An object key name prefix that identifies the subset of objects that the rule applies to.
|
S3Tag |
getTag() |
int |
hashCode() |
void |
setAnd(ReplicationRuleAndOperator and)
A container for specifying rule filters.
|
void |
setPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
|
void |
setTag(S3Tag tag) |
String |
toString()
Returns a string representation of this object.
|
ReplicationRuleFilter |
withAnd(ReplicationRuleAndOperator and)
A container for specifying rule filters.
|
ReplicationRuleFilter |
withPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
|
ReplicationRuleFilter |
withTag(S3Tag tag) |
public void setPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
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 - An object key name prefix that identifies the subset of objects that the rule applies to. 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()
An object key name prefix that identifies the subset of objects that the rule applies to.
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 ReplicationRuleFilter withPrefix(String prefix)
An object key name prefix that identifies the subset of objects that the rule applies to.
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 - An object key name prefix that identifies the subset of objects that the rule applies to. 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 ReplicationRuleFilter withTag(S3Tag tag)
tag - public void setAnd(ReplicationRuleAndOperator and)
A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. 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.
and - A container for specifying rule filters. The filters determine the subset of objects that the rule applies
to. 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.
public ReplicationRuleAndOperator getAnd()
A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. 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.
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.
public ReplicationRuleFilter withAnd(ReplicationRuleAndOperator and)
A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. 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.
and - A container for specifying rule filters. The filters determine the subset of objects that the rule applies
to. 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.
public String toString()
toString in class ObjectObject.toString()public ReplicationRuleFilter clone()
Copyright © 2024. All rights reserved.