Interface GetCostAndUsageComparisonsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetCostAndUsageComparisonsRequest.Builder,
,GetCostAndUsageComparisonsRequest> CostExplorerRequest.Builder
,SdkBuilder<GetCostAndUsageComparisonsRequest.Builder,
,GetCostAndUsageComparisonsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetCostAndUsageComparisonsRequest
-
Method Summary
Modifier and TypeMethodDescriptionbaselineTimePeriod
(Consumer<DateInterval.Builder> baselineTimePeriod) The reference time period for comparison.baselineTimePeriod
(DateInterval baselineTimePeriod) The reference time period for comparison.billingViewArn
(String billingViewArn) The Amazon Resource Name (ARN) that uniquely identifies a specific billing view.comparisonTimePeriod
(Consumer<DateInterval.Builder> comparisonTimePeriod) The comparison time period for analysis.comparisonTimePeriod
(DateInterval comparisonTimePeriod) The comparison time period for analysis.filter
(Consumer<Expression.Builder> filter) Sets the value of the Filter property for this object.filter
(Expression filter) Sets the value of the Filter property for this object.groupBy
(Collection<GroupDefinition> groupBy) You can group results using the attributesDIMENSION
,TAG
, andCOST_CATEGORY
.groupBy
(Consumer<GroupDefinition.Builder>... groupBy) You can group results using the attributesDIMENSION
,TAG
, andCOST_CATEGORY
.groupBy
(GroupDefinition... groupBy) You can group results using the attributesDIMENSION
,TAG
, andCOST_CATEGORY
.maxResults
(Integer maxResults) The maximum number of results that are returned for the request.metricForComparison
(String metricForComparison) The cost and usage metric to compare.nextPageToken
(String nextPageToken) The token to retrieve the next set of paginated results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFieldNameToField, sdkFields
-
Method Details
-
billingViewArn
The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.
- Parameters:
billingViewArn
- The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineTimePeriod
The reference time period for comparison. This time period serves as the baseline against which other cost and usage data will be compared. The interval must start and end on the first day of a month, with a duration of exactly one month.
- Parameters:
baselineTimePeriod
- The reference time period for comparison. This time period serves as the baseline against which other cost and usage data will be compared. The interval must start and end on the first day of a month, with a duration of exactly one month.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineTimePeriod
default GetCostAndUsageComparisonsRequest.Builder baselineTimePeriod(Consumer<DateInterval.Builder> baselineTimePeriod) The reference time period for comparison. This time period serves as the baseline against which other cost and usage data will be compared. The interval must start and end on the first day of a month, with a duration of exactly one month.
This is a convenience method that creates an instance of theDateInterval.Builder
avoiding the need to create one manually viaDateInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobaselineTimePeriod(DateInterval)
.- Parameters:
baselineTimePeriod
- a consumer that will call methods onDateInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonTimePeriod
The comparison time period for analysis. This time period's cost and usage data will be compared against the baseline time period. The interval must start and end on the first day of a month, with a duration of exactly one month.
- Parameters:
comparisonTimePeriod
- The comparison time period for analysis. This time period's cost and usage data will be compared against the baseline time period. The interval must start and end on the first day of a month, with a duration of exactly one month.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonTimePeriod
default GetCostAndUsageComparisonsRequest.Builder comparisonTimePeriod(Consumer<DateInterval.Builder> comparisonTimePeriod) The comparison time period for analysis. This time period's cost and usage data will be compared against the baseline time period. The interval must start and end on the first day of a month, with a duration of exactly one month.
This is a convenience method that creates an instance of theDateInterval.Builder
avoiding the need to create one manually viaDateInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomparisonTimePeriod(DateInterval)
.- Parameters:
comparisonTimePeriod
- a consumer that will call methods onDateInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricForComparison
The cost and usage metric to compare. Valid values are
AmortizedCost
,BlendedCost
,NetAmortizedCost
,NetUnblendedCost
,NormalizedUsageAmount
,UnblendedCost
, andUsageQuantity
.- Parameters:
metricForComparison
- The cost and usage metric to compare. Valid values areAmortizedCost
,BlendedCost
,NetAmortizedCost
,NetUnblendedCost
,NormalizedUsageAmount
,UnblendedCost
, andUsageQuantity
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Sets the value of the Filter property for this object.- Parameters:
filter
- The new value for the Filter property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Sets the value of the Filter property for this object. This is a convenience method that creates an instance of theExpression.Builder
avoiding the need to create one manually viaExpression.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(Expression)
.- Parameters:
filter
- a consumer that will call methods onExpression.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupBy
You can group results using the attributes
DIMENSION
,TAG
, andCOST_CATEGORY
.- Parameters:
groupBy
- You can group results using the attributesDIMENSION
,TAG
, andCOST_CATEGORY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
You can group results using the attributes
DIMENSION
,TAG
, andCOST_CATEGORY
.- Parameters:
groupBy
- You can group results using the attributesDIMENSION
,TAG
, andCOST_CATEGORY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
You can group results using the attributes
This is a convenience method that creates an instance of theDIMENSION
,TAG
, andCOST_CATEGORY
.GroupDefinition.Builder
avoiding the need to create one manually viaGroupDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupBy(List<GroupDefinition>)
.- Parameters:
groupBy
- a consumer that will call methods onGroupDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results that are returned for the request.
- Parameters:
maxResults
- The maximum number of results that are returned for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextPageToken
The token to retrieve the next set of paginated results.
- Parameters:
nextPageToken
- The token to retrieve the next set of paginated results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetCostAndUsageComparisonsRequest.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
GetCostAndUsageComparisonsRequest.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.
-