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

public final class UsageName extends Object implements com.azure.json.JsonSerializable<UsageName>
The Usage Names.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static UsageName
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of UsageName from the JsonReader.
    Get the localizedValue property: The localized name of the resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the value property: The name of the resource.
    withLocalizedValue(String localizedValue)
    Set the localizedValue property: The localized name of the resource.
    Set the value property: The name of the resource.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • UsageName

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

    • value

      public String value()
      Get the value property: The name of the resource.
      Returns:
      the value value.
    • withValue

      public UsageName withValue(String value)
      Set the value property: The name of the resource.
      Parameters:
      value - the value value to set.
      Returns:
      the UsageName object itself.
    • localizedValue

      public String localizedValue()
      Get the localizedValue property: The localized name of the resource.
      Returns:
      the localizedValue value.
    • withLocalizedValue

      public UsageName withLocalizedValue(String localizedValue)
      Set the localizedValue property: The localized name of the resource.
      Parameters:
      localizedValue - the localizedValue value to set.
      Returns:
      the UsageName 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<UsageName>
      Throws:
      IOException
    • fromJson

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