ResourceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.ResourceSku

Implements

public final class ResourceSku
implements JsonSerializable<ResourceSku>

Represents the SKU of a resource.

Constructor Summary

Constructor Description
ResourceSku()

Creates an instance of ResourceSku class.

Method Summary

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

Reads an instance of ResourceSku from the JsonReader.

String name()

Get the name property: The name of the SKU.

Size size()

Get the size property: Specifies the capacity tier of the Grafana instance.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceSku withName(String name)

Set the name property: The name of the SKU.

ResourceSku withSize(Size size)

Set the size property: Specifies the capacity tier of the Grafana instance.

Methods inherited from java.lang.Object

Constructor Details

ResourceSku

public ResourceSku()

Creates an instance of ResourceSku class.

Method Details

fromJson

public static ResourceSku fromJson(JsonReader jsonReader)

Reads an instance of ResourceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceSku 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 String name()

Get the name property: The name of the SKU.

Returns:

the name value.

size

public Size size()

Get the size property: Specifies the capacity tier of the Grafana instance.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withName

public ResourceSku withName(String name)

Set the name property: The name of the SKU.

Parameters:

name - the name value to set.

Returns:

the ResourceSku object itself.

withSize

public ResourceSku withSize(Size size)

Set the size property: Specifies the capacity tier of the Grafana instance.

Parameters:

size - the size value to set.

Returns:

the ResourceSku object itself.

Applies to