MeterInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.commerce.models.MeterInfo

Implements

public final class MeterInfo
implements JsonSerializable<MeterInfo>

Detailed information about the meter.

Method Summary

Modifier and Type Method and Description
OffsetDateTime effectiveDate()

Get the effectiveDate property: Indicates the date from which the meter rate is effective.

static MeterInfo fromJson(JsonReader jsonReader)

Reads an instance of MeterInfo from the JsonReader.

Double includedQuantity()

Get the includedQuantity property: The resource quantity that is included in the offer at no cost.

String meterCategory()

Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..

String meterId()

Get the meterId property: The unique identifier of the resource.

String meterName()

Get the meterName property: The name of the meter, within the given meter category.

Map<String,Double> meterRates()

Get the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.

String meterRegion()

Get the meterRegion property: The region in which the Azure service is available.

String meterSubCategory()

Get the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..

List<String> meterTags()

Get the meterTags property: Provides additional meter data.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.

Methods inherited from java.lang.Object

Method Details

effectiveDate

public OffsetDateTime effectiveDate()

Get the effectiveDate property: Indicates the date from which the meter rate is effective.

Returns:

the effectiveDate value.

fromJson

public static MeterInfo fromJson(JsonReader jsonReader)

Reads an instance of MeterInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

includedQuantity

public Double includedQuantity()

Get the includedQuantity property: The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged.

Returns:

the includedQuantity value.

meterCategory

public String meterCategory()

Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..

Returns:

the meterCategory value.

meterId

public String meterId()

Get the meterId property: The unique identifier of the resource.

Returns:

the meterId value.

meterName

public String meterName()

Get the meterName property: The name of the meter, within the given meter category.

Returns:

the meterName value.

meterRates

public Map<String,Double> meterRates()

Get the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.

Returns:

the meterRates value.

meterRegion

public String meterRegion()

Get the meterRegion property: The region in which the Azure service is available.

Returns:

the meterRegion value.

meterSubCategory

public String meterSubCategory()

Get the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..

Returns:

the meterSubCategory value.

meterTags

public List<String> meterTags()

Get the meterTags property: Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party.

Returns:

the meterTags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.

Returns:

the unit value.

Applies to