Interface ListInsightsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListInsightsResponse.Builder,,ListInsightsResponse> OpenSearchResponse.Builder,SdkBuilder<ListInsightsResponse.Builder,,ListInsightsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListInsightsResponse
@Mutable
@NotThreadSafe
public static interface ListInsightsResponse.Builder
extends OpenSearchResponse.Builder, SdkPojo, CopyableBuilder<ListInsightsResponse.Builder,ListInsightsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninsights(Collection<Insight> insights) The list of insights returned for the specified entity.insights(Consumer<Insight.Builder>... insights) The list of insights returned for the specified entity.The list of insights returned for the specified entity.WhenNextTokenis returned, there are more results available.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchResponse.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
-
insights
The list of insights returned for the specified entity.
- Parameters:
insights- The list of insights returned for the specified entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insights
The list of insights returned for the specified entity.
- Parameters:
insights- The list of insights returned for the specified entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insights
The list of insights returned for the specified entity.
This is a convenience method that creates an instance of theInsight.Builderavoiding the need to create one manually viaInsight.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinsights(List<Insight>).- Parameters:
insights- a consumer that will call methods onInsight.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When
NextTokenis returned, there are more results available. The value ofNextTokenis a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.- Parameters:
nextToken- WhenNextTokenis returned, there are more results available. The value ofNextTokenis a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-