Class ReplicationRuleFilter
- java.lang.Object
-
- software.amazon.awssdk.services.s3control.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
Filterelement must specify exactly onePrefix,Tag, orAndchild element.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReplicationRuleFilter.Builder
-
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)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringprefix()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()S3Tagtag()Returns the value of the Tag property for this object.ReplicationRuleFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 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.
- Returns:
- 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.
-
tag
public final S3Tag tag()
Returns the value of the Tag property for this object.- Returns:
- The value of the Tag property for this object.
-
and
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
Prefixand aTagfilter, wrap these filters in anAndelement. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndelement.
- Returns:
- 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
Prefixand aTagfilter, wrap these filters in anAndelement. -
If you specify a filter based on multiple tags, wrap the
Tagelements in anAndelement.
-
-
-
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.
-
-