Interface GetQueryResultsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<GetQueryResultsResponse.Builder,,GetQueryResultsResponse> SdkBuilder<GetQueryResultsResponse.Builder,,GetQueryResultsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetQueryResultsResponse
-
Method Summary
Modifier and TypeMethodDescriptionencryptionKey(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.results(Collection<? extends Collection<ResultField>> results) The log events that matched the query criteria during the most recent time it ran.results(Collection<ResultField>... results) The log events that matched the query criteria during the most recent time it ran.default GetQueryResultsResponse.Builderstatistics(Consumer<QueryStatistics.Builder> 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.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.The status of the most recent running of the query.status(QueryStatus status) The status of the most recent running of the query.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
results
The log events that matched the query criteria during the most recent time it ran.
The
resultsvalue 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 offield/valuepairs.- Parameters:
results- The log events that matched the query criteria during the most recent time it ran.The
resultsvalue 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 offield/valuepairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The log events that matched the query criteria during the most recent time it ran.
The
resultsvalue 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 offield/valuepairs.- Parameters:
results- The log events that matched the query criteria during the most recent time it ran.The
resultsvalue 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 offield/valuepairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
This is a convenience method that creates an instance of theQueryStatistics.Builderavoiding the need to create one manually viaQueryStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatistics(QueryStatistics).- Parameters:
statistics- a consumer that will call methods onQueryStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the most recent running of the query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled,Timeout, andUnknown.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 areCancelled,Complete,Failed,Running,Scheduled,Timeout, andUnknown.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:
-
status
The status of the most recent running of the query. Possible values are
Cancelled,Complete,Failed,Running,Scheduled,Timeout, andUnknown.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 areCancelled,Complete,Failed,Running,Scheduled,Timeout, andUnknown.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:
-
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.
-