Interface DescribeQueryResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeQueryResponse.Builder,,DescribeQueryResponse> IoTSiteWiseResponse.Builder,SdkBuilder<DescribeQueryResponse.Builder,,DescribeQueryResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeQueryResponse
-
Method Summary
Modifier and TypeMethodDescriptioncompletedAt(Instant completedAt) The date and time when the query reached a terminal state, in Unix epoch time.errorMessage(String errorMessage) A human-readable error description.The unique identifier for the query execution.default DescribeQueryResponse.Builderstatistics(Consumer<QueryStatistics.Builder> statistics) The query execution statistics.statistics(QueryStatistics statistics) The query execution statistics.The current query status.status(QueryStatus status) The current query status.submittedAt(Instant submittedAt) The date and time when the query was submitted, in Unix epoch time.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
queryId
The unique identifier for the query execution.
- Parameters:
queryId- The unique identifier for the query execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current query status.
- Parameters:
status- The current query status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current query status.
- Parameters:
status- The current query status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
submittedAt
The date and time when the query was submitted, in Unix epoch time.
- Parameters:
submittedAt- The date and time when the query was submitted, in Unix epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedAt
The date and time when the query reached a terminal state, in Unix epoch time. This field is present when the query status is COMPLETED, FAILED, or CANCELED.
- Parameters:
completedAt- The date and time when the query reached a terminal state, in Unix epoch time. This field is present when the query status is COMPLETED, FAILED, or CANCELED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
The query execution statistics. This field is present when the query status is COMPLETED.
- Parameters:
statistics- The query execution statistics. This field is present when the query status is COMPLETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
The query execution statistics. This field is present when the query status is COMPLETED.
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:
-
errorMessage
A human-readable error description. This field is present when the query status is FAILED.
- Parameters:
errorMessage- A human-readable error description. This field is present when the query status is FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-