Interface GetRecommendationResponse.Builder

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

        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, Source
      • source

        GetRecommendationResponse.Builder source​(Source 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, Source
      • 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
      • 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.
      • 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.
      • 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 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).

        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:
        #tags(java.util.Collection)