Interface GetAnomaliesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetAnomaliesRequest.Builder,GetAnomaliesRequest>,CostExplorerRequest.Builder,SdkBuilder<GetAnomaliesRequest.Builder,GetAnomaliesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetAnomaliesRequest
public static interface GetAnomaliesRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<GetAnomaliesRequest.Builder,GetAnomaliesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetAnomaliesRequest.BuilderdateInterval(Consumer<AnomalyDateInterval.Builder> dateInterval)Assigns the start and end dates for retrieving cost anomalies.GetAnomaliesRequest.BuilderdateInterval(AnomalyDateInterval dateInterval)Assigns the start and end dates for retrieving cost anomalies.GetAnomaliesRequest.Builderfeedback(String feedback)Filters anomaly results by the feedback field on the anomaly object.GetAnomaliesRequest.Builderfeedback(AnomalyFeedbackType feedback)Filters anomaly results by the feedback field on the anomaly object.GetAnomaliesRequest.BuildermaxResults(Integer maxResults)The number of entries a paginated response contains.GetAnomaliesRequest.BuildermonitorArn(String monitorArn)Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).GetAnomaliesRequest.BuildernextPageToken(String nextPageToken)The token to retrieve the next set of results.GetAnomaliesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)GetAnomaliesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default GetAnomaliesRequest.BuildertotalImpact(Consumer<TotalImpactFilter.Builder> totalImpact)Filters anomaly results by the total impact field on the anomaly object.GetAnomaliesRequest.BuildertotalImpact(TotalImpactFilter totalImpact)Filters anomaly results by the total impact field on the anomaly object.-
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.costexplorer.model.CostExplorerRequest.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 Detail
-
monitorArn
GetAnomaliesRequest.Builder monitorArn(String 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
GetAnomaliesRequest.Builder dateInterval(AnomalyDateInterval 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:
dateInterval(AnomalyDateInterval)
-
feedback
GetAnomaliesRequest.Builder feedback(String 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:
AnomalyFeedbackType,AnomalyFeedbackType
-
feedback
GetAnomaliesRequest.Builder feedback(AnomalyFeedbackType 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:
AnomalyFeedbackType,AnomalyFeedbackType
-
totalImpact
GetAnomaliesRequest.Builder totalImpact(TotalImpactFilter 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
default GetAnomaliesRequest.Builder totalImpact(Consumer<TotalImpactFilter.Builder> 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:
totalImpact(TotalImpactFilter)
-
nextPageToken
GetAnomaliesRequest.Builder nextPageToken(String 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
GetAnomaliesRequest.Builder maxResults(Integer 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetAnomaliesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-