Interface ListAnomaliesForInsightRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListAnomaliesForInsightRequest.Builder,
,ListAnomaliesForInsightRequest> DevOpsGuruRequest.Builder
,SdkBuilder<ListAnomaliesForInsightRequest.Builder,
,ListAnomaliesForInsightRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListAnomaliesForInsightRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Web Services account.Specifies one or more service names that are used to list anomalies.filters
(ListAnomaliesForInsightFilters filters) Specifies one or more service names that are used to list anomalies.The ID of the insight.maxResults
(Integer maxResults) The maximum number of results to return with a single call.The pagination token to use to retrieve the next page of results for this operation.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.startTimeRange
(Consumer<StartTimeRange.Builder> startTimeRange) A time range used to specify when the requested anomalies started.startTimeRange
(StartTimeRange startTimeRange) A time range used to specify when the requested anomalies started.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.devopsguru.model.DevOpsGuruRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
insightId
The ID of the insight. The returned anomalies belong to this insight.
- Parameters:
insightId
- The ID of the insight. The returned anomalies belong to this insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimeRange
A time range used to specify when the requested anomalies started. All returned anomalies started during this time range.
- Parameters:
startTimeRange
- A time range used to specify when the requested anomalies started. All returned anomalies started during this time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimeRange
default ListAnomaliesForInsightRequest.Builder startTimeRange(Consumer<StartTimeRange.Builder> startTimeRange) A time range used to specify when the requested anomalies started. All returned anomalies started during this time range.
This is a convenience method that creates an instance of theStartTimeRange.Builder
avoiding the need to create one manually viaStartTimeRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostartTimeRange(StartTimeRange)
.- Parameters:
startTimeRange
- a consumer that will call methods onStartTimeRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.- Parameters:
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returnednextToken
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
- Parameters:
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The ID of the Amazon Web Services account.
- Parameters:
accountId
- The ID of the Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Specifies one or more service names that are used to list anomalies.
- Parameters:
filters
- Specifies one or more service names that are used to list anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
default ListAnomaliesForInsightRequest.Builder filters(Consumer<ListAnomaliesForInsightFilters.Builder> filters) Specifies one or more service names that are used to list anomalies.
This is a convenience method that creates an instance of theListAnomaliesForInsightFilters.Builder
avoiding the need to create one manually viaListAnomaliesForInsightFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(ListAnomaliesForInsightFilters)
.- Parameters:
filters
- a consumer that will call methods onListAnomaliesForInsightFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListAnomaliesForInsightRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListAnomaliesForInsightRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-