Interface ListInsightsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListInsightsRequest.Builder,,ListInsightsRequest> OpenSearchRequest.Builder,SdkBuilder<ListInsightsRequest.Builder,,ListInsightsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListInsightsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListInsightsRequest.Builderentity(Consumer<InsightEntity.Builder> entity) The entity for which to list insights.entity(InsightEntity entity) The entity for which to list insights.maxResults(Integer maxResults) An optional parameter that specifies the maximum number of results to return.If your initialListInsightsoperation returns aNextToken, include the returnedNextTokenin subsequentListInsightsoperations to retrieve the next page of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The sort order for the results.sortOrder(InsightSortOrder sortOrder) The sort order for the results.default ListInsightsRequest.BuildertimeRange(Consumer<InsightTimeRange.Builder> timeRange) The time range for filtering insights, specified as epoch millisecond timestamps.timeRange(InsightTimeRange timeRange) The time range for filtering insights, specified as epoch millisecond timestamps.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
entity
The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.
- Parameters:
entity- The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entity
The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.
This is a convenience method that creates an instance of theInsightEntity.Builderavoiding the need to create one manually viaInsightEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentity(InsightEntity).- Parameters:
entity- a consumer that will call methods onInsightEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeRange
The time range for filtering insights, specified as epoch millisecond timestamps.
- Parameters:
timeRange- The time range for filtering insights, specified as epoch millisecond timestamps.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRange
The time range for filtering insights, specified as epoch millisecond timestamps.
This is a convenience method that creates an instance of theInsightTimeRange.Builderavoiding the need to create one manually viaInsightTimeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeRange(InsightTimeRange).- Parameters:
timeRange- a consumer that will call methods onInsightTimeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort order for the results. Possible values are
ASC(ascending) andDESC(descending).- Parameters:
sortOrder- The sort order for the results. Possible values areASC(ascending) andDESC(descending).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort order for the results. Possible values are
ASC(ascending) andDESC(descending).- Parameters:
sortOrder- The sort order for the results. Possible values areASC(ascending) andDESC(descending).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
An optional parameter that specifies the maximum number of results to return. You can use
NextTokento get the next page of results. Valid values are 1 to 500.- Parameters:
maxResults- An optional parameter that specifies the maximum number of results to return. You can useNextTokento get the next page of results. Valid values are 1 to 500.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
If your initial
ListInsightsoperation returns aNextToken, include the returnedNextTokenin subsequentListInsightsoperations to retrieve the next page of results.- Parameters:
nextToken- If your initialListInsightsoperation returns aNextToken, include the returnedNextTokenin subsequentListInsightsoperations to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListInsightsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListInsightsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-