Class InstanceStatusEvent

java.lang.Object
software.amazon.awssdk.services.ec2.model.InstanceStatusEvent
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>

@Generated("software.amazon.awssdk:codegen") public final class InstanceStatusEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>

Describes a scheduled event for an instance.

See Also:
  • Method Details

    • instanceEventId

      public final String instanceEventId()

      The ID of the event.

      Returns:
      The ID of the event.
    • code

      public final EventCode code()

      The event code.

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

      Returns:
      The event code.
      See Also:
    • codeAsString

      public final String codeAsString()

      The event code.

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

      Returns:
      The event code.
      See Also:
    • description

      public final String description()

      A description of the event.

      After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

      Returns:
      A description of the event.

      After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

    • notAfter

      public final Instant notAfter()

      The latest scheduled end time for the event.

      Returns:
      The latest scheduled end time for the event.
    • notBefore

      public final Instant notBefore()

      The earliest scheduled start time for the event.

      Returns:
      The earliest scheduled start time for the event.
    • notBeforeDeadline

      public final Instant notBeforeDeadline()

      The deadline for starting the event.

      Returns:
      The deadline for starting the event.
    • toBuilder

      public InstanceStatusEvent.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>
    • builder

      public static InstanceStatusEvent.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InstanceStatusEvent.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)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo