Class DatabaseConnectionProperties

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.DatabaseConnectionProperties

public final class DatabaseConnectionProperties extends Object
DatabaseConnection resource specific properties.
  • Constructor Details

    • DatabaseConnectionProperties

      public DatabaseConnectionProperties()
      Creates an instance of DatabaseConnectionProperties class.
  • Method Details

    • resourceId

      public String resourceId()
      Get the resourceId property: The resource id of the database.
      Returns:
      the resourceId value.
    • withResourceId

      public DatabaseConnectionProperties withResourceId(String resourceId)
      Set the resourceId property: The resource id of the database.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the DatabaseConnectionProperties object itself.
    • 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.
    • withConnectionIdentity

      public DatabaseConnectionProperties 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 DatabaseConnectionProperties object itself.
    • connectionString

      public String connectionString()
      Get the connectionString property: The connection string to use to connect to the database.
      Returns:
      the connectionString value.
    • withConnectionString

      public DatabaseConnectionProperties 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 DatabaseConnectionProperties object itself.
    • region

      public String region()
      Get the region property: The region of the database resource.
      Returns:
      the region value.
    • withRegion

      public DatabaseConnectionProperties withRegion(String region)
      Set the region property: The region of the database resource.
      Parameters:
      region - the region value to set.
      Returns:
      the DatabaseConnectionProperties object itself.
    • configurationFiles

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

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.