Interface Goal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Goal.Builder,,Goal> SdkBuilder<Goal.Builder,,Goal> SdkPojo
- Enclosing class:
Goal
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceArn(String agentSpaceArn) The unique identifier for the agent space containing this goaldefault Goal.Buildercontent(Consumer<GoalContent.Builder> content) Content of the goalcontent(GoalContent content) Content of the goalTimestamp when this goal was createddefault Goal.BuilderevaluationSchedule(Consumer<GoalSchedule.Builder> evaluationSchedule) Goal Schedule.evaluationSchedule(GoalSchedule evaluationSchedule) Goal Schedule.The unique identifier for this goalType of goal based on its originType of goal based on its originlastEvaluatedAt(Instant lastEvaluatedAt) Timestamp when the goal was last evaluatedlastSuccessfulTaskId(String lastSuccessfulTaskId) ID of the most recent successful task associated with this goallastTaskId(String lastTaskId) ID of the most recent task associated with this goalCurrent status of the goal itselfstatus(GoalStatus status) Current status of the goal itselfThe title of the goalTimestamp when this goal was last updatedVersion number for optimistic lockingMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
Content of the goal
This is a convenience method that creates an instance of theGoalContent.Builderavoiding the need to create one manually viaGoalContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(GoalContent).- Parameters:
content- a consumer that will call methods onGoalContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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
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
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
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 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
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 theGoalSchedule.Builderavoiding the need to create one manually viaGoalSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationSchedule(GoalSchedule).- Parameters:
evaluationSchedule- a consumer that will call methods onGoalSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-