Class Event

java.lang.Object
software.amazon.awssdk.services.lambda.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>

An event that occurred during the execution of a durable function.

See Also:
  • Method Details

    • eventType

      public final EventType eventType()

      The type of event that occurred.

      If the service returns an enum value that is not available in the current SDK version, eventType will return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from eventTypeAsString().

      Returns:
      The type of event that occurred.
      See Also:
    • eventTypeAsString

      public final String eventTypeAsString()

      The type of event that occurred.

      If the service returns an enum value that is not available in the current SDK version, eventType will return EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from eventTypeAsString().

      Returns:
      The type of event that occurred.
      See Also:
    • subType

      public final String subType()

      The subtype of the event, providing additional categorization.

      Returns:
      The subtype of the event, providing additional categorization.
    • eventId

      public final Integer eventId()

      The unique identifier for this event. Event IDs increment sequentially.

      Returns:
      The unique identifier for this event. Event IDs increment sequentially.
    • id

      public final String id()

      The unique identifier for this operation.

      Returns:
      The unique identifier for this operation.
    • name

      public final String name()

      The customer-provided name for this operation.

      Returns:
      The customer-provided name for this operation.
    • eventTimestamp

      public final Instant eventTimestamp()

      The date and time when this event occurred, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

      Returns:
      The date and time when this event occurred, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
    • parentId

      public final String parentId()

      The unique identifier of the parent operation, if this operation is running within a child context.

      Returns:
      The unique identifier of the parent operation, if this operation is running within a child context.
    • executionStartedDetails

      public final ExecutionStartedDetails executionStartedDetails()

      Details about an execution that started.

      Returns:
      Details about an execution that started.
    • executionSucceededDetails

      public final ExecutionSucceededDetails executionSucceededDetails()

      Details about an execution that succeeded.

      Returns:
      Details about an execution that succeeded.
    • executionFailedDetails

      public final ExecutionFailedDetails executionFailedDetails()

      Details about an execution that failed.

      Returns:
      Details about an execution that failed.
    • executionTimedOutDetails

      public final ExecutionTimedOutDetails executionTimedOutDetails()

      Details about an execution that timed out.

      Returns:
      Details about an execution that timed out.
    • executionStoppedDetails

      public final ExecutionStoppedDetails executionStoppedDetails()

      Details about an execution that was stopped.

      Returns:
      Details about an execution that was stopped.
    • contextStartedDetails

      public final ContextStartedDetails contextStartedDetails()

      Details about a context that started.

      Returns:
      Details about a context that started.
    • contextSucceededDetails

      public final ContextSucceededDetails contextSucceededDetails()

      Details about a context that succeeded.

      Returns:
      Details about a context that succeeded.
    • contextFailedDetails

      public final ContextFailedDetails contextFailedDetails()

      Details about a context that failed.

      Returns:
      Details about a context that failed.
    • waitStartedDetails

      public final WaitStartedDetails waitStartedDetails()

      Details about a wait operation that started.

      Returns:
      Details about a wait operation that started.
    • waitSucceededDetails

      public final WaitSucceededDetails waitSucceededDetails()

      Details about a wait operation that succeeded.

      Returns:
      Details about a wait operation that succeeded.
    • waitCancelledDetails

      public final WaitCancelledDetails waitCancelledDetails()

      Details about a wait operation that was cancelled.

      Returns:
      Details about a wait operation that was cancelled.
    • stepStartedDetails

      public final StepStartedDetails stepStartedDetails()

      Details about a step that started.

      Returns:
      Details about a step that started.
    • stepSucceededDetails

      public final StepSucceededDetails stepSucceededDetails()

      Details about a step that succeeded.

      Returns:
      Details about a step that succeeded.
    • stepFailedDetails

      public final StepFailedDetails stepFailedDetails()

      Details about a step that failed.

      Returns:
      Details about a step that failed.
    • chainedInvokeStartedDetails

      public final ChainedInvokeStartedDetails chainedInvokeStartedDetails()
      Returns the value of the ChainedInvokeStartedDetails property for this object.
      Returns:
      The value of the ChainedInvokeStartedDetails property for this object.
    • chainedInvokeSucceededDetails

      public final ChainedInvokeSucceededDetails chainedInvokeSucceededDetails()

      Details about a chained invocation that succeeded.

      Returns:
      Details about a chained invocation that succeeded.
    • chainedInvokeFailedDetails

      public final ChainedInvokeFailedDetails chainedInvokeFailedDetails()
      Returns the value of the ChainedInvokeFailedDetails property for this object.
      Returns:
      The value of the ChainedInvokeFailedDetails property for this object.
    • chainedInvokeTimedOutDetails

      public final ChainedInvokeTimedOutDetails chainedInvokeTimedOutDetails()

      Details about a chained invocation that timed out.

      Returns:
      Details about a chained invocation that timed out.
    • chainedInvokeStoppedDetails

      public final ChainedInvokeStoppedDetails chainedInvokeStoppedDetails()

      Details about a chained invocation that was stopped.

      Returns:
      Details about a chained invocation that was stopped.
    • callbackStartedDetails

      public final CallbackStartedDetails callbackStartedDetails()
      Returns the value of the CallbackStartedDetails property for this object.
      Returns:
      The value of the CallbackStartedDetails property for this object.
    • callbackSucceededDetails

      public final CallbackSucceededDetails callbackSucceededDetails()
      Returns the value of the CallbackSucceededDetails property for this object.
      Returns:
      The value of the CallbackSucceededDetails property for this object.
    • callbackFailedDetails

      public final CallbackFailedDetails callbackFailedDetails()
      Returns the value of the CallbackFailedDetails property for this object.
      Returns:
      The value of the CallbackFailedDetails property for this object.
    • callbackTimedOutDetails

      public final CallbackTimedOutDetails callbackTimedOutDetails()
      Returns the value of the CallbackTimedOutDetails property for this object.
      Returns:
      The value of the CallbackTimedOutDetails property for this object.
    • invocationCompletedDetails

      public final InvocationCompletedDetails invocationCompletedDetails()

      Details about a function invocation that completed.

      Returns:
      Details about a function invocation that completed.
    • toBuilder

      public Event.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<Event.Builder,Event>
      Returns:
      a builder for type T
    • builder

      public static Event.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Event.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.