Class ExecuteStatementRequest

    • Method Detail

      • clientToken

        public final String clientToken()

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

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

        public final String clusterIdentifier()

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

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

        public final String database()

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

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

        public final String dbUser()

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

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

        public final boolean hasParameters()
        For responses, this returns true if the service returned a value for the Parameters property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • parameters

        public final List<SqlParameter> parameters()

        The parameters for the SQL statement.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasParameters() method.

        Returns:
        The parameters for the SQL statement.
      • secretArn

        public final String secretArn()

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

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

        public final String sql()

        The SQL statement text to run.

        Returns:
        The SQL statement text to run.
      • statementName

        public final String statementName()

        The name of the SQL statement. You can name the SQL statement when you create it to identify the query.

        Returns:
        The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
      • withEvent

        public final Boolean withEvent()

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

        Returns:
        A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
      • workgroupName

        public final 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.

        Returns:
        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.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object