Class ConfigServerSettingsErrorRecord

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

public final class ConfigServerSettingsErrorRecord extends Object implements com.azure.json.JsonSerializable<ConfigServerSettingsErrorRecord>
Error record of the config server settings.
  • Constructor Details

    • ConfigServerSettingsErrorRecord

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

    • name

      public String name()
      Get the name property: The name of the config server settings error record.
      Returns:
      the name value.
    • withName

      public ConfigServerSettingsErrorRecord withName(String name)
      Set the name property: The name of the config server settings error record.
      Parameters:
      name - the name value to set.
      Returns:
      the ConfigServerSettingsErrorRecord object itself.
    • uri

      public String uri()
      Get the uri property: The uri of the config server settings error record.
      Returns:
      the uri value.
    • withUri

      Set the uri property: The uri of the config server settings error record.
      Parameters:
      uri - the uri value to set.
      Returns:
      the ConfigServerSettingsErrorRecord object itself.
    • messages

      public List<String> messages()
      Get the messages property: The detail error messages of the record.
      Returns:
      the messages value.
    • withMessages

      public ConfigServerSettingsErrorRecord withMessages(List<String> messages)
      Set the messages property: The detail error messages of the record.
      Parameters:
      messages - the messages value to set.
      Returns:
      the ConfigServerSettingsErrorRecord 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<ConfigServerSettingsErrorRecord>
      Throws:
      IOException
    • fromJson

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