ResourceSku Class
- java.
lang. Object - com.
azure. resourcemanager. dashboard. models. ResourceSku
- com.
Implements
public final class ResourceSku
implements JsonSerializable<ResourceSku>
Represents the SKU of a resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceSku() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Resource |
withName(String name)
Set the name property: The name of the SKU. |
|
Resource |
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:
Returns:
Throws:
name
public String name()
Get the name property: The name of the SKU.
Returns:
size
public Size size()
Get the size property: Specifies the capacity tier of the Grafana instance.
Returns:
toJson
withName
public ResourceSku withName(String name)
Set the name property: The name of the SKU.
Parameters:
Returns:
withSize
public ResourceSku withSize(Size size)
Set the size property: Specifies the capacity tier of the Grafana instance.
Parameters:
Returns: