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 Summary
ConstructorsModifierConstructorDescriptionprotectedAvsClusterEventData(String operationId) Creates an instance of AvsClusterEventData class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AvsClusterEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvsClusterEventData from the JsonReader.Get the addedHostNames property: Hosts added to the cluster in this event, if any.Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.Get the operationId property: Id of the operation that caused this event.Get the removedHostNames property: Hosts removed from the cluster in this event, if any.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AvsClusterEventData
Creates an instance of AvsClusterEventData class.- Parameters:
operationId- the operationId value to set.
-
-
Method Details
-
getOperationId
Get the operationId property: Id of the operation that caused this event.- Returns:
- the operationId value.
-
getAddedHostNames
Get the addedHostNames property: Hosts added to the cluster in this event, if any.- Returns:
- the addedHostNames value.
-
getRemovedHostNames
Get the removedHostNames property: Hosts removed from the cluster in this event, if any.- Returns:
- the removedHostNames value.
-
getInMaintenanceHostNames
Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.- Returns:
- the inMaintenanceHostNames value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AvsClusterEventData>- Throws:
IOException
-
fromJson
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.
-