Class BillingMeterProperties

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.BillingMeterProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<BillingMeterProperties>

public final class BillingMeterProperties extends Object implements com.azure.json.JsonSerializable<BillingMeterProperties>
BillingMeter resource specific properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the billingLocation property: Azure Location of billable resource.
    Get the friendlyName property: Friendly name of the meter.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BillingMeterProperties from the JsonReader.
    Get the meterId property: Meter GUID onboarded in Commerce.
    Get the multiplier property: Meter Multiplier.
    Get the osType property: App Service OS type meter used for.
    Get the resourceType property: App Service ResourceType meter used for.
    Get the shortName property: Short Name from App Service Azure pricing Page.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • meterId

      public String meterId()
      Get the meterId property: Meter GUID onboarded in Commerce.
      Returns:
      the meterId value.
    • billingLocation

      public String billingLocation()
      Get the billingLocation property: Azure Location of billable resource.
      Returns:
      the billingLocation value.
    • shortName

      public String shortName()
      Get the shortName property: Short Name from App Service Azure pricing Page.
      Returns:
      the shortName value.
    • friendlyName

      public String friendlyName()
      Get the friendlyName property: Friendly name of the meter.
      Returns:
      the friendlyName value.
    • resourceType

      public String resourceType()
      Get the resourceType property: App Service ResourceType meter used for.
      Returns:
      the resourceType value.
    • osType

      public String osType()
      Get the osType property: App Service OS type meter used for.
      Returns:
      the osType value.
    • multiplier

      public Double multiplier()
      Get the multiplier property: Meter Multiplier.
      Returns:
      the multiplier value.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BillingMeterProperties>
      Throws:
      IOException
    • fromJson

      public static BillingMeterProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BillingMeterProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BillingMeterProperties 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 BillingMeterProperties.