Interface GetCostEstimationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCostEstimationResponse.Builder,
,GetCostEstimationResponse> DevOpsGuruResponse.Builder
,SdkBuilder<GetCostEstimationResponse.Builder,
,GetCostEstimationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCostEstimationResponse
-
Method Summary
Modifier and TypeMethodDescriptioncosts
(Collection<ServiceResourceCost> costs) An array ofResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.costs
(Consumer<ServiceResourceCost.Builder>... costs) An array ofResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.costs
(ServiceResourceCost... costs) An array ofResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.The pagination token to use to retrieve the next page of results for this operation.resourceCollection
(Consumer<CostEstimationResourceCollectionFilter.Builder> resourceCollection) The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.resourceCollection
(CostEstimationResourceCollectionFilter resourceCollection) The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.The status of creating this cost estimate.status
(CostEstimationStatus status) The status of creating this cost estimate.timeRange
(Consumer<CostEstimationTimeRange.Builder> timeRange) The start and end time of the cost estimation.timeRange
(CostEstimationTimeRange timeRange) The start and end time of the cost estimation.The estimated monthly cost to analyze the Amazon Web Services resources.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.devopsguru.model.DevOpsGuruResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
resourceCollection
GetCostEstimationResponse.Builder resourceCollection(CostEstimationResourceCollectionFilter resourceCollection) The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.
- Parameters:
resourceCollection
- The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCollection
default GetCostEstimationResponse.Builder resourceCollection(Consumer<CostEstimationResourceCollectionFilter.Builder> resourceCollection) The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.
This is a convenience method that creates an instance of theCostEstimationResourceCollectionFilter.Builder
avoiding the need to create one manually viaCostEstimationResourceCollectionFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceCollection(CostEstimationResourceCollectionFilter)
.- Parameters:
resourceCollection
- a consumer that will call methods onCostEstimationResourceCollectionFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of creating this cost estimate. If it's still in progress, the status
ONGOING
is returned. If it is finished, the statusCOMPLETED
is returned.- Parameters:
status
- The status of creating this cost estimate. If it's still in progress, the statusONGOING
is returned. If it is finished, the statusCOMPLETED
is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of creating this cost estimate. If it's still in progress, the status
ONGOING
is returned. If it is finished, the statusCOMPLETED
is returned.- Parameters:
status
- The status of creating this cost estimate. If it's still in progress, the statusONGOING
is returned. If it is finished, the statusCOMPLETED
is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costs
An array of
ResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Parameters:
costs
- An array ofResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costs
An array of
ResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Parameters:
costs
- An array ofResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costs
An array of
This is a convenience method that creates an instance of theResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.ServiceResourceCost.Builder
avoiding the need to create one manually viaServiceResourceCost.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocosts(List<ServiceResourceCost>)
.- Parameters:
costs
- a consumer that will call methods onServiceResourceCost.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeRange
The start and end time of the cost estimation.
- Parameters:
timeRange
- The start and end time of the cost estimation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeRange
default GetCostEstimationResponse.Builder timeRange(Consumer<CostEstimationTimeRange.Builder> timeRange) The start and end time of the cost estimation.
This is a convenience method that creates an instance of theCostEstimationTimeRange.Builder
avoiding the need to create one manually viaCostEstimationTimeRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeRange(CostEstimationTimeRange)
.- Parameters:
timeRange
- a consumer that will call methods onCostEstimationTimeRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalCost
The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated costs to analyze each resource in the
Costs
object in this response.- Parameters:
totalCost
- The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated costs to analyze each resource in theCosts
object in this response.- 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 there are no more pages, this value is null.
- Parameters:
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-