Interface SearchResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SearchResult.Builder,,SearchResult> SdkBuilder<SearchResult.Builder,,SearchResult> SdkPojo
- Enclosing class:
SearchResult
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the dataset that contains the matching data.default SearchResult.BuilderendTimestamp(Consumer<TimeInNanos.Builder> endTimestamp) The end of the matching time-series segment, in nanoseconds since the Unix epoch.endTimestamp(TimeInNanos endTimestamp) The end of the matching time-series segment, in nanoseconds since the Unix epoch.The relevance score of this result.The identifier of the search that produced this result.default SearchResult.BuilderstartTimestamp(Consumer<TimeInNanos.Builder> startTimestamp) The start of the matching time-series segment, in nanoseconds since the Unix epoch.startTimestamp(TimeInNanos startTimestamp) The start of the matching time-series segment, in nanoseconds since the Unix epoch.timeSeriesId(String timeSeriesId) The identifier of the time series that contains the matching data.default SearchResult.BuildertopTimestamp(Consumer<TimeInNanos.Builder> topTimestamp) The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.topTimestamp(TimeInNanos topTimestamp) The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.workspaceName(String workspaceName) The name of the workspace the search ran against.Methods 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, sdkFields
-
Method Details
-
searchId
The identifier of the search that produced this result.
- Parameters:
searchId- The identifier of the search that produced this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceName
The name of the workspace the search ran against.
- Parameters:
workspaceName- The name of the workspace the search ran against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetId
The identifier of the dataset that contains the matching data.
- Parameters:
datasetId- The identifier of the dataset that contains the matching data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeSeriesId
The identifier of the time series that contains the matching data.
- Parameters:
timeSeriesId- The identifier of the time series that contains the matching data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimestamp
The start of the matching time-series segment, in nanoseconds since the Unix epoch.
- Parameters:
startTimestamp- The start of the matching time-series segment, in nanoseconds since the Unix epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimestamp
The start of the matching time-series segment, in nanoseconds since the Unix epoch.
This is a convenience method that creates an instance of theTimeInNanos.Builderavoiding the need to create one manually viaTimeInNanos.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartTimestamp(TimeInNanos).- Parameters:
startTimestamp- a consumer that will call methods onTimeInNanos.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
endTimestamp
The end of the matching time-series segment, in nanoseconds since the Unix epoch.
- Parameters:
endTimestamp- The end of the matching time-series segment, in nanoseconds since the Unix epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestamp
The end of the matching time-series segment, in nanoseconds since the Unix epoch.
This is a convenience method that creates an instance of theTimeInNanos.Builderavoiding the need to create one manually viaTimeInNanos.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendTimestamp(TimeInNanos).- Parameters:
endTimestamp- a consumer that will call methods onTimeInNanos.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
topTimestamp
The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.
- Parameters:
topTimestamp- The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topTimestamp
The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.
This is a convenience method that creates an instance of theTimeInNanos.Builderavoiding the need to create one manually viaTimeInNanos.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totopTimestamp(TimeInNanos).- Parameters:
topTimestamp- a consumer that will call methods onTimeInNanos.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
score
The relevance score of this result. Higher scores indicate a stronger match.
- Parameters:
score- The relevance score of this result. Higher scores indicate a stronger match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-