Class ReplicationRuleFilter
- All Implemented Interfaces:
Serializable,SdkPojo,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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionand()A container for specifying rule filters.builder()final booleanfinal booleanequalsBySdkFields(Object obj) static ReplicationRuleFilterCreate an instance of this class withand()initialized to the given value.static ReplicationRuleFilterCreate an instance of this class withand()initialized to the given value.static ReplicationRuleFilterfromPrefix(String prefix) Create an instance of this class withprefix()initialized to the given value.static ReplicationRuleFilterfromTag(Consumer<Tag.Builder> tag) Create an instance of this class withtag()initialized to the given value.static ReplicationRuleFilterCreate an instance of this class withtag()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringprefix()An object key name prefix that identifies the subset of objects to which the rule applies.static Class<? extends ReplicationRuleFilter.Builder>final Tagtag()A container for specifying a tag key and value.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.
- Returns:
- 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.
-
tag
A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
- Returns:
- A container for specifying a tag key and value.
The rule applies only to objects that have the tag in their tag set.
-
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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
- Returns:
- 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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
-
-
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReplicationRuleFilter.Builder,ReplicationRuleFilter>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
fromPrefix
Create an instance of this class withprefix()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.
- Parameters:
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.
-
fromTag
Create an instance of this class withtag()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.
- Parameters:
tag- A container for specifying a tag key and value.The rule applies only to objects that have the tag in their tag set.
-
fromTag
Create an instance of this class withtag()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.
- Parameters:
tag- A container for specifying a tag key and value.The rule applies only to objects that have the tag in their tag set.
-
fromAnd
Create an instance of this class withand()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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
- Parameters:
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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
-
-
-
fromAnd
Create an instance of this class withand()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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
- Parameters:
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
Prefixand aTagfilter, wrap these filters in anAndtag. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndtag.
-
-
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beReplicationRuleFilter.Type.UNKNOWN_TO_SDK_VERSIONif 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 beReplicationRuleFilter.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-