@Generated(value="software.amazon.awssdk:codegen") public final class RuleBasedProperties extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleBasedProperties.Builder,RuleBasedProperties>
An object which defines the list of matching rules to run and has a field Rules, which is a list of rule
objects.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleBasedProperties.Builder |
| Modifier and Type | Method and Description |
|---|---|
AttributeMatchingModel |
attributeMatchingModel()
You can either choose
ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel. |
String |
attributeMatchingModelAsString()
You can either choose
ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel. |
static RuleBasedProperties.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRules()
For responses, this returns true if the service returned a value for the Rules property.
|
List<Rule> |
rules()
A list of Rule objects, each of which have fields
RuleName and MatchingKeys. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RuleBasedProperties.Builder> |
serializableBuilderClass() |
RuleBasedProperties.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AttributeMatchingModel attributeMatchingModel()
You can either choose ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel. When
choosing MANY_TO_MANY, the system can match attribute across the sub-types of an attribute type. For
example, if the value of the Email field of Profile A and the value of BusinessEmail field of Profile B matches,
the two profiles are matched on the Email type. When choosing ONE_TO_ONE the system can only match
if the sub-types are exact matches. For example, only when the value of the Email field of Profile A and the
value of the Email field of Profile B matches, the two profiles are matched on the Email type.
If the service returns an enum value that is not available in the current SDK version,
attributeMatchingModel will return AttributeMatchingModel.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from attributeMatchingModelAsString().
ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel.
When choosing MANY_TO_MANY, the system can match attribute across the sub-types of an
attribute type. For example, if the value of the Email field of Profile A and the value of BusinessEmail
field of Profile B matches, the two profiles are matched on the Email type. When choosing
ONE_TO_ONE the system can only match if the sub-types are exact matches. For example, only
when the value of the Email field of Profile A and the value of the Email field of Profile B matches, the
two profiles are matched on the Email type.AttributeMatchingModelpublic final String attributeMatchingModelAsString()
You can either choose ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel. When
choosing MANY_TO_MANY, the system can match attribute across the sub-types of an attribute type. For
example, if the value of the Email field of Profile A and the value of BusinessEmail field of Profile B matches,
the two profiles are matched on the Email type. When choosing ONE_TO_ONE the system can only match
if the sub-types are exact matches. For example, only when the value of the Email field of Profile A and the
value of the Email field of Profile B matches, the two profiles are matched on the Email type.
If the service returns an enum value that is not available in the current SDK version,
attributeMatchingModel will return AttributeMatchingModel.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from attributeMatchingModelAsString().
ONE_TO_ONE or MANY_TO_MANY as the AttributeMatchingModel.
When choosing MANY_TO_MANY, the system can match attribute across the sub-types of an
attribute type. For example, if the value of the Email field of Profile A and the value of BusinessEmail
field of Profile B matches, the two profiles are matched on the Email type. When choosing
ONE_TO_ONE the system can only match if the sub-types are exact matches. For example, only
when the value of the Email field of Profile A and the value of the Email field of Profile B matches, the
two profiles are matched on the Email type.AttributeMatchingModelpublic final boolean hasRules()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Rule> rules()
A list of Rule objects, each of which have fields RuleName and MatchingKeys.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRules() method.
RuleName and MatchingKeys.public RuleBasedProperties.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RuleBasedProperties.Builder,RuleBasedProperties>public static RuleBasedProperties.Builder builder()
public static Class<? extends RuleBasedProperties.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.