Interface GetQueryResultsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<GetQueryResultsResponse.Builder,,GetQueryResultsResponse> SdkBuilder<GetQueryResultsResponse.Builder,,GetQueryResultsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetQueryResultsResponse
@Mutable
@NotThreadSafe
public static interface GetQueryResultsResponse.Builder
extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<GetQueryResultsResponse.Builder,GetQueryResultsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionerrorMessage(String errorMessage) The error message returned if a query failed.A token you can use to get the next page of query results.queryResultRows(Collection<? extends Collection<? extends Map<String, String>>> queryResultRows) Contains the individual event results of the query.queryResultRows(Collection<? extends Map<String, String>>... queryResultRows) Contains the individual event results of the query.default GetQueryResultsResponse.BuilderqueryStatistics(Consumer<QueryStatistics.Builder> queryStatistics) Shows the count of query results.queryStatistics(QueryStatistics queryStatistics) Shows the count of query results.queryStatus(String queryStatus) The status of the query.queryStatus(QueryStatus queryStatus) The status of the query.Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
queryStatus
The status of the query. Values include
QUEUED,RUNNING,FINISHED,FAILED,TIMED_OUT, orCANCELLED.- Parameters:
queryStatus- The status of the query. Values includeQUEUED,RUNNING,FINISHED,FAILED,TIMED_OUT, orCANCELLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryStatus
The status of the query. Values include
QUEUED,RUNNING,FINISHED,FAILED,TIMED_OUT, orCANCELLED.- Parameters:
queryStatus- The status of the query. Values includeQUEUED,RUNNING,FINISHED,FAILED,TIMED_OUT, orCANCELLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryStatistics
Shows the count of query results.
- Parameters:
queryStatistics- Shows the count of query results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStatistics
default GetQueryResultsResponse.Builder queryStatistics(Consumer<QueryStatistics.Builder> queryStatistics) Shows the count of query results.
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 toqueryStatistics(QueryStatistics).- Parameters:
queryStatistics- 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:
-
queryResultRows
GetQueryResultsResponse.Builder queryResultRows(Collection<? extends Collection<? extends Map<String, String>>> queryResultRows) Contains the individual event results of the query.
- Parameters:
queryResultRows- Contains the individual event results of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryResultRows
GetQueryResultsResponse.Builder queryResultRows(Collection<? extends Map<String, String>>... queryResultRows) Contains the individual event results of the query.
- Parameters:
queryResultRows- Contains the individual event results of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A token you can use to get the next page of query results.
- Parameters:
nextToken- A token you can use to get the next page of query results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
The error message returned if a query failed.
- Parameters:
errorMessage- The error message returned if a query failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-