Class BatchExecuteStatementRequest

    • 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.
      • resultFormat

        public final ResultFormatString resultFormat()

        The data format of the result of the SQL statement. If no format is specified, the default is JSON.

        If the service returns an enum value that is not available in the current SDK version, resultFormat will return ResultFormatString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resultFormatAsString().

        Returns:
        The data format of the result of the SQL statement. If no format is specified, the default is JSON.
        See Also:
        ResultFormatString
      • resultFormatAsString

        public final String resultFormatAsString()

        The data format of the result of the SQL statement. If no format is specified, the default is JSON.

        If the service returns an enum value that is not available in the current SDK version, resultFormat will return ResultFormatString.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from resultFormatAsString().

        Returns:
        The data format of the result of the SQL statement. If no format is specified, the default is JSON.
        See Also:
        ResultFormatString
      • 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.
      • sessionId

        public final String sessionId()

        The session identifier of the query.

        Returns:
        The session identifier of the query.
      • sessionKeepAliveSeconds

        public final Integer sessionKeepAliveSeconds()

        The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.

        Returns:
        The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.
      • hasSqls

        public final boolean hasSqls()
        For responses, this returns true if the service returned a value for the Sqls 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.
      • sqls

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

        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 hasSqls() method.

        Returns:
        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> 
      • statementName

        public final String statementName()

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

        Returns:
        The name of the SQL statements. You can name the SQL statements when you create them 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 statements run.

        Returns:
        A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
      • 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