@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 must
specify exactly one Prefix, Tag, or an And child element.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplicationRuleFilter.Builder |
static class |
ReplicationRuleFilter.Type |
| 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) |
static ReplicationRuleFilter |
fromAnd(Consumer<ReplicationRuleAndOperator.Builder> and)
Create an instance of this class with
and() initialized to the given value. |
static ReplicationRuleFilter |
fromAnd(ReplicationRuleAndOperator and)
Create an instance of this class with
and() initialized to the given value. |
static ReplicationRuleFilter |
fromPrefix(String prefix)
Create an instance of this class with
prefix() initialized to the given value. |
static ReplicationRuleFilter |
fromTag(Consumer<Tag.Builder> tag)
Create an instance of this class with
tag() initialized to the given value. |
static ReplicationRuleFilter |
fromTag(Tag tag)
Create an instance of this class with
tag() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
prefix()
An object key name prefix that identifies the subset of objects to which the rule applies.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReplicationRuleFilter.Builder> |
serializableBuilderClass() |
Tag |
tag()
A container for specifying a tag key and value.
|
ReplicationRuleFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ReplicationRuleFilter.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String prefix()
An object key name prefix that identifies the subset of 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 final Tag tag()
A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
The rule applies only to objects that have the tag in their tag set.
public final ReplicationRuleAndOperator and()
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 tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.
If you specify both a Prefix and a Tag filter, wrap these filters in an
And tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And
tag.
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()
public static ReplicationRuleFilter fromPrefix(String prefix)
prefix() initialized to the given value.
An object key name prefix that identifies the subset of 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 - An object key name prefix that identifies the subset of 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 static ReplicationRuleFilter fromTag(Tag tag)
tag() initialized to the given value.
A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
tag - A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
public static ReplicationRuleFilter fromTag(Consumer<Tag.Builder> tag)
tag() initialized to the given value.
A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
tag - A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
public static ReplicationRuleFilter fromAnd(ReplicationRuleAndOperator and)
and() initialized to the given value.
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 tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.
and - 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 tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And
tag.
public static ReplicationRuleFilter fromAnd(Consumer<ReplicationRuleAndOperator.Builder> and)
and() initialized to the given value.
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 tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.
and - 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 tag.
If you specify a filter based on multiple tags, wrap the Tag elements in an And
tag.
public ReplicationRuleFilter.Type type()
Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.