Interface Goal.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Goal.Builder,Goal>, SdkBuilder<Goal.Builder,Goal>, SdkPojo
Enclosing class:
Goal

@Mutable @NotThreadSafe public static interface Goal.Builder extends SdkPojo, CopyableBuilder<Goal.Builder,Goal>
  • Method Details

    • agentSpaceArn

      Goal.Builder agentSpaceArn(String agentSpaceArn)

      The unique identifier for the agent space containing this goal

      Parameters:
      agentSpaceArn - The unique identifier for the agent space containing this goal
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • goalId

      Goal.Builder goalId(String goalId)

      The unique identifier for this goal

      Parameters:
      goalId - The unique identifier for this goal
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      Goal.Builder title(String title)

      The title of the goal

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

      Goal.Builder content(GoalContent content)

      Content of the goal

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

      default Goal.Builder content(Consumer<GoalContent.Builder> content)

      Content of the goal

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

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

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

      Goal.Builder status(String status)

      Current status of the goal itself

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

      Goal.Builder status(GoalStatus status)

      Current status of the goal itself

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

      Goal.Builder goalType(String goalType)

      Type of goal based on its origin

      Parameters:
      goalType - Type of goal based on its origin
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • goalType

      Goal.Builder goalType(GoalType goalType)

      Type of goal based on its origin

      Parameters:
      goalType - Type of goal based on its origin
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      Goal.Builder createdAt(Instant createdAt)

      Timestamp when this goal was created

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

      Goal.Builder updatedAt(Instant updatedAt)

      Timestamp when this goal was last updated

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

      Goal.Builder lastEvaluatedAt(Instant lastEvaluatedAt)

      Timestamp when the goal was last evaluated

      Parameters:
      lastEvaluatedAt - Timestamp when the goal was last evaluated
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastTaskId

      Goal.Builder lastTaskId(String lastTaskId)

      ID of the most recent task associated with this goal

      Parameters:
      lastTaskId - ID of the most recent task associated with this goal
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastSuccessfulTaskId

      Goal.Builder lastSuccessfulTaskId(String lastSuccessfulTaskId)

      ID of the most recent successful task associated with this goal

      Parameters:
      lastSuccessfulTaskId - ID of the most recent successful task associated with this goal
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      Goal.Builder version(Integer 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.
    • evaluationSchedule

      Goal.Builder evaluationSchedule(GoalSchedule evaluationSchedule)

      Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily

      Parameters:
      evaluationSchedule - Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluationSchedule

      default Goal.Builder evaluationSchedule(Consumer<GoalSchedule.Builder> evaluationSchedule)

      Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily

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

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

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