Interface ExecuteSqlRequest.Builder

  • Method Details

    • agentContextId

      ExecuteSqlRequest.Builder agentContextId(String agentContextId)

      The agent context that owns the connection, by ID or full ARN.

      Parameters:
      agentContextId - The agent context that owns the connection, by ID or full ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connectionId

      ExecuteSqlRequest.Builder connectionId(String connectionId)

      The connection to run against. Must be a GLUE_DATA_CATALOG connection linked to the agent context. Its access configuration (accessConfig) determines how AWS Context reads the tables.

      Parameters:
      connectionId - The connection to run against. Must be a GLUE_DATA_CATALOG connection linked to the agent context. Its access configuration (accessConfig) determines how AWS Context reads the tables.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • query

      The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see SqlQuery.

      Parameters:
      query - The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see SqlQuery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • query

      The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see SqlQuery.

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

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

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

      ExecuteSqlRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.