ResourceSkuCosts Class

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

Implements

public final class ResourceSkuCosts
implements JsonSerializable<ResourceSkuCosts>

Describes metadata for retrieving price info.

Constructor Summary

Constructor Description
ResourceSkuCosts()

Creates an instance of ResourceSkuCosts class.

Method Summary

Modifier and Type Method and Description
String extendedUnit()

Get the extendedUnit property: An invariant to show the extended unit.

static ResourceSkuCosts fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuCosts from the JsonReader.

String meterId()

Get the meterId property: Used for querying price from commerce.

Long quantity()

Get the quantity property: The multiplier is needed to extend the base metered cost.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ResourceSkuCosts

public ResourceSkuCosts()

Creates an instance of ResourceSkuCosts class.

Method Details

extendedUnit

public String extendedUnit()

Get the extendedUnit property: An invariant to show the extended unit.

Returns:

the extendedUnit value.

fromJson

public static ResourceSkuCosts fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuCosts from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

meterId

public String meterId()

Get the meterId property: Used for querying price from commerce.

Returns:

the meterId value.

quantity

public Long quantity()

Get the quantity property: The multiplier is needed to extend the base metered cost.

Returns:

the quantity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to