Class ConnStringInfo
java.lang.Object
com.azure.resourcemanager.appservice.models.ConnStringInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnStringInfo>
public final class ConnStringInfo
extends Object
implements com.azure.json.JsonSerializable<ConnStringInfo>
Database connection string information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: Connection string value.static ConnStringInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnStringInfo from the JsonReader.name()
Get the name property: Name of connection string.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Type of database.void
validate()
Validates the instance.withConnectionString
(String connectionString) Set the connectionString property: Connection string value.Set the name property: Name of connection string.withType
(ConnectionStringType type) Set the type property: Type of database.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
-
ConnStringInfo
public ConnStringInfo()Creates an instance of ConnStringInfo class.
-
-
Method Details
-
name
Get the name property: Name of connection string.- Returns:
- the name value.
-
withName
Set the name property: Name of connection string.- Parameters:
name
- the name value to set.- Returns:
- the ConnStringInfo object itself.
-
connectionString
Get the connectionString property: Connection string value.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: Connection string value.- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the ConnStringInfo object itself.
-
type
Get the type property: Type of database.- Returns:
- the type value.
-
withType
Set the type property: Type of database.- Parameters:
type
- the type value to set.- Returns:
- the ConnStringInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ConnStringInfo>
- Throws:
IOException
-
fromJson
Reads an instance of ConnStringInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ConnStringInfo 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 ConnStringInfo.
-