DatabaseConnectionInner Class

public final class DatabaseConnectionInner
extends ProxyOnlyResource

Static Site Database Connection resource.

Constructor Summary

Constructor Description
DatabaseConnectionInner()

Creates an instance of DatabaseConnectionInner class.

Method Summary

Modifier and Type Method and Description
List<StaticSiteDatabaseConnectionConfigurationFileOverview> configurationFiles()

Get the configurationFiles property: A list of configuration files associated with this database connection.

String connectionIdentity()

Get the connectionIdentity property: If present, the identity is used in conjunction with connection string to connect to the database.

String connectionString()

Get the connectionString property: The connection string to use to connect to the database.

static DatabaseConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of DatabaseConnectionInner from the JsonReader.

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 resourceId property: The resource id of the database.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DatabaseConnectionInner withConnectionIdentity(String connectionIdentity)

Set the connectionIdentity property: If present, the identity is used in conjunction with connection string to connect to the database.

DatabaseConnectionInner withConnectionString(String connectionString)

Set the connectionString property: The connection string to use to connect to the database.

DatabaseConnectionInner withKind(String kind)

Set the kind property: Kind of resource.

DatabaseConnectionInner withRegion(String region)

Set the region property: The region of the database resource.

DatabaseConnectionInner withResourceId(String resourceId)

Set the resourceId property: The resource id of the database.

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 configurationFiles()

Get the configurationFiles property: A list of configuration files associated with this database connection.

Returns:

the configurationFiles value.

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:

the connectionIdentity value.

connectionString

public String connectionString()

Get the connectionString property: The connection string to use to connect to the database.

Returns:

the connectionString value.

fromJson

public static DatabaseConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of DatabaseConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseConnectionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DatabaseConnectionInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DatabaseConnectionInner.name()

Returns:

the name value.

region

public String region()

Get the region property: The region of the database resource.

Returns:

the region value.

resourceId

public String resourceId()

Get the resourceId property: The resource id of the database.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatabaseConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DatabaseConnectionInner.type()

Returns:

the type value.

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:

connectionIdentity - the connectionIdentity value to set.

Returns:

the DatabaseConnectionInner object itself.

withConnectionString

public DatabaseConnectionInner withConnectionString(String connectionString)

Set the connectionString property: The connection string to use to connect to the database.

Parameters:

connectionString - the connectionString value to set.

Returns:

the DatabaseConnectionInner object itself.

withKind

public DatabaseConnectionInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

DatabaseConnectionInner.withKind(String kind)

Parameters:

kind

withRegion

public DatabaseConnectionInner withRegion(String region)

Set the region property: The region of the database resource.

Parameters:

region - the region value to set.

Returns:

the DatabaseConnectionInner object itself.

withResourceId

public DatabaseConnectionInner withResourceId(String resourceId)

Set the resourceId property: The resource id of the database.

Parameters:

resourceId - the resourceId value to set.

Returns:

the DatabaseConnectionInner object itself.

Applies to