Class Event
- java.lang.Object
-
- software.amazon.awssdk.services.evidently.model.Event
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Event.Builder,Event>
@Generated("software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Event.Builder,Event>
A structure that contains the information about one evaluation event or custom event sent to Evidently. This is a JSON payload. If this event specifies a pre-defined event type, the payload must follow the defined event schema.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Event.Builderbuilder()Stringdata()The event data.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Event.Builder>serializableBuilderClass()Instanttimestamp()The timestamp of the event.Event.BuildertoBuilder()StringtoString()Returns a string representation of this object.EventTypetype()aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.StringtypeAsString()aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.-
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
-
data
public final String data()
The event data.
- Returns:
- The event data.
-
timestamp
public final Instant timestamp()
The timestamp of the event.
- Returns:
- The timestamp of the event.
-
type
public final EventType type()
aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.aws.evidently.customspecifies a custom event, which generates metrics from user actions such as clicks and checkouts.If the service returns an enum value that is not available in the current SDK version,
typewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.aws.evidently.customspecifies a custom event, which generates metrics from user actions such as clicks and checkouts.- See Also:
EventType
-
typeAsString
public final String typeAsString()
aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.aws.evidently.customspecifies a custom event, which generates metrics from user actions such as clicks and checkouts.If the service returns an enum value that is not available in the current SDK version,
typewill returnEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
aws.evidently.evaluationspecifies an evaluation event, which determines which feature variation that a user sees.aws.evidently.customspecifies a custom event, which generates metrics from user actions such as clicks and checkouts.- See Also:
EventType
-
toBuilder
public Event.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Event.Builder,Event>
-
builder
public static Event.Builder builder()
-
serializableBuilderClass
public static Class<? extends Event.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.
-
-