Class AvsClusterEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AvsClusterEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<AvsClusterEventData>
Direct Known Subclasses:
AvsClusterCreatedEventData, AvsClusterDeletedEventData, AvsClusterFailedEventData, AvsClusterUpdatedEventData, AvsClusterUpdatingEventData

public class AvsClusterEventData extends Object implements com.azure.json.JsonSerializable<AvsClusterEventData>
Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events.
  • Constructor Details

    • AvsClusterEventData

      protected AvsClusterEventData(String operationId)
      Creates an instance of AvsClusterEventData class.
      Parameters:
      operationId - the operationId value to set.
  • Method Details

    • getOperationId

      public String getOperationId()
      Get the operationId property: Id of the operation that caused this event.
      Returns:
      the operationId value.
    • getAddedHostNames

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

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

      public List<String> getInMaintenanceHostNames()
      Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.
      Returns:
      the inMaintenanceHostNames 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>
      Throws:
      IOException
    • fromJson

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