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 Summary
ConstructorsConstructorDescriptionCreates an instance of ConfigServerSettingsErrorRecord class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConfigServerSettingsErrorRecord from the JsonReader.messages()Get the messages property: The detail error messages of the record.name()Get the name property: The name of the config server settings error record.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uri()Get the uri property: The uri of the config server settings error record.voidvalidate()Validates the instance.withMessages(List<String> messages) Set the messages property: The detail error messages of the record.Set the name property: The name of the config server settings error record.Set the uri property: The uri of the config server settings error record.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConfigServerSettingsErrorRecord
public ConfigServerSettingsErrorRecord()Creates an instance of ConfigServerSettingsErrorRecord class.
-
-
Method Details
-
name
Get the name property: The name of the config server settings error record.- Returns:
- the name value.
-
withName
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
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
Get the messages property: The detail error messages of the record.- Returns:
- the messages value.
-
withMessages
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
- Specified by:
toJsonin interfacecom.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.
-