Partilhar via


ClusterSku Class

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

Implements

public final class ClusterSku
implements JsonSerializable<ClusterSku>

SKU parameters particular to a cluster instance.

Constructor Summary

Constructor Description
ClusterSku()

Creates an instance of ClusterSku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: The quantity of Event Hubs Cluster Capacity Units contained in this cluster.

static ClusterSku fromJson(JsonReader jsonReader)

Reads an instance of ClusterSku from the JsonReader.

ClusterSkuName name()

Get the name property: Name of this SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClusterSku withCapacity(Integer capacity)

Set the capacity property: The quantity of Event Hubs Cluster Capacity Units contained in this cluster.

ClusterSku withName(ClusterSkuName name)

Set the name property: Name of this SKU.

Methods inherited from java.lang.Object

Constructor Details

ClusterSku

public ClusterSku()

Creates an instance of ClusterSku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: The quantity of Event Hubs Cluster Capacity Units contained in this cluster.

Returns:

the capacity value.

fromJson

public static ClusterSku fromJson(JsonReader jsonReader)

Reads an instance of ClusterSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClusterSku if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public ClusterSkuName name()

Get the name property: Name of this SKU.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public ClusterSku withCapacity(Integer capacity)

Set the capacity property: The quantity of Event Hubs Cluster Capacity Units contained in this cluster.

Parameters:

capacity - the capacity value to set.

Returns:

the ClusterSku object itself.

withName

public ClusterSku withName(ClusterSkuName name)

Set the name property: Name of this SKU.

Parameters:

name - the name value to set.

Returns:

the ClusterSku object itself.

Applies to