@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Item extends Object implements Serializable, Cloneable, StructuredPojo
Represents item metadata added to an Items dataset using the PutItems API. For more information see Importing items individually.
| Constructor and Description |
|---|
Item() |
| Modifier and Type | Method and Description |
|---|---|
Item |
clone() |
boolean |
equals(Object obj) |
String |
getItemId()
The ID associated with the item.
|
String |
getProperties()
A string map of item-specific metadata.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setItemId(String itemId)
The ID associated with the item.
|
void |
setProperties(String properties)
A string map of item-specific metadata.
|
String |
toString()
Returns a string representation of this object.
|
Item |
withItemId(String itemId)
The ID associated with the item.
|
Item |
withProperties(String properties)
A string map of item-specific metadata.
|
public void setItemId(String itemId)
The ID associated with the item.
itemId - The ID associated with the item.public String getItemId()
The ID associated with the item.
public Item withItemId(String itemId)
The ID associated with the item.
itemId - The ID associated with the item.public void setProperties(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 numberOfRatings matches 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\".
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
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 numberOfRatings matches 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\".
public String getProperties()
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 numberOfRatings matches 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\".
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
{"numberOfRatings": "12"}.
The keys use camel case names that match the fields in the schema for the Items dataset. In the previous
example, the numberOfRatings matches 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\".
public Item withProperties(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 numberOfRatings matches 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\".
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
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 numberOfRatings matches 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\".
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.