Class AttributeTypesSelector
- java.lang.Object
-
- software.amazon.awssdk.services.customerprofiles.model.AttributeTypesSelector
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AttributeTypesSelector.Builder,AttributeTypesSelector>
@Generated("software.amazon.awssdk:codegen") public final class AttributeTypesSelector extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttributeTypesSelector.Builder,AttributeTypesSelector>
Configuration information about the
AttributeTypesSelectorwhere the rule-based identity resolution uses to match profiles. You can choose how profiles are compared across attribute types and which attribute to use for matching from each type. There are three attribute types you can configure:-
Email type
-
You can choose from
Email,BusinessEmail, andPersonalEmail
-
-
Phone number type
-
You can choose from
Phone,HomePhone, andMobilePhone
-
-
Address type
-
You can choose from
Address,BusinessAddress,MaillingAddress, andShippingAddress
-
You can either choose
ONE_TO_ONEorMANY_TO_MANYas theAttributeMatchingModel. When choosingMANY_TO_MANY, the system can match attribute across the sub-types of an attribute type. For example, if the value of theEmailfield of Profile A and the value ofBusinessEmailfield of Profile B matches, the two profiles are matched on the Email type. When choosingONE_TO_ONEthe system can only match if the sub-types are exact matches. For example, only when the value of theEmailfield of Profile A and the value of theEmailfield of Profile B matches, the two profiles are matched on the Email type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttributeTypesSelector.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>address()TheAddresstype.AttributeMatchingModelattributeMatchingModel()Configures theAttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY.StringattributeMatchingModelAsString()Configures theAttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY.static AttributeTypesSelector.Builderbuilder()List<String>emailAddress()TheEmailtype.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAddress()For responses, this returns true if the service returned a value for the Address property.booleanhasEmailAddress()For responses, this returns true if the service returned a value for the EmailAddress property.inthashCode()booleanhasPhoneNumber()For responses, this returns true if the service returned a value for the PhoneNumber property.List<String>phoneNumber()ThePhoneNumbertype.List<SdkField<?>>sdkFields()static Class<? extends AttributeTypesSelector.Builder>serializableBuilderClass()AttributeTypesSelector.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
-
attributeMatchingModel
public final AttributeMatchingModel attributeMatchingModel()
Configures the
AttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY.If the service returns an enum value that is not available in the current SDK version,
attributeMatchingModelwill returnAttributeMatchingModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeMatchingModelAsString().- Returns:
- Configures the
AttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY. - See Also:
AttributeMatchingModel
-
attributeMatchingModelAsString
public final String attributeMatchingModelAsString()
Configures the
AttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY.If the service returns an enum value that is not available in the current SDK version,
attributeMatchingModelwill returnAttributeMatchingModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromattributeMatchingModelAsString().- Returns:
- Configures the
AttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY. - See Also:
AttributeMatchingModel
-
hasAddress
public final boolean hasAddress()
For responses, this returns true if the service returned a value for the Address property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
address
public final List<String> address()
The
Addresstype. You can choose fromAddress,BusinessAddress,MaillingAddress, andShippingAddress.You only can use the Address type in the
MatchingRule. For example, if you want to match profile based onBusinessAddress.CityorMaillingAddress.City, you need to choose theBusinessAddressand theMaillingAddressto represent the Address type and specify theAddress.Cityon the matching rule.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
hasAddress()method.- Returns:
- The
Addresstype. You can choose fromAddress,BusinessAddress,MaillingAddress, andShippingAddress.You only can use the Address type in the
MatchingRule. For example, if you want to match profile based onBusinessAddress.CityorMaillingAddress.City, you need to choose theBusinessAddressand theMaillingAddressto represent the Address type and specify theAddress.Cityon the matching rule.
-
hasPhoneNumber
public final boolean hasPhoneNumber()
For responses, this returns true if the service returned a value for the PhoneNumber property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
phoneNumber
public final List<String> phoneNumber()
The
PhoneNumbertype. You can choose fromPhoneNumber,HomePhoneNumber, andMobilePhoneNumber.You only can use the
PhoneNumbertype in theMatchingRule. For example, if you want to match a profile based onPhoneorHomePhone, you need to choose thePhoneand theHomePhoneto represent thePhoneNumbertype and only specify thePhoneNumberon the matching rule.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
hasPhoneNumber()method.- Returns:
- The
PhoneNumbertype. You can choose fromPhoneNumber,HomePhoneNumber, andMobilePhoneNumber.You only can use the
PhoneNumbertype in theMatchingRule. For example, if you want to match a profile based onPhoneorHomePhone, you need to choose thePhoneand theHomePhoneto represent thePhoneNumbertype and only specify thePhoneNumberon the matching rule.
-
hasEmailAddress
public final boolean hasEmailAddress()
For responses, this returns true if the service returned a value for the EmailAddress property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
emailAddress
public final List<String> emailAddress()
The
Emailtype. You can choose fromEmailAddress,BusinessEmailAddressandPersonalEmailAddress.You only can use the
EmailAddresstype in theMatchingRule. For example, if you want to match profile based onPersonalEmailAddressorBusinessEmailAddress, you need to choose thePersonalEmailAddressand theBusinessEmailAddressto represent theEmailAddresstype and only specify theEmailAddresson the matching rule.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
hasEmailAddress()method.- Returns:
- The
Emailtype. You can choose fromEmailAddress,BusinessEmailAddressandPersonalEmailAddress.You only can use the
EmailAddresstype in theMatchingRule. For example, if you want to match profile based onPersonalEmailAddressorBusinessEmailAddress, you need to choose thePersonalEmailAddressand theBusinessEmailAddressto represent theEmailAddresstype and only specify theEmailAddresson the matching rule.
-
toBuilder
public AttributeTypesSelector.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AttributeTypesSelector.Builder,AttributeTypesSelector>
-
builder
public static AttributeTypesSelector.Builder builder()
-
serializableBuilderClass
public static Class<? extends AttributeTypesSelector.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.
-
-