Lezen in het Engels

Delen via


AvsClusterEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.AvsClusterEventData

Implements

public class AvsClusterEventData
implements JsonSerializable<AvsClusterEventData>

Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events.

Constructor Summary

Constructor Description
AvsClusterEventData()

Creates an instance of AvsClusterEventData class.

Method Summary

Modifier and Type Method and Description
static AvsClusterEventData fromJson(JsonReader jsonReader)

Reads an instance of AvsClusterEventData from the JsonReader.

List<String> getAddedHostNames()

Get the addedHostNames property: Hosts added to the cluster in this event, if any.

List<String> getInMaintenanceHostNames()

Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.

String getOperationId()

Get the operationId property: Id of the operation that caused this event.

List<String> getRemovedHostNames()

Get the removedHostNames property: Hosts removed to the cluster in this event, if any.

AvsClusterEventData setAddedHostNames(List<String> addedHostNames)

Set the addedHostNames property: Hosts added to the cluster in this event, if any.

AvsClusterEventData setInMaintenanceHostNames(List<String> inMaintenanceHostNames)

Set the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.

AvsClusterEventData setOperationId(String operationId)

Set the operationId property: Id of the operation that caused this event.

AvsClusterEventData setRemovedHostNames(List<String> removedHostNames)

Set the removedHostNames property: Hosts removed to the cluster in this event, if any.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AvsClusterEventData

public AvsClusterEventData()

Creates an instance of AvsClusterEventData class.

Method Details

fromJson

public static AvsClusterEventData fromJson(JsonReader jsonReader)

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:

IOException

- If an error occurs while reading the AvsClusterEventData.

getAddedHostNames

public List getAddedHostNames()

Get the addedHostNames property: Hosts added to the cluster in this event, if any.

Returns:

the addedHostNames value.

getInMaintenanceHostNames

public List getInMaintenanceHostNames()

Get the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.

Returns:

the inMaintenanceHostNames value.

getOperationId

public String getOperationId()

Get the operationId property: Id of the operation that caused this event.

Returns:

the operationId value.

getRemovedHostNames

public List getRemovedHostNames()

Get the removedHostNames property: Hosts removed to the cluster in this event, if any.

Returns:

the removedHostNames value.

setAddedHostNames

public AvsClusterEventData setAddedHostNames(List addedHostNames)

Set the addedHostNames property: Hosts added to the cluster in this event, if any.

Parameters:

addedHostNames - the addedHostNames value to set.

Returns:

the AvsClusterEventData object itself.

setInMaintenanceHostNames

public AvsClusterEventData setInMaintenanceHostNames(List inMaintenanceHostNames)

Set the inMaintenanceHostNames property: Hosts in Maintenance mode in the cluster, if any.

Parameters:

inMaintenanceHostNames - the inMaintenanceHostNames value to set.

Returns:

the AvsClusterEventData object itself.

setOperationId

public AvsClusterEventData setOperationId(String operationId)

Set the operationId property: Id of the operation that caused this event.

Parameters:

operationId - the operationId value to set.

Returns:

the AvsClusterEventData object itself.

setRemovedHostNames

public AvsClusterEventData setRemovedHostNames(List removedHostNames)

Set the removedHostNames property: Hosts removed to the cluster in this event, if any.

Parameters:

removedHostNames - the removedHostNames value to set.

Returns:

the AvsClusterEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest