Interface GetRecommendationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetRecommendationResponse.Builder,
,GetRecommendationResponse> CostOptimizationHubResponse.Builder
,SdkBuilder<GetRecommendationResponse.Builder,
,GetRecommendationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetRecommendationResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe account that the recommendation is for.actionType
(String actionType) The type of action you can take by adopting the recommendation.actionType
(ActionType actionType) The type of action you can take by adopting the recommendation.costCalculationLookbackPeriodInDays
(Integer costCalculationLookbackPeriodInDays) The lookback period used to calculate cost impact for a recommendation.currencyCode
(String currencyCode) The currency code used for the recommendation.currentResourceDetails
(Consumer<ResourceDetails.Builder> currentResourceDetails) The details for the resource.currentResourceDetails
(ResourceDetails currentResourceDetails) The details for the resource.currentResourceType
(String currentResourceType) The type of resource.currentResourceType
(ResourceType currentResourceType) The type of resource.estimatedMonthlyCost
(Double estimatedMonthlyCost) The estimated monthly cost of the current resource.estimatedMonthlySavings
(Double estimatedMonthlySavings) The estimated monthly savings amount for the recommendation.estimatedSavingsOverCostCalculationLookbackPeriod
(Double estimatedSavingsOverCostCalculationLookbackPeriod) The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.estimatedSavingsPercentage
(Double estimatedSavingsPercentage) The estimated savings percentage relative to the total cost over the cost calculation lookback period.implementationEffort
(String implementationEffort) The effort required to implement the recommendation.implementationEffort
(ImplementationEffort implementationEffort) The effort required to implement the recommendation.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The time when the recommendation was last generated.recommendationId
(String recommendationId) The ID for the recommendation.recommendationLookbackPeriodInDays
(Integer recommendationLookbackPeriodInDays) The lookback period that's used to generate the recommendation.recommendedResourceDetails
(Consumer<ResourceDetails.Builder> recommendedResourceDetails) The details about the recommended resource.recommendedResourceDetails
(ResourceDetails recommendedResourceDetails) The details about the recommended resource.recommendedResourceType
(String recommendedResourceType) The resource type of the recommendation.recommendedResourceType
(ResourceType recommendedResourceType) The resource type of the recommendation.The Amazon Web Services Region of the resource.resourceArn
(String resourceArn) The Amazon Resource Name (ARN) of the resource.resourceId
(String resourceId) The unique identifier for the resource.restartNeeded
(Boolean restartNeeded) Whether or not implementing the recommendation requires a restart.rollbackPossible
(Boolean rollbackPossible) Whether or not implementing the recommendation can be rolled back.The source of the recommendation.The source of the recommendation.tags
(Collection<Tag> tags) A list of tags associated with the resource for which the recommendation exists.tags
(Consumer<Tag.Builder>... tags) A list of tags associated with the resource for which the recommendation exists.A list of tags associated with the resource for which the recommendation exists.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costoptimizationhub.model.CostOptimizationHubResponse.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
-
recommendationId
The ID for the recommendation.
- Parameters:
recommendationId
- The ID for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.
- Parameters:
resourceId
- The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
The Amazon Resource Name (ARN) of the resource.
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The account that the recommendation is for.
- Parameters:
accountId
- The account that the recommendation is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
The currency code used for the recommendation.
- Parameters:
currencyCode
- The currency code used for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationLookbackPeriodInDays
GetRecommendationResponse.Builder recommendationLookbackPeriodInDays(Integer recommendationLookbackPeriodInDays) The lookback period that's used to generate the recommendation.
- Parameters:
recommendationLookbackPeriodInDays
- The lookback period that's used to generate the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costCalculationLookbackPeriodInDays
GetRecommendationResponse.Builder costCalculationLookbackPeriodInDays(Integer costCalculationLookbackPeriodInDays) The lookback period used to calculate cost impact for a recommendation.
- Parameters:
costCalculationLookbackPeriodInDays
- The lookback period used to calculate cost impact for a recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedSavingsPercentage
The estimated savings percentage relative to the total cost over the cost calculation lookback period.
- Parameters:
estimatedSavingsPercentage
- The estimated savings percentage relative to the total cost over the cost calculation lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedSavingsOverCostCalculationLookbackPeriod
GetRecommendationResponse.Builder estimatedSavingsOverCostCalculationLookbackPeriod(Double estimatedSavingsOverCostCalculationLookbackPeriod) The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.
- Parameters:
estimatedSavingsOverCostCalculationLookbackPeriod
- The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceType
The type of resource.
- Parameters:
currentResourceType
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentResourceType
The type of resource.
- Parameters:
currentResourceType
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedResourceType
The resource type of the recommendation.
- Parameters:
recommendedResourceType
- The resource type of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedResourceType
The resource type of the recommendation.
- Parameters:
recommendedResourceType
- The resource type of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
region
The Amazon Web Services Region of the resource.
- Parameters:
region
- The Amazon Web Services Region of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source of the recommendation.
- Parameters:
source
- The source of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source of the recommendation.
- Parameters:
source
- The source of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastRefreshTimestamp
The time when the recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The time when the recommendation was last generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
The estimated monthly savings amount for the recommendation.
- Parameters:
estimatedMonthlySavings
- The estimated monthly savings amount for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlyCost
The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.
- Parameters:
estimatedMonthlyCost
- The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
implementationEffort
The effort required to implement the recommendation.
- Parameters:
implementationEffort
- The effort required to implement the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
implementationEffort
The effort required to implement the recommendation.
- Parameters:
implementationEffort
- The effort required to implement the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
restartNeeded
Whether or not implementing the recommendation requires a restart.
- Parameters:
restartNeeded
- Whether or not implementing the recommendation requires a restart.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionType
The type of action you can take by adopting the recommendation.
- Parameters:
actionType
- The type of action you can take by adopting the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionType
The type of action you can take by adopting the recommendation.
- Parameters:
actionType
- The type of action you can take by adopting the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rollbackPossible
Whether or not implementing the recommendation can be rolled back.
- Parameters:
rollbackPossible
- Whether or not implementing the recommendation can be rolled back.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceDetails
The details for the resource.
- Parameters:
currentResourceDetails
- The details for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceDetails
default GetRecommendationResponse.Builder currentResourceDetails(Consumer<ResourceDetails.Builder> currentResourceDetails) The details for the resource.
This is a convenience method that creates an instance of theResourceDetails.Builder
avoiding the need to create one manually viaResourceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentResourceDetails(ResourceDetails)
.- Parameters:
currentResourceDetails
- a consumer that will call methods onResourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedResourceDetails
GetRecommendationResponse.Builder recommendedResourceDetails(ResourceDetails recommendedResourceDetails) The details about the recommended resource.
- Parameters:
recommendedResourceDetails
- The details about the recommended resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedResourceDetails
default GetRecommendationResponse.Builder recommendedResourceDetails(Consumer<ResourceDetails.Builder> recommendedResourceDetails) The details about the recommended resource.
This is a convenience method that creates an instance of theResourceDetails.Builder
avoiding the need to create one manually viaResourceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendedResourceDetails(ResourceDetails)
.- Parameters:
recommendedResourceDetails
- a consumer that will call methods onResourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of tags associated with the resource for which the recommendation exists.
- Parameters:
tags
- A list of tags associated with the resource for which the recommendation exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags associated with the resource for which the recommendation exists.
- Parameters:
tags
- A list of tags associated with the resource for which the recommendation exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags associated with the resource for which the recommendation exists.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-