Class Item
- java.lang.Object
-
- software.amazon.awssdk.services.personalizeevents.model.Item
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Item.Builder,Item>
@Generated("software.amazon.awssdk:codegen") public final class Item extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Item.Builder,Item>
Represents item metadata added to an Items dataset using the
PutItemsAPI. For more information see Importing items individually.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Item.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringitemId()The ID associated with the item.Stringproperties()A string map of item-specific metadata.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Item.Builder>serializableBuilderClass()Item.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
-
itemId
public final String itemId()
The ID associated with the item.
- Returns:
- The ID associated with the item.
-
properties
public final String properties()
A string map of item-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfRatings": "12"}.The keys use camel case names that match the fields in the schema for the Items dataset. In the previous example, the
numberOfRatingsmatches the 'NUMBER_OF_RATINGS' field defined in the Items schema. For categorical string data, to include multiple categories for a single item, separate each category with a pipe separator (|). For example,\"Horror|Action\".- Returns:
- A string map of item-specific metadata. Each element in the map consists of a key-value pair. For
example,
{"numberOfRatings": "12"}.The keys use camel case names that match the fields in the schema for the Items dataset. In the previous example, the
numberOfRatingsmatches the 'NUMBER_OF_RATINGS' field defined in the Items schema. For categorical string data, to include multiple categories for a single item, separate each category with a pipe separator (|). For example,\"Horror|Action\".
-
toBuilder
public Item.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Item.Builder,Item>
-
builder
public static Item.Builder builder()
-
serializableBuilderClass
public static Class<? extends Item.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-