Class ObjectTypeKey
- java.lang.Object
-
- software.amazon.awssdk.services.customerprofiles.model.ObjectTypeKey
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ObjectTypeKey.Builder,ObjectTypeKey>
@Generated("software.amazon.awssdk:codegen") public final class ObjectTypeKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ObjectTypeKey.Builder,ObjectTypeKey>
An object that defines the Key element of a ProfileObject. A Key is a special element that can be used to search for a customer profile.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceObjectTypeKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectTypeKey.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>fieldNames()The reference for the key name of the fields map.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasFieldNames()For responses, this returns true if the service returned a value for the FieldNames property.inthashCode()booleanhasStandardIdentifiers()For responses, this returns true if the service returned a value for the StandardIdentifiers property.List<SdkField<?>>sdkFields()static Class<? extends ObjectTypeKey.Builder>serializableBuilderClass()List<StandardIdentifier>standardIdentifiers()The types of keys that a ProfileObject can have.List<String>standardIdentifiersAsStrings()The types of keys that a ProfileObject can have.ObjectTypeKey.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
-
standardIdentifiers
public final List<StandardIdentifier> standardIdentifiers()
The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
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
hasStandardIdentifiers()method.- Returns:
- The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
-
hasStandardIdentifiers
public final boolean hasStandardIdentifiers()
For responses, this returns true if the service returned a value for the StandardIdentifiers 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.
-
standardIdentifiersAsStrings
public final List<String> standardIdentifiersAsStrings()
The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
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
hasStandardIdentifiers()method.- Returns:
- The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.
-
hasFieldNames
public final boolean hasFieldNames()
For responses, this returns true if the service returned a value for the FieldNames 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.
-
fieldNames
public final List<String> fieldNames()
The reference for the key name of the fields map.
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
hasFieldNames()method.- Returns:
- The reference for the key name of the fields map.
-
toBuilder
public ObjectTypeKey.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ObjectTypeKey.Builder,ObjectTypeKey>
-
builder
public static ObjectTypeKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends ObjectTypeKey.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.
-
-