Interface GetAnomaliesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetAnomaliesRequest.Builder,,GetAnomaliesRequest> CostExplorerRequest.Builder,SdkBuilder<GetAnomaliesRequest.Builder,,GetAnomaliesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetAnomaliesRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetAnomaliesRequest.BuilderdateInterval(Consumer<AnomalyDateInterval.Builder> dateInterval) Assigns the start and end dates for retrieving cost anomalies.dateInterval(AnomalyDateInterval dateInterval) Assigns the start and end dates for retrieving cost anomalies.Filters anomaly results by the feedback field on the anomaly object.feedback(AnomalyFeedbackType feedback) Filters anomaly results by the feedback field on the anomaly object.maxResults(Integer maxResults) The number of entries a paginated response contains.monitorArn(String monitorArn) Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).nextPageToken(String nextPageToken) The token to retrieve the next set of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default GetAnomaliesRequest.BuildertotalImpact(Consumer<TotalImpactFilter.Builder> totalImpact) Filters anomaly results by the total impact field on the anomaly object.totalImpact(TotalImpactFilter totalImpact) Filters anomaly results by the total impact field on the anomaly object.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.costexplorer.model.CostExplorerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
monitorArn
Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).
- Parameters:
monitorArn- Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateInterval
Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an
AnomalyEndDatein the specified time range.- Parameters:
dateInterval- Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have anAnomalyEndDatein the specified time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateInterval
default GetAnomaliesRequest.Builder dateInterval(Consumer<AnomalyDateInterval.Builder> dateInterval) Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an
This is a convenience method that creates an instance of theAnomalyEndDatein the specified time range.AnomalyDateInterval.Builderavoiding the need to create one manually viaAnomalyDateInterval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todateInterval(AnomalyDateInterval).- Parameters:
dateInterval- a consumer that will call methods onAnomalyDateInterval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feedback
Filters anomaly results by the feedback field on the anomaly object.
- Parameters:
feedback- Filters anomaly results by the feedback field on the anomaly object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feedback
Filters anomaly results by the feedback field on the anomaly object.
- Parameters:
feedback- Filters anomaly results by the feedback field on the anomaly object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalImpact
Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies
GREATER_THAN 200.00to retrieve anomalies, with an estimated dollar impact greater than 200.- Parameters:
totalImpact- Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomaliesGREATER_THAN 200.00to retrieve anomalies, with an estimated dollar impact greater than 200.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalImpact
Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies
This is a convenience method that creates an instance of theGREATER_THAN 200.00to retrieve anomalies, with an estimated dollar impact greater than 200.TotalImpactFilter.Builderavoiding the need to create one manually viaTotalImpactFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalImpact(TotalImpactFilter).- Parameters:
totalImpact- a consumer that will call methods onTotalImpactFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextPageToken
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
- Parameters:
nextPageToken- The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The number of entries a paginated response contains.
- Parameters:
maxResults- The number of entries a paginated response contains.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetAnomaliesRequest.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
GetAnomaliesRequest.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.
-