Class AvsClusterFailedEventData

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

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

    • getFailureMessage

      public String getFailureMessage()
      Get the failureMessage property: Failure reason of an event.
      Returns:
      the failureMessage value.
    • 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 AvsClusterFailedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AvsClusterFailedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AvsClusterFailedEventData 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 AvsClusterFailedEventData.