Class NameProperty

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

public final class NameProperty extends Object implements com.azure.json.JsonSerializable<NameProperty>
Name property for quota usage.
  • Constructor Details

    • NameProperty

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

    • value

      public String value()
      Get the value property: Name value.
      Returns:
      the value value.
    • withValue

      public NameProperty withValue(String value)
      Set the value property: Name value.
      Parameters:
      value - the value value to set.
      Returns:
      the NameProperty object itself.
    • localizedValue

      public String localizedValue()
      Get the localizedValue property: Localized name.
      Returns:
      the localizedValue value.
    • withLocalizedValue

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

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