Interface AppBackend.Builder

  • Method Details

    • migrationsDirectory

      AppBackend.Builder migrationsDirectory(String migrationsDirectory)

      The directory that contains the migration files, relative to the root of the source.

      Parameters:
      migrationsDirectory - The directory that contains the migration files, relative to the root of the source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      AppBackend.Builder status(String status)

      The status of the app's backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can't be read. An absent status doesn't indicate a failure.

      Parameters:
      status - The status of the app's backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can't be read. An absent status doesn't indicate a failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the app's backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can't be read. An absent status doesn't indicate a failure.

      Parameters:
      status - The status of the app's backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can't be read. An absent status doesn't indicate a failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • databaseUsage

      AppBackend.Builder databaseUsage(BackendDatabaseUsage databaseUsage)

      The usage of the backend's databases. Absent when the usage can't be read.

      Parameters:
      databaseUsage - The usage of the backend's databases. Absent when the usage can't be read.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • databaseUsage

      default AppBackend.Builder databaseUsage(Consumer<BackendDatabaseUsage.Builder> databaseUsage)

      The usage of the backend's databases. Absent when the usage can't be read.

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

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

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