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 ofResourceCostobjects 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 ofResourceCostobjects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.costs(ServiceResourceCost... costs) An array ofResourceCostobjects 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
copyMethods inherited from interface software.amazon.awssdk.services.devopsguru.model.DevOpsGuruResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaCostEstimationResourceCollectionFilter.builder().When the
Consumercompletes,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
ONGOINGis returned. If it is finished, the statusCOMPLETEDis returned.- Parameters:
status- The status of creating this cost estimate. If it's still in progress, the statusONGOINGis returned. If it is finished, the statusCOMPLETEDis 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
ONGOINGis returned. If it is finished, the statusCOMPLETEDis returned.- Parameters:
status- The status of creating this cost estimate. If it's still in progress, the statusONGOINGis returned. If it is finished, the statusCOMPLETEDis returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costs
An array of
ResourceCostobjects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Parameters:
costs- An array ofResourceCostobjects 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
ResourceCostobjects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.- Parameters:
costs- An array ofResourceCostobjects 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 theResourceCostobjects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.ServiceResourceCost.Builderavoiding the need to create one manually viaServiceResourceCost.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCostEstimationTimeRange.builder().When the
Consumercompletes,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
Costsobject 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 theCostsobject 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.
-