Class UsageAggregationInner
java.lang.Object
com.azure.resourcemanager.commerce.fluent.models.UsageAggregationInner
Describes the usageAggregation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: Unique Id for the usage aggregate.Get the infoFields property: Key-value pairs of instance details (legacy format).Get the instanceData property: Key-value pairs of instance details represented as a string.Get the meterCategory property: Category of the consumed resource.meterId()
Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).Get the meterName property: Friendly name of the resource being consumed.Get the meterRegion property: Region of the meterId used for billing purposes.Get the meterSubCategory property: Sub-category of the consumed resource.name()
Get the name property: Name of the usage aggregate.quantity()
Get the quantity property: The amount of the resource consumption that occurred in this time frame.Get the subscriptionId property: The subscription identifier for the Azure user.type()
Get the type property: Type of the resource being returned.unit()
Get the unit property: The unit in which the usage for this resource is being counted, e.g.Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.void
validate()
Validates the instance.Set the id property: Unique Id for the usage aggregate.withInfoFields
(InfoField infoFields) Set the infoFields property: Key-value pairs of instance details (legacy format).withInstanceData
(String instanceData) Set the instanceData property: Key-value pairs of instance details represented as a string.withMeterCategory
(String meterCategory) Set the meterCategory property: Category of the consumed resource.withMeterId
(String meterId) Set the meterId property: Unique ID for the resource that was consumed (aka ResourceID).withMeterName
(String meterName) Set the meterName property: Friendly name of the resource being consumed.withMeterRegion
(String meterRegion) Set the meterRegion property: Region of the meterId used for billing purposes.withMeterSubCategory
(String meterSubCategory) Set the meterSubCategory property: Sub-category of the consumed resource.Set the name property: Name of the usage aggregate.withQuantity
(Float quantity) Set the quantity property: The amount of the resource consumption that occurred in this time frame.withSubscriptionId
(UUID subscriptionId) Set the subscriptionId property: The subscription identifier for the Azure user.Set the type property: Type of the resource being returned.Set the unit property: The unit in which the usage for this resource is being counted, e.g.withUsageEndTime
(OffsetDateTime usageEndTime) Set the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.withUsageStartTime
(OffsetDateTime usageStartTime) Set the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.
-
Constructor Details
-
UsageAggregationInner
public UsageAggregationInner()Creates an instance of UsageAggregationInner class.
-
-
Method Details
-
id
Get the id property: Unique Id for the usage aggregate.- Returns:
- the id value.
-
withId
Set the id property: Unique Id for the usage aggregate.- Parameters:
id
- the id value to set.- Returns:
- the UsageAggregationInner object itself.
-
name
Get the name property: Name of the usage aggregate.- Returns:
- the name value.
-
withName
Set the name property: Name of the usage aggregate.- Parameters:
name
- the name value to set.- Returns:
- the UsageAggregationInner object itself.
-
type
Get the type property: Type of the resource being returned.- Returns:
- the type value.
-
withType
Set the type property: Type of the resource being returned.- Parameters:
type
- the type value to set.- Returns:
- the UsageAggregationInner object itself.
-
subscriptionId
Get the subscriptionId property: The subscription identifier for the Azure user.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: The subscription identifier for the Azure user.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the UsageAggregationInner object itself.
-
meterId
Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).- Returns:
- the meterId value.
-
withMeterId
Set the meterId property: Unique ID for the resource that was consumed (aka ResourceID).- Parameters:
meterId
- the meterId value to set.- Returns:
- the UsageAggregationInner object itself.
-
usageStartTime
Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.- Returns:
- the usageStartTime value.
-
withUsageStartTime
Set the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.- Parameters:
usageStartTime
- the usageStartTime value to set.- Returns:
- the UsageAggregationInner object itself.
-
usageEndTime
Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.- Returns:
- the usageEndTime value.
-
withUsageEndTime
Set the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.- Parameters:
usageEndTime
- the usageEndTime value to set.- Returns:
- the UsageAggregationInner object itself.
-
quantity
Get the quantity property: The amount of the resource consumption that occurred in this time frame.- Returns:
- the quantity value.
-
withQuantity
Set the quantity property: The amount of the resource consumption that occurred in this time frame.- Parameters:
quantity
- the quantity value to set.- Returns:
- the UsageAggregationInner object itself.
-
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.
-
withUnit
Set the unit property: The unit in which the usage for this resource is being counted, e.g. Hours, GB.- Parameters:
unit
- the unit value to set.- Returns:
- the UsageAggregationInner object itself.
-
meterName
Get the meterName property: Friendly name of the resource being consumed.- Returns:
- the meterName value.
-
withMeterName
Set the meterName property: Friendly name of the resource being consumed.- Parameters:
meterName
- the meterName value to set.- Returns:
- the UsageAggregationInner object itself.
-
meterCategory
Get the meterCategory property: Category of the consumed resource.- Returns:
- the meterCategory value.
-
withMeterCategory
Set the meterCategory property: Category of the consumed resource.- Parameters:
meterCategory
- the meterCategory value to set.- Returns:
- the UsageAggregationInner object itself.
-
meterSubCategory
Get the meterSubCategory property: Sub-category of the consumed resource.- Returns:
- the meterSubCategory value.
-
withMeterSubCategory
Set the meterSubCategory property: Sub-category of the consumed resource.- Parameters:
meterSubCategory
- the meterSubCategory value to set.- Returns:
- the UsageAggregationInner object itself.
-
meterRegion
Get the meterRegion property: Region of the meterId used for billing purposes.- Returns:
- the meterRegion value.
-
withMeterRegion
Set the meterRegion property: Region of the meterId used for billing purposes.- Parameters:
meterRegion
- the meterRegion value to set.- Returns:
- the UsageAggregationInner object itself.
-
infoFields
Get the infoFields property: Key-value pairs of instance details (legacy format).- Returns:
- the infoFields value.
-
withInfoFields
Set the infoFields property: Key-value pairs of instance details (legacy format).- Parameters:
infoFields
- the infoFields value to set.- Returns:
- the UsageAggregationInner object itself.
-
instanceData
Get the instanceData property: Key-value pairs of instance details represented as a string.- Returns:
- the instanceData value.
-
withInstanceData
Set the instanceData property: Key-value pairs of instance details represented as a string.- Parameters:
instanceData
- the instanceData value to set.- Returns:
- the UsageAggregationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-