Class DatabaseConnectionOverview
java.lang.Object
com.azure.resourcemanager.appservice.models.DatabaseConnectionOverview
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseConnectionOverview>
public final class DatabaseConnectionOverview
extends Object
implements com.azure.json.JsonSerializable<DatabaseConnectionOverview>
Static Site Database Connection overview.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseConnectionOverview class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configurationFiles property: A list of configuration files associated with this database connection.Get the connectionIdentity property: If present, the identity is used in conjunction with connection string to connect to the database.static DatabaseConnectionOverview
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseConnectionOverview from the JsonReader.name()
Get the name property: If present, the name of this database connection resource.region()
Get the region property: The region of the database resource.Get the resourceId property: The resource id of the database.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.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
-
DatabaseConnectionOverview
public DatabaseConnectionOverview()Creates an instance of DatabaseConnectionOverview class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource id of the database.- Returns:
- the resourceId value.
-
connectionIdentity
Get the connectionIdentity property: If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.- Returns:
- the connectionIdentity value.
-
region
Get the region property: The region of the database resource.- Returns:
- the region value.
-
configurationFiles
Get the configurationFiles property: A list of configuration files associated with this database connection.- Returns:
- the configurationFiles value.
-
name
Get the name property: If present, the name of this database connection resource.- Returns:
- the name value.
-
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<DatabaseConnectionOverview>
- Throws:
IOException
-
fromJson
public static DatabaseConnectionOverview fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseConnectionOverview from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DatabaseConnectionOverview 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 DatabaseConnectionOverview.
-