Class Goal
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Goal.Builder,Goal>
Represents a goal with all its properties and metadata
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe unique identifier for the agent space containing this goalstatic Goal.Builderbuilder()final GoalContentcontent()Content of the goalfinal InstantTimestamp when this goal was createdfinal booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final GoalScheduleGoal Schedule.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final StringgoalId()The unique identifier for this goalfinal GoalTypegoalType()Type of goal based on its originfinal StringType of goal based on its originfinal inthashCode()final InstantTimestamp when the goal was last evaluatedfinal StringID of the most recent successful task associated with this goalfinal StringID of the most recent task associated with this goalstatic Class<? extends Goal.Builder> final GoalStatusstatus()Current status of the goal itselffinal StringCurrent status of the goal itselffinal Stringtitle()The title of the goalTake this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantTimestamp when this goal was last updatedfinal Integerversion()Version number for optimistic lockingMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
agentSpaceArn
The unique identifier for the agent space containing this goal
- Returns:
- The unique identifier for the agent space containing this goal
-
goalId
The unique identifier for this goal
- Returns:
- The unique identifier for this goal
-
title
-
content
-
status
Current status of the goal itself
If the service returns an enum value that is not available in the current SDK version,
statuswill returnGoalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Current status of the goal itself
- See Also:
-
statusAsString
Current status of the goal itself
If the service returns an enum value that is not available in the current SDK version,
statuswill returnGoalStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Current status of the goal itself
- See Also:
-
goalType
Type of goal based on its origin
If the service returns an enum value that is not available in the current SDK version,
goalTypewill returnGoalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgoalTypeAsString().- Returns:
- Type of goal based on its origin
- See Also:
-
goalTypeAsString
Type of goal based on its origin
If the service returns an enum value that is not available in the current SDK version,
goalTypewill returnGoalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgoalTypeAsString().- Returns:
- Type of goal based on its origin
- See Also:
-
createdAt
Timestamp when this goal was created
- Returns:
- Timestamp when this goal was created
-
updatedAt
Timestamp when this goal was last updated
- Returns:
- Timestamp when this goal was last updated
-
lastEvaluatedAt
Timestamp when the goal was last evaluated
- Returns:
- Timestamp when the goal was last evaluated
-
lastTaskId
ID of the most recent task associated with this goal
- Returns:
- ID of the most recent task associated with this goal
-
lastSuccessfulTaskId
ID of the most recent successful task associated with this goal
- Returns:
- ID of the most recent successful task associated with this goal
-
version
Version number for optimistic locking
- Returns:
- Version number for optimistic locking
-
evaluationSchedule
Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily
- Returns:
- Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Goal.Builder,Goal> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-