MeterDetailsResponse Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.MeterDetailsResponse

Implements

public final class MeterDetailsResponse
implements JsonSerializable<MeterDetailsResponse>

The properties of the meter detail.

Constructor Summary

Constructor Description
MeterDetailsResponse()

Creates an instance of MeterDetailsResponse class.

Method Summary

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

Reads an instance of MeterDetailsResponse from the JsonReader.

String meterCategory()

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

String meterName()

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

String meterSubCategory()

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

String serviceFamily()

Get the serviceFamily property: The service family.

JsonWriter toJson(JsonWriter jsonWriter)
String unitOfMeasure()

Get the unitOfMeasure property: The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

MeterDetailsResponse

public MeterDetailsResponse()

Creates an instance of MeterDetailsResponse class.

Method Details

fromJson

public static MeterDetailsResponse fromJson(JsonReader jsonReader)

Reads an instance of MeterDetailsResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

meterCategory

public String meterCategory()

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

Returns:

the meterCategory value.

meterName

public String meterName()

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

Returns:

the meterName value.

meterSubCategory

public String meterSubCategory()

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

Returns:

the meterSubCategory value.

serviceFamily

public String serviceFamily()

Get the serviceFamily property: The service family.

Returns:

the serviceFamily value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unitOfMeasure

public String unitOfMeasure()

Get the unitOfMeasure property: The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.

Returns:

the unitOfMeasure value.

validate

public void validate()

Validates the instance.

Applies to