Class ReplicationRuleFilter
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.ReplicationRuleFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReplicationRuleFilter.Builder,ReplicationRuleFilter>
@Generated("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
Filtermust specify exactly onePrefix,Tag, or anAndchild element.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReplicationRuleFilter.Builderstatic classReplicationRuleFilter.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationRuleAndOperatorand()A container for specifying rule filters.static ReplicationRuleFilter.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static ReplicationRuleFilterfromAnd(Consumer<ReplicationRuleAndOperator.Builder> and)Create an instance of this class withand()initialized to the given value.static ReplicationRuleFilterfromAnd(ReplicationRuleAndOperator and)Create 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 ReplicationRuleFilterfromTag(Tag tag)Create an instance of this class withtag()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringprefix()An object key name prefix that identifies the subset of objects to which the rule applies.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ReplicationRuleFilter.Builder>serializableBuilderClass()Tagtag()A container for specifying a tag key and value.ReplicationRuleFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.ReplicationRuleFilter.Typetype()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, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
prefix
public 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.
- 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
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.
- 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
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
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
public ReplicationRuleFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReplicationRuleFilter.Builder,ReplicationRuleFilter>
-
builder
public static ReplicationRuleFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReplicationRuleFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
fromPrefix
public static ReplicationRuleFilter fromPrefix(String prefix)
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
public static ReplicationRuleFilter fromTag(Tag tag)
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
public static ReplicationRuleFilter fromTag(Consumer<Tag.Builder> tag)
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
public static ReplicationRuleFilter fromAnd(ReplicationRuleAndOperator and)
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
public static ReplicationRuleFilter fromAnd(Consumer<ReplicationRuleAndOperator.Builder> and)
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
public ReplicationRuleFilter.Type 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-