Interface Recommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Recommendation.Builder,
,Recommendation> SdkBuilder<Recommendation.Builder,
,Recommendation> SdkPojo
- Enclosing class:
Recommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe account to which the recommendation applies.actionType
(String actionType) The type of tasks that can be carried out by this action.currencyCode
(String currencyCode) The currency code used for the recommendation.currentResourceSummary
(String currentResourceSummary) Describes the current resource.currentResourceType
(String currentResourceType) The current resource type.estimatedMonthlyCost
(Double estimatedMonthlyCost) The estimated monthly cost of the current resource.estimatedMonthlySavings
(Double estimatedMonthlySavings) The estimated monthly savings amount for the 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.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.recommendedResourceSummary
(String recommendedResourceSummary) Describes the recommended resource.recommendedResourceType
(String recommendedResourceType) The recommended resource type.The Amazon Web Services Region of the resource.resourceArn
(String resourceArn) The Amazon Resource Name (ARN) for the recommendation.resourceId
(String resourceId) The resource ID for the recommendation.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 assigned to the recommendation.tags
(Consumer<Tag.Builder>... tags) A list of tags assigned to the recommendation.A list of tags assigned to the recommendation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
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.
-
accountId
The account to which the recommendation applies.
- Parameters:
accountId
- The account to which the recommendation applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
resourceId
The resource ID for the recommendation.
- Parameters:
resourceId
- The resource ID for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
The Amazon Resource Name (ARN) for the recommendation.
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceType
The current resource type.
- Parameters:
currentResourceType
- The current resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedResourceType
The recommended resource type.
- Parameters:
recommendedResourceType
- The recommended resource type.- 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.
-
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.
-
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.
-
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.
-
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.
-
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 tasks that can be carried out by this action.
- Parameters:
actionType
- The type of tasks that can be carried out by this action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
currentResourceSummary
Describes the current resource.
- Parameters:
currentResourceSummary
- Describes the current resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedResourceSummary
Describes the recommended resource.
- Parameters:
recommendedResourceSummary
- Describes the recommended resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
recommendationLookbackPeriodInDays
Recommendation.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.
-
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:
-
tags
A list of tags assigned to the recommendation.
- Parameters:
tags
- A list of tags assigned to the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to the recommendation.
- Parameters:
tags
- A list of tags assigned to the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to the recommendation.
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:
-