Interface StartTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<StartTaskResponse.Builder,,StartTaskResponse> SdkBuilder<StartTaskResponse.Builder,,StartTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
StartTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptionagentContextId(String agentContextId) The agent context's ID.The Amazon Resource Name (ARN) of the task.The date and time when the task was created.description(String description) The description of the task, as given to StartTask.The ID of the task.default StartTaskResponse.BuilderinputConfiguration(Consumer<TaskInputConfigurationSummary.Builder> inputConfiguration) A summary of the input that the task was started with.inputConfiguration(TaskInputConfigurationSummary inputConfiguration) A summary of the input that the task was started with.outputs(Collection<TaskOutput> outputs) What the task created, in creation order.outputs(Consumer<TaskOutput.Builder>... outputs) What the task created, in creation order.outputs(TaskOutput... outputs) What the task created, in creation order.default StartTaskResponse.Builderstatistics(Consumer<TaskStatistics.Builder> statistics) Counts of the documents that the task analyzed and the change sets that it created.statistics(TaskStatistics statistics) Counts of the documents that the task analyzed and the change sets that it created.The status of the task.status(TaskStatus status) The status of the task.statusMessage(String statusMessage) The reason the task failed.statusReasonCode(String statusReasonCode) The code for why the task failed.statusReasonCode(TaskStatusReasonCode statusReasonCode) The code for why the task failed.The type of the task.The type of the task.The date and time when the task was last updated, such as when its status changed.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
id
The ID of the task. Pass it as
taskIdto GetTask or CancelTask.- Parameters:
id- The ID of the task. Pass it astaskIdto GetTask or CancelTask.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the task.
- Parameters:
arn- The Amazon Resource Name (ARN) of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentContextId
The agent context's ID.
- Parameters:
agentContextId- The agent context's ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.- Parameters:
type- The type of the task. It is set by theinputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.- Parameters:
type- The type of the task. It is set by theinputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.- Parameters:
status- The status of the task. A task moves fromPENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.- Parameters:
status- The status of the task. A task moves fromPENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the task, as given to StartTask.
- Parameters:
description- The description of the task, as given to StartTask.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time when the task was created.
- Parameters:
createdAt- The date and time when the task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time when the task was last updated, such as when its status changed. Equal to
createdAtuntil the task first changes.- Parameters:
updatedAt- The date and time when the task was last updated, such as when its status changed. Equal tocreatedAtuntil the task first changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasonCode
The code for why the task failed. Present only when
statusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn't be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
- Parameters:
statusReasonCode- The code for why the task failed. Present only whenstatusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn't be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
statusReasonCode
The code for why the task failed. Present only when
statusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn't be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
- Parameters:
statusReasonCode- The code for why the task failed. Present only whenstatusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn't be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
statusMessage
The reason the task failed. Present only when status is FAILED.
- Parameters:
statusMessage- The reason the task failed. Present only when status is FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is
COMPLETED,FAILED, orCANCELLED.- Parameters:
statistics- Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task isCOMPLETED,FAILED, orCANCELLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is
This is a convenience method that creates an instance of theCOMPLETED,FAILED, orCANCELLED.TaskStatistics.Builderavoiding the need to create one manually viaTaskStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatistics(TaskStatistics).- Parameters:
statistics- a consumer that will call methods onTaskStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputConfiguration
A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
- Parameters:
inputConfiguration- A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfiguration
default StartTaskResponse.Builder inputConfiguration(Consumer<TaskInputConfigurationSummary.Builder> inputConfiguration) A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
This is a convenience method that creates an instance of theTaskInputConfigurationSummary.Builderavoiding the need to create one manually viaTaskInputConfigurationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputConfiguration(TaskInputConfigurationSummary).- Parameters:
inputConfiguration- a consumer that will call methods onTaskInputConfigurationSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputs
What the task created, in creation order. Set when it finishes.
- Parameters:
outputs- What the task created, in creation order. Set when it finishes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputs
What the task created, in creation order. Set when it finishes.
- Parameters:
outputs- What the task created, in creation order. Set when it finishes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputs
What the task created, in creation order. Set when it finishes.
This is a convenience method that creates an instance of theTaskOutput.Builderavoiding the need to create one manually viaTaskOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputs(List<TaskOutput>).- Parameters:
outputs- a consumer that will call methods onTaskOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-