Interface Recommendation.Builder

  • Method Details

    • description

      Recommendation.Builder description(String description)

      A description of the problem.

      Parameters:
      description - A description of the problem.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • link

      A hyperlink to information to help you address the problem.

      Parameters:
      link - A hyperlink to information to help you address the problem.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the recommendation.

      Parameters:
      name - The name of the recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reason

      The reason DevOps Guru flagged the anomalous behavior as a problem.

      Parameters:
      reason - The reason DevOps Guru flagged the anomalous behavior as a problem.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedEvents

      Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.

      Parameters:
      relatedEvents - Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedEvents

      Recommendation.Builder relatedEvents(RecommendationRelatedEvent... relatedEvents)

      Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.

      Parameters:
      relatedEvents - Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedEvents

      Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.

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

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

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

      Recommendation.Builder relatedAnomalies(Collection<RecommendationRelatedAnomaly> relatedAnomalies)

      Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.

      Parameters:
      relatedAnomalies - Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedAnomalies

      Recommendation.Builder relatedAnomalies(RecommendationRelatedAnomaly... relatedAnomalies)

      Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.

      Parameters:
      relatedAnomalies - Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedAnomalies

      Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.

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

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

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

      Recommendation.Builder category(String category)

      The category type of the recommendation.

      Parameters:
      category - The category type of the recommendation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.