Interface RecommendedAction.Builder

  • Method Details

    • recommendedActionId

      RecommendedAction.Builder recommendedActionId(String recommendedActionId)

      The unique identifier of the recommended action.

      Parameters:
      recommendedActionId - The unique identifier of the recommended action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceArn

      RecommendedAction.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) of the resource that the recommendation applies to.

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the resource that the recommendation applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceId

      RecommendedAction.Builder resourceId(String resourceId)

      The ID of the resource that the recommendation applies to.

      Parameters:
      resourceId - The ID of the resource that the recommendation applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      RecommendedAction.Builder accountId(String accountId)

      The Amazon Web Services account ID that owns the resource.

      Parameters:
      accountId - The Amazon Web Services account ID that owns the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • region

      The Amazon Web Services Region where the resource is located.

      Parameters:
      region - The Amazon Web Services Region where the resource is located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      RecommendedAction.Builder resourceType(String resourceType)

      The type of resource being evaluated.

      Parameters:
      resourceType - The type of resource being evaluated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      RecommendedAction.Builder resourceType(ResourceType resourceType)

      The type of resource being evaluated.

      Parameters:
      resourceType - The type of resource being evaluated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lookBackPeriodInDays

      RecommendedAction.Builder lookBackPeriodInDays(Integer lookBackPeriodInDays)

      The number of days of historical data used to generate the recommendation.

      Parameters:
      lookBackPeriodInDays - The number of days of historical data used to generate the recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedActionType

      RecommendedAction.Builder recommendedActionType(String recommendedActionType)

      The type of action being recommended.

      Parameters:
      recommendedActionType - The type of action being recommended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recommendedActionType

      RecommendedAction.Builder recommendedActionType(RecommendedActionType recommendedActionType)

      The type of action being recommended.

      Parameters:
      recommendedActionType - The type of action being recommended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currentResourceSummary

      RecommendedAction.Builder currentResourceSummary(String currentResourceSummary)

      A summary of the resource's current configuration.

      Parameters:
      currentResourceSummary - A summary of the resource's current configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentResourceDetails

      RecommendedAction.Builder currentResourceDetails(ResourceDetails currentResourceDetails)
      Sets the value of the CurrentResourceDetails property for this object.
      Parameters:
      currentResourceDetails - The new value for the CurrentResourceDetails property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentResourceDetails

      default RecommendedAction.Builder currentResourceDetails(Consumer<ResourceDetails.Builder> currentResourceDetails)
      Sets the value of the CurrentResourceDetails property for this object. 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:
    • recommendedResourceSummary

      RecommendedAction.Builder recommendedResourceSummary(String recommendedResourceSummary)

      A summary of the resource's recommended configuration.

      Parameters:
      recommendedResourceSummary - A summary of the resource's recommended configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedResourceDetails

      RecommendedAction.Builder recommendedResourceDetails(ResourceDetails recommendedResourceDetails)
      Sets the value of the RecommendedResourceDetails property for this object.
      Parameters:
      recommendedResourceDetails - The new value for the RecommendedResourceDetails property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendedResourceDetails

      default RecommendedAction.Builder recommendedResourceDetails(Consumer<ResourceDetails.Builder> recommendedResourceDetails)
      Sets the value of the RecommendedResourceDetails property for this object. 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:
    • restartNeeded

      RecommendedAction.Builder restartNeeded(Boolean restartNeeded)

      Indicates whether implementing the recommended action requires a resource restart.

      Parameters:
      restartNeeded - Indicates whether implementing the recommended action requires a resource restart.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedMonthlySavings

      RecommendedAction.Builder estimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings)
      Sets the value of the EstimatedMonthlySavings property for this object.
      Parameters:
      estimatedMonthlySavings - The new value for the EstimatedMonthlySavings property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • estimatedMonthlySavings

      default RecommendedAction.Builder estimatedMonthlySavings(Consumer<EstimatedMonthlySavings.Builder> estimatedMonthlySavings)
      Sets the value of the EstimatedMonthlySavings property for this object. This is a convenience method that creates an instance of the EstimatedMonthlySavings.Builder avoiding the need to create one manually via EstimatedMonthlySavings.builder().

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

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

      RecommendedAction.Builder resourceTags(Collection<Tag> resourceTags)

      The tags associated with the resource.

      Parameters:
      resourceTags - The tags associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      RecommendedAction.Builder resourceTags(Tag... resourceTags)

      The tags associated with the resource.

      Parameters:
      resourceTags - The tags associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      RecommendedAction.Builder resourceTags(Consumer<Tag.Builder>... resourceTags)

      The tags associated with the resource.

      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 resourceTags(List<Tag>).

      Parameters:
      resourceTags - 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: