Class AvsClusterCreatedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AvsClusterEventData
com.azure.messaging.eventgrid.systemevents.AvsClusterCreatedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<AvsClusterEventData>

public final class AvsClusterCreatedEventData extends AvsClusterEventData
Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterCreated event.
  • Method Details

    • getInMaintenanceHostNames

      public List<String> getInMaintenanceHostNames()
      Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.
      Overrides:
      getInMaintenanceHostNames in class AvsClusterEventData
      Returns:
      the inMaintenanceHostNames value.
    • getRemovedHostNames

      public List<String> getRemovedHostNames()
      Get the removedHostNames property: Hosts removed from the cluster in this event, if any.
      Overrides:
      getRemovedHostNames in class AvsClusterEventData
      Returns:
      the removedHostNames value.
    • getAddedHostNames

      public List<String> getAddedHostNames()
      Get the addedHostNames property: Hosts added to the cluster in this event, if any.
      Overrides:
      getAddedHostNames in class AvsClusterEventData
      Returns:
      the addedHostNames value.
    • toJson

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

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