@Generated(value="software.amazon.awssdk:codegen") public final class ReplicationRuleFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplicationRuleFilter.Builder,ReplicationRuleFilter>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplicationRuleFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
ReplicationRuleAndOperator |
and()
A container for specifying rule filters.
|
static ReplicationRuleFilter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
An object key name prefix that identifies the subset of objects that the rule applies to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReplicationRuleFilter.Builder> |
serializableBuilderClass() |
S3Tag |
tag()
Returns the value of the Tag property for this object.
|
ReplicationRuleFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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 final S3Tag tag()
public final 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.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ReplicationRuleFilter.Builder,ReplicationRuleFilter>public static ReplicationRuleFilter.Builder builder()
public static Class<? extends ReplicationRuleFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.