Compartilhar via


AvailableCluster Class

  • java.lang.Object
    • com.azure.resourcemanager.eventhubs.models.AvailableCluster

Implements

public final class AvailableCluster
implements JsonSerializable<AvailableCluster>

Pre-provisioned and readily available Event Hubs Cluster count per region.

Constructor Summary

Constructor Description
AvailableCluster()

Creates an instance of AvailableCluster class.

Method Summary

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

Reads an instance of AvailableCluster from the JsonReader.

String location()

Get the location property: Location fo the Available Cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableCluster withLocation(String location)

Set the location property: Location fo the Available Cluster.

Methods inherited from java.lang.Object

Constructor Details

AvailableCluster

public AvailableCluster()

Creates an instance of AvailableCluster class.

Method Details

fromJson

public static AvailableCluster fromJson(JsonReader jsonReader)

Reads an instance of AvailableCluster from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AvailableCluster 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 AvailableCluster.

location

public String location()

Get the location property: Location fo the Available Cluster.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public AvailableCluster withLocation(String location)

Set the location property: Location fo the Available Cluster.

Parameters:

location - the location value to set.

Returns:

the AvailableCluster object itself.

Applies to