Interface GetRecommendationResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRecommendationResponse.Builder,GetRecommendationResponse>,CostOptimizationHubResponse.Builder,SdkBuilder<GetRecommendationResponse.Builder,GetRecommendationResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetRecommendationResponse
public static interface GetRecommendationResponse.Builder extends CostOptimizationHubResponse.Builder, SdkPojo, CopyableBuilder<GetRecommendationResponse.Builder,GetRecommendationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetRecommendationResponse.BuilderaccountId(String accountId)The account that the recommendation is for.GetRecommendationResponse.BuilderactionType(String actionType)The type of action you can take by adopting the recommendation.GetRecommendationResponse.BuilderactionType(ActionType actionType)The type of action you can take by adopting the recommendation.GetRecommendationResponse.BuildercostCalculationLookbackPeriodInDays(Integer costCalculationLookbackPeriodInDays)The lookback period used to calculate cost impact for a recommendation.GetRecommendationResponse.BuildercurrencyCode(String currencyCode)The currency code used for the recommendation.default GetRecommendationResponse.BuildercurrentResourceDetails(Consumer<ResourceDetails.Builder> currentResourceDetails)The details for the resource.GetRecommendationResponse.BuildercurrentResourceDetails(ResourceDetails currentResourceDetails)The details for the resource.GetRecommendationResponse.BuildercurrentResourceType(String currentResourceType)The type of resource.GetRecommendationResponse.BuildercurrentResourceType(ResourceType currentResourceType)The type of resource.GetRecommendationResponse.BuilderestimatedMonthlyCost(Double estimatedMonthlyCost)The estimated monthly cost of the current resource.GetRecommendationResponse.BuilderestimatedMonthlySavings(Double estimatedMonthlySavings)The estimated monthly savings amount for the recommendation.GetRecommendationResponse.BuilderestimatedSavingsOverCostCalculationLookbackPeriod(Double estimatedSavingsOverCostCalculationLookbackPeriod)The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.GetRecommendationResponse.BuilderestimatedSavingsPercentage(Double estimatedSavingsPercentage)The estimated savings percentage relative to the total cost over the cost calculation lookback period.GetRecommendationResponse.BuilderimplementationEffort(String implementationEffort)The effort required to implement the recommendation.GetRecommendationResponse.BuilderimplementationEffort(ImplementationEffort implementationEffort)The effort required to implement the recommendation.GetRecommendationResponse.BuilderlastRefreshTimestamp(Instant lastRefreshTimestamp)The time when the recommendation was last generated.GetRecommendationResponse.BuilderrecommendationId(String recommendationId)The ID for the recommendation.GetRecommendationResponse.BuilderrecommendationLookbackPeriodInDays(Integer recommendationLookbackPeriodInDays)The lookback period that's used to generate the recommendation.default GetRecommendationResponse.BuilderrecommendedResourceDetails(Consumer<ResourceDetails.Builder> recommendedResourceDetails)The details about the recommended resource.GetRecommendationResponse.BuilderrecommendedResourceDetails(ResourceDetails recommendedResourceDetails)The details about the recommended resource.GetRecommendationResponse.BuilderrecommendedResourceType(String recommendedResourceType)The resource type of the recommendation.GetRecommendationResponse.BuilderrecommendedResourceType(ResourceType recommendedResourceType)The resource type of the recommendation.GetRecommendationResponse.Builderregion(String region)The Amazon Web Services Region of the resource.GetRecommendationResponse.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the resource.GetRecommendationResponse.BuilderresourceId(String resourceId)The unique identifier for the resource.GetRecommendationResponse.BuilderrestartNeeded(Boolean restartNeeded)Whether or not implementing the recommendation requires a restart.GetRecommendationResponse.BuilderrollbackPossible(Boolean rollbackPossible)Whether or not implementing the recommendation can be rolled back.GetRecommendationResponse.Buildersource(String source)The source of the recommendation.GetRecommendationResponse.Buildersource(Source source)The source of the recommendation.GetRecommendationResponse.Buildertags(Collection<Tag> tags)A list of tags associated with the resource for which the recommendation exists.GetRecommendationResponse.Buildertags(Consumer<Tag.Builder>... tags)A list of tags associated with the resource for which the recommendation exists.GetRecommendationResponse.Buildertags(Tag... tags)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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
recommendationId
GetRecommendationResponse.Builder recommendationId(String 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
GetRecommendationResponse.Builder resourceId(String 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
GetRecommendationResponse.Builder resourceArn(String 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
GetRecommendationResponse.Builder accountId(String 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
GetRecommendationResponse.Builder currencyCode(String 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
GetRecommendationResponse.Builder estimatedSavingsPercentage(Double 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
GetRecommendationResponse.Builder currentResourceType(String 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:
ResourceType,ResourceType
-
currentResourceType
GetRecommendationResponse.Builder currentResourceType(ResourceType 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:
ResourceType,ResourceType
-
recommendedResourceType
GetRecommendationResponse.Builder recommendedResourceType(String 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:
ResourceType,ResourceType
-
recommendedResourceType
GetRecommendationResponse.Builder recommendedResourceType(ResourceType 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:
ResourceType,ResourceType
-
region
GetRecommendationResponse.Builder region(String 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
GetRecommendationResponse.Builder source(String source)
The source of the recommendation.
-
source
GetRecommendationResponse.Builder source(Source source)
The source of the recommendation.
-
lastRefreshTimestamp
GetRecommendationResponse.Builder lastRefreshTimestamp(Instant 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
GetRecommendationResponse.Builder estimatedMonthlySavings(Double 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
GetRecommendationResponse.Builder estimatedMonthlyCost(Double 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
GetRecommendationResponse.Builder implementationEffort(String 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,ImplementationEffort
-
implementationEffort
GetRecommendationResponse.Builder implementationEffort(ImplementationEffort 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,ImplementationEffort
-
restartNeeded
GetRecommendationResponse.Builder restartNeeded(Boolean 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
GetRecommendationResponse.Builder actionType(String 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,ActionType
-
actionType
GetRecommendationResponse.Builder actionType(ActionType 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,ActionType
-
rollbackPossible
GetRecommendationResponse.Builder rollbackPossible(Boolean 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
GetRecommendationResponse.Builder currentResourceDetails(ResourceDetails 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.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,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:
currentResourceDetails(ResourceDetails)
-
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.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,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:
recommendedResourceDetails(ResourceDetails)
-
tags
GetRecommendationResponse.Builder tags(Collection<Tag> 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
GetRecommendationResponse.Builder tags(Tag... 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
GetRecommendationResponse.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-