Class PeeringServicePrefixEvent

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

public final class PeeringServicePrefixEvent extends Object implements com.azure.json.JsonSerializable<PeeringServicePrefixEvent>
The details of the event associated with a prefix.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the eventDescription property: The description of the event associated with a prefix.
    Get the eventLevel property: The level of the event associated with a prefix.
    Get the eventSummary property: The summary of the event associated with a prefix.
    Get the eventTimestamp property: The timestamp of the event associated with a prefix.
    Get the eventType property: The type of the event associated with a prefix.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PeeringServicePrefixEvent from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    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

    • PeeringServicePrefixEvent

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

    • eventTimestamp

      public OffsetDateTime eventTimestamp()
      Get the eventTimestamp property: The timestamp of the event associated with a prefix.
      Returns:
      the eventTimestamp value.
    • eventType

      public String eventType()
      Get the eventType property: The type of the event associated with a prefix.
      Returns:
      the eventType value.
    • eventSummary

      public String eventSummary()
      Get the eventSummary property: The summary of the event associated with a prefix.
      Returns:
      the eventSummary value.
    • eventLevel

      public String eventLevel()
      Get the eventLevel property: The level of the event associated with a prefix.
      Returns:
      the eventLevel value.
    • eventDescription

      public String eventDescription()
      Get the eventDescription property: The description of the event associated with a prefix.
      Returns:
      the eventDescription 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<PeeringServicePrefixEvent>
      Throws:
      IOException
    • fromJson

      public static PeeringServicePrefixEvent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PeeringServicePrefixEvent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PeeringServicePrefixEvent 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 PeeringServicePrefixEvent.