Class BillingMeterProperties

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

public final class BillingMeterProperties extends Object implements com.azure.json.JsonSerializable<BillingMeterProperties>
Revision resource specific properties.
  • Constructor Details

    • BillingMeterProperties

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

    • category

      public String category()
      Get the category property: Used to categorize billing meters.
      Returns:
      the category value.
    • withCategory

      public BillingMeterProperties withCategory(String category)
      Set the category property: Used to categorize billing meters.
      Parameters:
      category - the category value to set.
      Returns:
      the BillingMeterProperties object itself.
    • meterType

      public String meterType()
      Get the meterType property: Billing meter type.
      Returns:
      the meterType value.
    • withMeterType

      public BillingMeterProperties withMeterType(String meterType)
      Set the meterType property: Billing meter type.
      Parameters:
      meterType - the meterType value to set.
      Returns:
      the BillingMeterProperties object itself.
    • displayName

      public String displayName()
      Get the displayName property: The everyday name of the billing meter.
      Returns:
      the displayName value.
    • withDisplayName

      public BillingMeterProperties withDisplayName(String displayName)
      Set the displayName property: The everyday name of the billing meter.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the BillingMeterProperties object itself.
    • 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.