Interface GetQueryResultsResponse.Builder

    • Method Detail

      • results

        GetQueryResultsResponse.Builder results​(Collection<? extends Collection<ResultField>> results)

        The log events that matched the query criteria during the most recent time it ran.

        The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

        Parameters:
        results - The log events that matched the query criteria during the most recent time it ran.

        The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

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

        GetQueryResultsResponse.Builder results​(Collection<ResultField>... results)

        The log events that matched the query criteria during the most recent time it ran.

        The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

        Parameters:
        results - The log events that matched the query criteria during the most recent time it ran.

        The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

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

        GetQueryResultsResponse.Builder statistics​(QueryStatistics statistics)

        Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.

        Parameters:
        statistics - Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        GetQueryResultsResponse.Builder status​(String status)

        The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

        Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

        Parameters:
        status - The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

        Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryStatus, QueryStatus
      • status

        GetQueryResultsResponse.Builder status​(QueryStatus status)

        The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

        Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

        Parameters:
        status - The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

        Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryStatus, QueryStatus
      • encryptionKey

        GetQueryResultsResponse.Builder encryptionKey​(String encryptionKey)

        If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that's used to encrypt the query results when StartQuery stores them.

        Parameters:
        encryptionKey - If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that's used to encrypt the query results when StartQuery stores them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.