Interface DatabaseInput.Builder

    • Method Detail

      • name

        DatabaseInput.Builder name​(String name)

        The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.

        Parameters:
        name - The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        DatabaseInput.Builder description​(String description)

        A description of the database.

        Parameters:
        description - A description of the database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locationUri

        DatabaseInput.Builder locationUri​(String locationUri)

        The location of the database (for example, an HDFS path).

        Parameters:
        locationUri - The location of the database (for example, an HDFS path).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parameters

        DatabaseInput.Builder parameters​(Map<String,​String> parameters)

        These key-value pairs define parameters and properties of the database.

        These key-value pairs define parameters and properties of the database.

        Parameters:
        parameters - These key-value pairs define parameters and properties of the database.

        These key-value pairs define parameters and properties of the database.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createTableDefaultPermissions

        DatabaseInput.Builder createTableDefaultPermissions​(Collection<PrincipalPermissions> createTableDefaultPermissions)

        Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.

        Parameters:
        createTableDefaultPermissions - Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createTableDefaultPermissions

        DatabaseInput.Builder createTableDefaultPermissions​(PrincipalPermissions... createTableDefaultPermissions)

        Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.

        Parameters:
        createTableDefaultPermissions - Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createTableDefaultPermissions

        DatabaseInput.Builder createTableDefaultPermissions​(Consumer<PrincipalPermissions.Builder>... createTableDefaultPermissions)

        Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #createTableDefaultPermissions(List).

        Parameters:
        createTableDefaultPermissions - a consumer that will call methods on PrincipalPermissions.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #createTableDefaultPermissions(java.util.Collection)
      • targetDatabase

        DatabaseInput.Builder targetDatabase​(DatabaseIdentifier targetDatabase)

        A DatabaseIdentifier structure that describes a target database for resource linking.

        Parameters:
        targetDatabase - A DatabaseIdentifier structure that describes a target database for resource linking.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • federatedDatabase

        DatabaseInput.Builder federatedDatabase​(FederatedDatabase federatedDatabase)

        A FederatedDatabase structure that references an entity outside the Glue Data Catalog.

        Parameters:
        federatedDatabase - A FederatedDatabase structure that references an entity outside the Glue Data Catalog.
        Returns:
        Returns a reference to this object so that method calls can be chained together.