Interface PreviewResult.Builder

  • Method Details

    • recommendedActionId

      PreviewResult.Builder recommendedActionId(String recommendedActionId)

      The ID of the recommended action being previewed.

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

      PreviewResult.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) of the resource affected by the recommended action.

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

      PreviewResult.Builder resourceId(String resourceId)

      The ID of the resource affected by the recommended action.

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

      PreviewResult.Builder accountId(String accountId)

      The Amazon Web Services account ID associated with the resource.

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

      PreviewResult.Builder region(String 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

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

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

      PreviewResult.Builder lookBackPeriodInDays(Integer lookBackPeriodInDays)

      The number of days of historical data used to analyze the resource.

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

      PreviewResult.Builder recommendedActionType(String recommendedActionType)

      The type of recommended action being previewed.

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

      PreviewResult.Builder recommendedActionType(RecommendedActionType recommendedActionType)

      The type of recommended action being previewed.

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

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

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

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

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

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

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

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

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

      PreviewResult.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: