Interface BatchExecuteStatementRequest.Builder

    • Method Detail

      • clientToken

        BatchExecuteStatementRequest.Builder clientToken​(String clientToken)

        A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

        Parameters:
        clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clusterIdentifier

        BatchExecuteStatementRequest.Builder clusterIdentifier​(String clusterIdentifier)

        The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

        Parameters:
        clusterIdentifier - The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • database

        BatchExecuteStatementRequest.Builder database​(String database)

        The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

        Parameters:
        database - The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dbUser

        BatchExecuteStatementRequest.Builder dbUser​(String dbUser)

        The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

        Parameters:
        dbUser - The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • secretArn

        BatchExecuteStatementRequest.Builder secretArn​(String secretArn)

        The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

        Parameters:
        secretArn - The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sqls

        BatchExecuteStatementRequest.Builder sqls​(Collection<String> sqls)

        One or more SQL statements to run.

          The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.</p> 
         
        Parameters:
        sqls - One or more SQL statements to run.
         
                 The SQL statements are run as a single transaction. They run serially in the order of the
                array. Subsequent SQL statements don't start until the previous statement in the array completes. If
                any SQL statement fails, then because they are run as one transaction, all work is rolled
                back.</p>  @return Returns a reference to this object so that method calls can be chained
                together.
      • sqls

        BatchExecuteStatementRequest.Builder sqls​(String... sqls)

        One or more SQL statements to run.

          The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.</p> 
         
        Parameters:
        sqls - One or more SQL statements to run.
         
                 The SQL statements are run as a single transaction. They run serially in the order of the
                array. Subsequent SQL statements don't start until the previous statement in the array completes. If
                any SQL statement fails, then because they are run as one transaction, all work is rolled
                back.</p>  @return Returns a reference to this object so that method calls can be chained
                together.
      • statementName

        BatchExecuteStatementRequest.Builder statementName​(String statementName)

        The name of the SQL statements. You can name the SQL statements when you create them to identify the query.

        Parameters:
        statementName - The name of the SQL statements. You can name the SQL statements when you create them to identify the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEvent

        BatchExecuteStatementRequest.Builder withEvent​(Boolean withEvent)

        A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.

        Parameters:
        withEvent - A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workgroupName

        BatchExecuteStatementRequest.Builder workgroupName​(String workgroupName)

        The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

        Parameters:
        workgroupName - The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.