Share via


NamespaceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.NamespaceSku

Implements

public final class NamespaceSku
implements JsonSerializable<NamespaceSku>

Represents available Sku pricing tiers.

Constructor Summary

Constructor Description
NamespaceSku()

Creates an instance of NamespaceSku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace.

static NamespaceSku fromJson(JsonReader jsonReader)

Reads an instance of NamespaceSku from the JsonReader.

SkuName name()

Get the name property: The name of the SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NamespaceSku withCapacity(Integer capacity)

Set the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace.

NamespaceSku withName(SkuName name)

Set the name property: The name of the SKU.

Methods inherited from java.lang.Object

Constructor Details

NamespaceSku

public NamespaceSku()

Creates an instance of NamespaceSku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. Min capacity is 1 and max allowed capacity is 20.

Returns:

the capacity value.

fromJson

public static NamespaceSku fromJson(JsonReader jsonReader)

Reads an instance of NamespaceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public SkuName name()

Get the name property: The name of the SKU.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public NamespaceSku withCapacity(Integer capacity)

Set the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. Min capacity is 1 and max allowed capacity is 20.

Parameters:

capacity - the capacity value to set.

Returns:

the NamespaceSku object itself.

withName

public NamespaceSku withName(SkuName name)

Set the name property: The name of the SKU.

Parameters:

name - the name value to set.

Returns:

the NamespaceSku object itself.

Applies to