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

public final class MeterInfo extends Object
Detailed information about the meter.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MeterInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the effectiveDate property: Indicates the date from which the meter rate is effective.
    Get the includedQuantity property: The resource quantity that is included in the offer at no cost.
    Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..
    Get the meterId property: The unique identifier of the resource.
    Get the meterName property: The name of the meter, within the given meter category.
    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.
    Get the meterRegion property: The region in which the Azure service is available.
    Get the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..
    Get the meterTags property: Provides additional meter data.
    Get the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.
    void
    Validates the instance.
    Set the effectiveDate property: Indicates the date from which the meter rate is effective.
    withIncludedQuantity(Float includedQuantity)
    Set the includedQuantity property: The resource quantity that is included in the offer at no cost.
    withMeterCategory(String meterCategory)
    Set the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..
    withMeterId(UUID meterId)
    Set the meterId property: The unique identifier of the resource.
    withMeterName(String meterName)
    Set the meterName property: The name of the meter, within the given meter category.
    Set 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.
    withMeterRegion(String meterRegion)
    Set the meterRegion property: The region in which the Azure service is available.
    withMeterSubCategory(String meterSubCategory)
    Set the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..
    Set the meterTags property: Provides additional meter data.
    Set the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MeterInfo

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

    • meterId

      public UUID meterId()
      Get the meterId property: The unique identifier of the resource.
      Returns:
      the meterId value.
    • withMeterId

      public MeterInfo withMeterId(UUID meterId)
      Set the meterId property: The unique identifier of the resource.
      Parameters:
      meterId - the meterId value to set.
      Returns:
      the MeterInfo object itself.
    • meterName

      public String meterName()
      Get the meterName property: The name of the meter, within the given meter category.
      Returns:
      the meterName value.
    • withMeterName

      public MeterInfo withMeterName(String meterName)
      Set the meterName property: The name of the meter, within the given meter category.
      Parameters:
      meterName - the meterName value to set.
      Returns:
      the MeterInfo object itself.
    • meterCategory

      public String meterCategory()
      Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..
      Returns:
      the meterCategory value.
    • withMeterCategory

      public MeterInfo withMeterCategory(String meterCategory)
      Set the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..
      Parameters:
      meterCategory - the meterCategory value to set.
      Returns:
      the MeterInfo object itself.
    • 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.
    • withMeterSubCategory

      public MeterInfo withMeterSubCategory(String meterSubCategory)
      Set the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..
      Parameters:
      meterSubCategory - the meterSubCategory value to set.
      Returns:
      the MeterInfo object itself.
    • 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.
    • withUnit

      public MeterInfo withUnit(String unit)
      Set the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.
      Parameters:
      unit - the unit value to set.
      Returns:
      the MeterInfo object itself.
    • 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.
    • withMeterTags

      public MeterInfo withMeterTags(List<String> meterTags)
      Set the meterTags property: Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party.
      Parameters:
      meterTags - the meterTags value to set.
      Returns:
      the MeterInfo object itself.
    • meterRegion

      public String meterRegion()
      Get the meterRegion property: The region in which the Azure service is available.
      Returns:
      the meterRegion value.
    • withMeterRegion

      public MeterInfo withMeterRegion(String meterRegion)
      Set the meterRegion property: The region in which the Azure service is available.
      Parameters:
      meterRegion - the meterRegion value to set.
      Returns:
      the MeterInfo object itself.
    • meterRates

      public Map<String,Float> 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.
    • withMeterRates

      public MeterInfo withMeterRates(Map<String,Float> meterRates)
      Set 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.
      Parameters:
      meterRates - the meterRates value to set.
      Returns:
      the MeterInfo object itself.
    • effectiveDate

      public OffsetDateTime effectiveDate()
      Get the effectiveDate property: Indicates the date from which the meter rate is effective.
      Returns:
      the effectiveDate value.
    • withEffectiveDate

      public MeterInfo withEffectiveDate(OffsetDateTime effectiveDate)
      Set the effectiveDate property: Indicates the date from which the meter rate is effective.
      Parameters:
      effectiveDate - the effectiveDate value to set.
      Returns:
      the MeterInfo object itself.
    • includedQuantity

      public Float 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.
    • withIncludedQuantity

      public MeterInfo withIncludedQuantity(Float includedQuantity)
      Set the includedQuantity property: The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged.
      Parameters:
      includedQuantity - the includedQuantity value to set.
      Returns:
      the MeterInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.