Class UsageAggregationInner

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

public final class UsageAggregationInner extends Object
Describes the usageAggregation.
  • Constructor Details

    • UsageAggregationInner

      public UsageAggregationInner()
      Creates an instance of UsageAggregationInner class.
  • Method Details

    • id

      public String id()
      Get the id property: Unique Id for the usage aggregate.
      Returns:
      the id value.
    • withId

      public UsageAggregationInner withId(String id)
      Set the id property: Unique Id for the usage aggregate.
      Parameters:
      id - the id value to set.
      Returns:
      the UsageAggregationInner object itself.
    • name

      public String name()
      Get the name property: Name of the usage aggregate.
      Returns:
      the name value.
    • withName

      public UsageAggregationInner withName(String name)
      Set the name property: Name of the usage aggregate.
      Parameters:
      name - the name value to set.
      Returns:
      the UsageAggregationInner object itself.
    • type

      public String type()
      Get the type property: Type of the resource being returned.
      Returns:
      the type value.
    • withType

      public UsageAggregationInner withType(String type)
      Set the type property: Type of the resource being returned.
      Parameters:
      type - the type value to set.
      Returns:
      the UsageAggregationInner object itself.
    • subscriptionId

      public UUID subscriptionId()
      Get the subscriptionId property: The subscription identifier for the Azure user.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public UsageAggregationInner withSubscriptionId(UUID subscriptionId)
      Set the subscriptionId property: The subscription identifier for the Azure user.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the UsageAggregationInner object itself.
    • meterId

      public String meterId()
      Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).
      Returns:
      the meterId value.
    • withMeterId

      public UsageAggregationInner withMeterId(String meterId)
      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

      public OffsetDateTime usageStartTime()
      Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.
      Returns:
      the usageStartTime value.
    • withUsageStartTime

      public UsageAggregationInner withUsageStartTime(OffsetDateTime usageStartTime)
      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

      public OffsetDateTime usageEndTime()
      Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.
      Returns:
      the usageEndTime value.
    • withUsageEndTime

      public UsageAggregationInner withUsageEndTime(OffsetDateTime usageEndTime)
      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

      public Float quantity()
      Get the quantity property: The amount of the resource consumption that occurred in this time frame.
      Returns:
      the quantity value.
    • withQuantity

      public UsageAggregationInner withQuantity(Float quantity)
      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

      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.
    • withUnit

      public UsageAggregationInner withUnit(String unit)
      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

      public String meterName()
      Get the meterName property: Friendly name of the resource being consumed.
      Returns:
      the meterName value.
    • withMeterName

      public UsageAggregationInner withMeterName(String meterName)
      Set the meterName property: Friendly name of the resource being consumed.
      Parameters:
      meterName - the meterName value to set.
      Returns:
      the UsageAggregationInner object itself.
    • meterCategory

      public String meterCategory()
      Get the meterCategory property: Category of the consumed resource.
      Returns:
      the meterCategory value.
    • withMeterCategory

      public UsageAggregationInner withMeterCategory(String meterCategory)
      Set the meterCategory property: Category of the consumed resource.
      Parameters:
      meterCategory - the meterCategory value to set.
      Returns:
      the UsageAggregationInner object itself.
    • meterSubCategory

      public String meterSubCategory()
      Get the meterSubCategory property: Sub-category of the consumed resource.
      Returns:
      the meterSubCategory value.
    • withMeterSubCategory

      public UsageAggregationInner withMeterSubCategory(String meterSubCategory)
      Set the meterSubCategory property: Sub-category of the consumed resource.
      Parameters:
      meterSubCategory - the meterSubCategory value to set.
      Returns:
      the UsageAggregationInner object itself.
    • meterRegion

      public String meterRegion()
      Get the meterRegion property: Region of the meterId used for billing purposes.
      Returns:
      the meterRegion value.
    • withMeterRegion

      public UsageAggregationInner withMeterRegion(String meterRegion)
      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

      public InfoField infoFields()
      Get the infoFields property: Key-value pairs of instance details (legacy format).
      Returns:
      the infoFields value.
    • withInfoFields

      public UsageAggregationInner withInfoFields(InfoField infoFields)
      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

      public String instanceData()
      Get the instanceData property: Key-value pairs of instance details represented as a string.
      Returns:
      the instanceData value.
    • withInstanceData

      public UsageAggregationInner withInstanceData(String instanceData)
      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.