Interface GetRecommendationResponse.Builder

  • Method Details

    • 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

      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:
    • 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:
    • 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:
    • 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:
    • 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

      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

      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:
    • 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

      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

      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 the ResourceDetails.Builder avoiding the need to create one manually via ResourceDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to currentResourceDetails(ResourceDetails).

      Parameters:
      currentResourceDetails - a consumer that will call methods on ResourceDetails.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 the ResourceDetails.Builder avoiding the need to create one manually via ResourceDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recommendedResourceDetails(ResourceDetails).

      Parameters:
      recommendedResourceDetails - a consumer that will call methods on ResourceDetails.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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: