Interface RecommendationItem.Builder

  • Method Details

    • alreadyImplemented

      RecommendationItem.Builder alreadyImplemented(Boolean alreadyImplemented)

      Specifies if the recommendation has already been implemented.

      Parameters:
      alreadyImplemented - Specifies if the recommendation has already been implemented.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discoveredAlarm

      RecommendationItem.Builder discoveredAlarm(Alarm discoveredAlarm)

      Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.

      Parameters:
      discoveredAlarm - Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discoveredAlarm

      default RecommendationItem.Builder discoveredAlarm(Consumer<Alarm.Builder> discoveredAlarm)

      Indicates the previously implemented Amazon CloudWatch alarm discovered by Resilience Hub.

      This is a convenience method that creates an instance of the Alarm.Builder avoiding the need to create one manually via Alarm.builder().

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

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

      RecommendationItem.Builder excludeReason(String excludeReason)

      Indicates the reason for excluding an operational recommendation.

      Parameters:
      excludeReason - Indicates the reason for excluding an operational recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • excludeReason

      Indicates the reason for excluding an operational recommendation.

      Parameters:
      excludeReason - Indicates the reason for excluding an operational recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • excluded

      RecommendationItem.Builder excluded(Boolean excluded)

      Indicates if an operational recommendation item is excluded.

      Parameters:
      excluded - Indicates if an operational recommendation item is excluded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestDiscoveredExperiment

      RecommendationItem.Builder latestDiscoveredExperiment(Experiment latestDiscoveredExperiment)

      Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.

      Parameters:
      latestDiscoveredExperiment - Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestDiscoveredExperiment

      default RecommendationItem.Builder latestDiscoveredExperiment(Consumer<Experiment.Builder> latestDiscoveredExperiment)

      Indicates the experiment created in FIS that was discovered by Resilience Hub, which matches the recommendation.

      This is a convenience method that creates an instance of the Experiment.Builder avoiding the need to create one manually via Experiment.builder().

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

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

      RecommendationItem.Builder resourceId(String resourceId)

      Identifier of the resource.

      Parameters:
      resourceId - Identifier of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetAccountId

      RecommendationItem.Builder targetAccountId(String targetAccountId)

      Identifier of the target account.

      Parameters:
      targetAccountId - Identifier of the target account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetRegion

      RecommendationItem.Builder targetRegion(String targetRegion)

      The target region.

      Parameters:
      targetRegion - The target region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.