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.

String region()

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

String resourceId()

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

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 ProxyResource

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.

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.

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