Interface GetQueryResultsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<GetQueryResultsResponse.Builder,GetQueryResultsResponse>,SdkBuilder<GetQueryResultsResponse.Builder,GetQueryResultsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetQueryResultsResponse
public static interface GetQueryResultsResponse.Builder extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<GetQueryResultsResponse.Builder,GetQueryResultsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetQueryResultsResponse.BuildererrorMessage(String errorMessage)The error message returned if a query failed.GetQueryResultsResponse.BuildernextToken(String nextToken)A token you can use to get the next page of query results.GetQueryResultsResponse.BuilderqueryResultRows(Collection<? extends Collection<? extends Map<String,String>>> queryResultRows)Contains the individual event results of the query.GetQueryResultsResponse.BuilderqueryResultRows(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.GetQueryResultsResponse.BuilderqueryStatistics(QueryStatistics queryStatistics)Shows the count of query results.GetQueryResultsResponse.BuilderqueryStatus(String queryStatus)The status of the query.GetQueryResultsResponse.BuilderqueryStatus(QueryStatus queryStatus)The status of the query.-
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
queryStatus
GetQueryResultsResponse.Builder queryStatus(String 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,QueryStatus
-
queryStatus
GetQueryResultsResponse.Builder queryStatus(QueryStatus 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,QueryStatus
-
queryStatistics
GetQueryResultsResponse.Builder queryStatistics(QueryStatistics 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:
queryStatistics(QueryStatistics)
-
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
GetQueryResultsResponse.Builder nextToken(String 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
GetQueryResultsResponse.Builder errorMessage(String 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.
-
-