UsageAggregationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.commerce.fluent.models.UsageAggregationInner

Implements

public final class UsageAggregationInner
implements JsonSerializable<UsageAggregationInner>

Describes the usageAggregation.

Method Summary

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

Reads an instance of UsageAggregationInner from the JsonReader.

String id()

Get the id property: Unique Id for the usage aggregate.

BinaryData infoFields()

Get the infoFields property: Key-value pairs of instance details (legacy format).

String instanceData()

Get the instanceData property: Key-value pairs of instance details represented as a string.

String meterCategory()

Get the meterCategory property: Category of the consumed resource.

String meterId()

Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).

String meterName()

Get the meterName property: Friendly name of the resource being consumed.

String meterRegion()

Get the meterRegion property: Region of the meterId used for billing purposes.

String meterSubCategory()

Get the meterSubCategory property: Sub-category of the consumed resource.

String name()

Get the name property: Name of the usage aggregate.

Double quantity()

Get the quantity property: The amount of the resource consumption that occurred in this time frame.

String subscriptionId()

Get the subscriptionId property: The subscription identifier for the Azure user.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource being returned.

String unit()

Get the unit property: The unit in which the usage for this resource is being counted, e.g.

OffsetDateTime usageEndTime()

Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.

OffsetDateTime usageStartTime()

Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.

Methods inherited from java.lang.Object

Method Details

fromJson

public static UsageAggregationInner fromJson(JsonReader jsonReader)

Reads an instance of UsageAggregationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Unique Id for the usage aggregate.

Returns:

the id value.

infoFields

public BinaryData infoFields()

Get the infoFields property: Key-value pairs of instance details (legacy format).

Returns:

the infoFields value.

instanceData

public String instanceData()

Get the instanceData property: Key-value pairs of instance details represented as a string.

Returns:

the instanceData value.

meterCategory

public String meterCategory()

Get the meterCategory property: Category of the consumed resource.

Returns:

the meterCategory value.

meterId

public String meterId()

Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).

Returns:

the meterId value.

meterName

public String meterName()

Get the meterName property: Friendly name of the resource being consumed.

Returns:

the meterName value.

meterRegion

public String meterRegion()

Get the meterRegion property: Region of the meterId used for billing purposes.

Returns:

the meterRegion value.

meterSubCategory

public String meterSubCategory()

Get the meterSubCategory property: Sub-category of the consumed resource.

Returns:

the meterSubCategory value.

name

public String name()

Get the name property: Name of the usage aggregate.

Returns:

the name value.

quantity

public Double quantity()

Get the quantity property: The amount of the resource consumption that occurred in this time frame.

Returns:

the quantity value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription identifier for the Azure user.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource being returned.

Returns:

the type value.

unit

public String unit()

Get the unit property: The unit in which the usage for this resource is being counted, e.g. Hours, GB.

Returns:

the unit value.

usageEndTime

public OffsetDateTime usageEndTime()

Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.

Returns:

the usageEndTime value.

usageStartTime

public OffsetDateTime usageStartTime()

Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.

Returns:

the usageStartTime value.

Applies to