Interface BranchBackend.Builder

  • Method Details

    • url

      The URL of the branch's backend.

      Parameters:
      url - The URL of the branch's backend.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      BranchBackend.Builder status(String status)

      The lifecycle status of the branch. Absent only when the status isn't one that this API recognizes.

      Parameters:
      status - The lifecycle status of the branch. Absent only when the status isn't one that this API recognizes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The lifecycle status of the branch. Absent only when the status isn't one that this API recognizes.

      Parameters:
      status - The lifecycle status of the branch. Absent only when the status isn't one that this API recognizes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • databaseConfig

      BranchBackend.Builder databaseConfig(BranchDatabaseConfiguration databaseConfig)

      The database settings that are in effect on the branch's database cluster. These are the settings that the most recent deployment applied, or the cluster's defaults if no deployment has set any. A deployment that changes them completes only after they are applied. They can differ from the environment's Backend.Database settings, which take effect at the next deployment. Absent before the branch has its own database cluster.

      Parameters:
      databaseConfig - The database settings that are in effect on the branch's database cluster. These are the settings that the most recent deployment applied, or the cluster's defaults if no deployment has set any. A deployment that changes them completes only after they are applied. They can differ from the environment's Backend.Database settings, which take effect at the next deployment. Absent before the branch has its own database cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • databaseConfig

      default BranchBackend.Builder databaseConfig(Consumer<BranchDatabaseConfiguration.Builder> databaseConfig)

      The database settings that are in effect on the branch's database cluster. These are the settings that the most recent deployment applied, or the cluster's defaults if no deployment has set any. A deployment that changes them completes only after they are applied. They can differ from the environment's Backend.Database settings, which take effect at the next deployment. Absent before the branch has its own database cluster.

      This is a convenience method that creates an instance of the BranchDatabaseConfiguration.Builder avoiding the need to create one manually via BranchDatabaseConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to databaseConfig(BranchDatabaseConfiguration).

      Parameters:
      databaseConfig - a consumer that will call methods on BranchDatabaseConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • auth

      The authentication settings of the branch's live deployment, as a JSON document. These can differ from the environment's Backend.Auth settings, which take effect at the next deployment. Absent when the live deployment's configuration has no authentication settings, or when no deployment with backend settings has gone live.

      Parameters:
      auth - The authentication settings of the branch's live deployment, as a JSON document. These can differ from the environment's Backend.Auth settings, which take effect at the next deployment. Absent when the live deployment's configuration has no authentication settings, or when no deployment with backend settings has gone live.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • databaseUsage

      BranchBackend.Builder databaseUsage(BranchDatabaseUsage databaseUsage)

      The latest usage sample of the branch's database. Absent before the first sample, or for a branch that was created by RestoreBranch.

      Parameters:
      databaseUsage - The latest usage sample of the branch's database. Absent before the first sample, or for a branch that was created by RestoreBranch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • databaseUsage

      default BranchBackend.Builder databaseUsage(Consumer<BranchDatabaseUsage.Builder> databaseUsage)

      The latest usage sample of the branch's database. Absent before the first sample, or for a branch that was created by RestoreBranch.

      This is a convenience method that creates an instance of the BranchDatabaseUsage.Builder avoiding the need to create one manually via BranchDatabaseUsage.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to databaseUsage(BranchDatabaseUsage).

      Parameters:
      databaseUsage - a consumer that will call methods on BranchDatabaseUsage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • databaseConnection

      BranchBackend.Builder databaseConnection(BranchDatabaseConnection databaseConnection)

      The connection details for the branch's database. Absent when connections aren't available for the branch, or before the branch has a database.

      Parameters:
      databaseConnection - The connection details for the branch's database. Absent when connections aren't available for the branch, or before the branch has a database.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • databaseConnection

      default BranchBackend.Builder databaseConnection(Consumer<BranchDatabaseConnection.Builder> databaseConnection)

      The connection details for the branch's database. Absent when connections aren't available for the branch, or before the branch has a database.

      This is a convenience method that creates an instance of the BranchDatabaseConnection.Builder avoiding the need to create one manually via BranchDatabaseConnection.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to databaseConnection(BranchDatabaseConnection).

      Parameters:
      databaseConnection - a consumer that will call methods on BranchDatabaseConnection.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: