Class ConfigServerProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.ConfigServerProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConfigServerProperties>
public final class ConfigServerProperties
extends Object
implements com.azure.json.JsonSerializable<ConfigServerProperties>
Config server git properties payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConfigServerProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configServer property: Settings of config server.error()Get the error property: Error when apply config server settings.static ConfigServerPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConfigServerProperties from the JsonReader.Get the provisioningState property: State of the config server.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConfigServer(ConfigServerSettings configServer) Set the configServer property: Settings of config server.Set the error property: Error when apply config server settings.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
-
ConfigServerProperties
public ConfigServerProperties()Creates an instance of ConfigServerProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: State of the config server.- Returns:
- the provisioningState value.
-
error
Get the error property: Error when apply config server settings.- Returns:
- the error value.
-
withError
Set the error property: Error when apply config server settings.- Parameters:
error- the error value to set.- Returns:
- the ConfigServerProperties object itself.
-
configServer
Get the configServer property: Settings of config server.- Returns:
- the configServer value.
-
withConfigServer
Set the configServer property: Settings of config server.- Parameters:
configServer- the configServer value to set.- Returns:
- the ConfigServerProperties 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<ConfigServerProperties>- Throws:
IOException
-
fromJson
public static ConfigServerProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConfigServerProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConfigServerProperties 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 ConfigServerProperties.
-