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