Interface Recommendation.Builder

  • Method Details

    • agentSpaceArn

      Recommendation.Builder agentSpaceArn(String agentSpaceArn)

      ARN of the agent space this recommendation belongs to

      Parameters:
      agentSpaceArn - ARN of the agent space this recommendation belongs to
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendationId

      Recommendation.Builder recommendationId(String recommendationId)

      The unique identifier for this recommendation

      Parameters:
      recommendationId - The unique identifier for this recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      ID of the task that generated the recommendation

      Parameters:
      taskId - ID of the task that generated the recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • goalId

      ID of the goal this recommendation is associated with

      Parameters:
      goalId - ID of the goal this recommendation is associated with
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      The title of the recommendation

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

      Content of the recommendation

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

      Content of the recommendation

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

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

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

      Current status of the recommendation

      Parameters:
      status - Current status of the recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Current status of the recommendation

      Parameters:
      status - Current status of the recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      Recommendation.Builder priority(String priority)

      Priority level of the recommendation

      Parameters:
      priority - Priority level of the recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      Priority level of the recommendation

      Parameters:
      priority - Priority level of the recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • goalVersion

      Recommendation.Builder goalVersion(Long goalVersion)

      Version of the goal at the time this recommendation was generated

      Parameters:
      goalVersion - Version of the goal at the time this recommendation was generated
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalContext

      Recommendation.Builder additionalContext(String additionalContext)

      Additional context for recommendation

      Parameters:
      additionalContext - Additional context for recommendation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Recommendation.Builder createdAt(Instant createdAt)

      Timestamp when this recommendation was created

      Parameters:
      createdAt - Timestamp when this recommendation was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Recommendation.Builder updatedAt(Instant updatedAt)

      Timestamp when this recommendation was last updated

      Parameters:
      updatedAt - Timestamp when this recommendation was last updated
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      Recommendation.Builder version(Long version)

      Version number for optimistic locking

      Parameters:
      version - Version number for optimistic locking
      Returns:
      Returns a reference to this object so that method calls can be chained together.