DatabaseConnectionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. DatabaseConnectionInner
- com.
- com.
- com.
public final class DatabaseConnectionInner
extends ProxyOnlyResource
Static Site Database Connection resource.
Constructor Summary
Constructor | Description |
---|---|
DatabaseConnectionInner() |
Creates an instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Static |
configurationFiles()
Get the configuration |
String |
connectionIdentity()
Get the connection |
String |
connectionString()
Get the connection |
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
region()
Get the region property: The region of the database resource. |
String |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Database |
withConnectionIdentity(String connectionIdentity)
Set the connection |
Database |
withConnectionString(String connectionString)
Set the connection |
Database |
withKind(String kind)
Set the kind property: Kind of resource. |
Database |
withRegion(String region)
Set the region property: The region of the database resource. |
Database |
withResourceId(String resourceId)
Set the resource |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
DatabaseConnectionInner
public DatabaseConnectionInner()
Creates an instance of DatabaseConnectionInner class.
Method Details
configurationFiles
public List
Get the configurationFiles property: A list of configuration files associated with this database connection.
Returns:
connectionIdentity
public String 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:
connectionString
public String connectionString()
Get the connectionString property: The connection string to use to connect to the database.
Returns:
fromJson
public static DatabaseConnectionInner fromJson(JsonReader jsonReader)
Reads an instance of DatabaseConnectionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DatabaseConnectionInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DatabaseConnectionInner.name()Returns:
region
public String region()
Get the region property: The region of the database resource.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource id of the database.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DatabaseConnectionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DatabaseConnectionInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
DatabaseConnectionInner.validate()withConnectionIdentity
public DatabaseConnectionInner withConnectionIdentity(String connectionIdentity)
Set 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.
Parameters:
Returns:
withConnectionString
public DatabaseConnectionInner withConnectionString(String connectionString)
Set the connectionString property: The connection string to use to connect to the database.
Parameters:
Returns:
withKind
public DatabaseConnectionInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
DatabaseConnectionInner.withKind(String kind)Parameters:
withRegion
public DatabaseConnectionInner withRegion(String region)
Set the region property: The region of the database resource.
Parameters:
Returns:
withResourceId
public DatabaseConnectionInner withResourceId(String resourceId)
Set the resourceId property: The resource id of the database.
Parameters:
Returns:
Applies to
Azure SDK for Java