@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectTypeKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ObjectTypeKey.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
fieldNames()
The reference for the key name of the fields map.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFieldNames()
For responses, this returns true if the service returned a value for the FieldNames property.
|
int |
hashCode() |
boolean |
hasStandardIdentifiers()
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.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
public final boolean hasStandardIdentifiers()
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<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.
public final boolean hasFieldNames()
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<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.
public ObjectTypeKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ObjectTypeKey.Builder,ObjectTypeKey>public static ObjectTypeKey.Builder builder()
public static Class<? extends ObjectTypeKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.