Compartir a través de


InstanceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.InstanceSku

Implements

public final class InstanceSku
implements JsonSerializable<InstanceSku>

The role instance SKU.

Constructor Summary

Constructor Description
InstanceSku()

Creates an instance of InstanceSku class.

Method Summary

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

Reads an instance of InstanceSku from the JsonReader.

String name()

Get the name property: The sku name.

String tier()

Get the tier property: The tier of the cloud service role instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

InstanceSku

public InstanceSku()

Creates an instance of InstanceSku class.

Method Details

fromJson

public static InstanceSku fromJson(JsonReader jsonReader)

Reads an instance of InstanceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The sku name.

Returns:

the name value.

tier

public String tier()

Get the tier property: The tier of the cloud service role instance.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to