java.lang.Object
com.azure.resourcemanager.containerinstance.models.Event
All Implemented Interfaces:
com.azure.json.JsonSerializable<Event>

public final class Event extends Object implements com.azure.json.JsonSerializable<Event>
A container group or container instance event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Event class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the count property: The count of the event.
    Get the firstTimestamp property: The date-time of the earliest logged event.
    static Event
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Event from the JsonReader.
    Get the lastTimestamp property: The date-time of the latest logged event.
    Get the message property: The event message.
    Get the name property: The event name.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The event type.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Event

      public Event()
      Creates an instance of Event class.
  • Method Details

    • count

      public Integer count()
      Get the count property: The count of the event.
      Returns:
      the count value.
    • firstTimestamp

      public OffsetDateTime firstTimestamp()
      Get the firstTimestamp property: The date-time of the earliest logged event.
      Returns:
      the firstTimestamp value.
    • lastTimestamp

      public OffsetDateTime lastTimestamp()
      Get the lastTimestamp property: The date-time of the latest logged event.
      Returns:
      the lastTimestamp value.
    • name

      public String name()
      Get the name property: The event name.
      Returns:
      the name value.
    • message

      public String message()
      Get the message property: The event message.
      Returns:
      the message value.
    • type

      public String type()
      Get the type property: The event type.
      Returns:
      the type value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Event>
      Throws:
      IOException
    • fromJson

      public static Event fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Event from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Event if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the Event.