Interface GetRetrievalInstructionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<GetRetrievalInstructionResponse.Builder,,GetRetrievalInstructionResponse> SdkBuilder<GetRetrievalInstructionResponse.Builder,,GetRetrievalInstructionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRetrievalInstructionResponse
-
Method Summary
Modifier and TypeMethodDescriptionWhen the retrieval instruction was created.customerEncryptionKeyArn(String customerEncryptionKeyArn) The ARN of the customer managed KMS key protecting this content, when one was supplied at create.description(String description) A description of the retrieval instruction.instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The reviewed content this instruction serves — what AgenticRetrieveStream resolves while status is ACTIVE.instruction(RetrievalInstructionContent instruction) The reviewed content this instruction serves — what AgenticRetrieveStream resolves while status is ACTIVE.lastTransitionStatus(String lastTransitionStatus) The outcome or in-progress state of the most recent create or update.lastTransitionStatus(RetrievalInstructionLastTransitionStatus lastTransitionStatus) The outcome or in-progress state of the most recent create or update.lastTransitionStatusReasons(Collection<RetrievalInstructionFailureReason> lastTransitionStatusReasons) Why the most recent create or update was rejected.lastTransitionStatusReasons(Consumer<RetrievalInstructionFailureReason.Builder>... lastTransitionStatusReasons) Why the most recent create or update was rejected.lastTransitionStatusReasons(RetrievalInstructionFailureReason... lastTransitionStatusReasons) Why the most recent create or update was rejected.latestVersion(String latestVersion) The largest version number that currently exists for this retrieval instruction, that is, the newest version you can retrieve.The name of the retrieval instruction.retrievalInstructionArn(String retrievalInstructionArn) The ARN of the retrieval instruction.retrievalInstructionId(String retrievalInstructionId) The identifier of the retrieval instruction.Specifies whether you can use the instruction.status(RetrievalInstructionStatus status) Specifies whether you can use the instruction.When the retrieval instruction was last updated.The version this response describes: a version number, or DRAFT.Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.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
-
retrievalInstructionId
The identifier of the retrieval instruction.
- Parameters:
retrievalInstructionId- The identifier of the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalInstructionArn
The ARN of the retrieval instruction.
- Parameters:
retrievalInstructionArn- The ARN of the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the retrieval instruction.
- Parameters:
name- The name of the retrieval instruction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Specifies whether you can use the instruction. You can resolve only an ACTIVE instruction at retrieval time. Monotone: INACTIVE to ACTIVE once, never back. Numbered versions are always ACTIVE.
- Parameters:
status- Specifies whether you can use the instruction. You can resolve only an ACTIVE instruction at retrieval time. Monotone: INACTIVE to ACTIVE once, never back. Numbered versions are always ACTIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Specifies whether you can use the instruction. You can resolve only an ACTIVE instruction at retrieval time. Monotone: INACTIVE to ACTIVE once, never back. Numbered versions are always ACTIVE.
- Parameters:
status- Specifies whether you can use the instruction. You can resolve only an ACTIVE instruction at retrieval time. Monotone: INACTIVE to ACTIVE once, never back. Numbered versions are always ACTIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastTransitionStatus
The outcome or in-progress state of the most recent create or update. CREATING or UPDATING means the operation is still running. Independent of status. Always has a value from the create 202 onward. On a numbered version this is always CREATE_SUCCESSFUL: a version is created once, from reviewed content, and is immutable.
- Parameters:
lastTransitionStatus- The outcome or in-progress state of the most recent create or update. CREATING or UPDATING means the operation is still running. Independent of status. Always has a value from the create 202 onward. On a numbered version this is always CREATE_SUCCESSFUL: a version is created once, from reviewed content, and is immutable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastTransitionStatus
GetRetrievalInstructionResponse.Builder lastTransitionStatus(RetrievalInstructionLastTransitionStatus lastTransitionStatus) The outcome or in-progress state of the most recent create or update. CREATING or UPDATING means the operation is still running. Independent of status. Always has a value from the create 202 onward. On a numbered version this is always CREATE_SUCCESSFUL: a version is created once, from reviewed content, and is immutable.
- Parameters:
lastTransitionStatus- The outcome or in-progress state of the most recent create or update. CREATING or UPDATING means the operation is still running. Independent of status. Always has a value from the create 202 onward. On a numbered version this is always CREATE_SUCCESSFUL: a version is created once, from reviewed content, and is immutable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instruction
The reviewed content this instruction serves — what AgenticRetrieveStream resolves while status is ACTIVE. Absent until the first create review passes. Always present on a numbered version.
- Parameters:
instruction- The reviewed content this instruction serves — what AgenticRetrieveStream resolves while status is ACTIVE. Absent until the first create review passes. Always present on a numbered version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
default GetRetrievalInstructionResponse.Builder instruction(Consumer<RetrievalInstructionContent.Builder> instruction) The reviewed content this instruction serves — what AgenticRetrieveStream resolves while status is ACTIVE. Absent until the first create review passes. Always present on a numbered version.
This is a convenience method that creates an instance of theRetrievalInstructionContent.Builderavoiding the need to create one manually viaRetrievalInstructionContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstruction(RetrievalInstructionContent).- Parameters:
instruction- a consumer that will call methods onRetrievalInstructionContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
When the retrieval instruction was created. On a numbered version, when that version was created.
- Parameters:
createdAt- When the retrieval instruction was created. On a numbered version, when that version was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
When the retrieval instruction was last updated. Equal to createdAt on a numbered version, which is immutable.
- Parameters:
updatedAt- When the retrieval instruction was last updated. Equal to createdAt on a numbered version, which is immutable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the retrieval instruction. On a numbered version, the description of that version.
- Parameters:
description- A description of the retrieval instruction. On a numbered version, the description of that version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
The ARN of the customer managed KMS key protecting this content, when one was supplied at create.
- Parameters:
customerEncryptionKeyArn- The ARN of the customer managed KMS key protecting this content, when one was supplied at create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastTransitionStatusReasons
GetRetrievalInstructionResponse.Builder lastTransitionStatusReasons(Collection<RetrievalInstructionFailureReason> lastTransitionStatusReasons) Why the most recent create or update was rejected. One entry for each rejected field, or a single entry when the review itself failed. Each entry has a machine-readable code and a message, and names the field when it applies to one. The service includes this field only when lastTransitionStatus is CREATE_FAILED or UPDATE_FAILED. Never present on a numbered version.
- Parameters:
lastTransitionStatusReasons- Why the most recent create or update was rejected. One entry for each rejected field, or a single entry when the review itself failed. Each entry has a machine-readable code and a message, and names the field when it applies to one. The service includes this field only when lastTransitionStatus is CREATE_FAILED or UPDATE_FAILED. Never present on a numbered version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastTransitionStatusReasons
GetRetrievalInstructionResponse.Builder lastTransitionStatusReasons(RetrievalInstructionFailureReason... lastTransitionStatusReasons) Why the most recent create or update was rejected. One entry for each rejected field, or a single entry when the review itself failed. Each entry has a machine-readable code and a message, and names the field when it applies to one. The service includes this field only when lastTransitionStatus is CREATE_FAILED or UPDATE_FAILED. Never present on a numbered version.
- Parameters:
lastTransitionStatusReasons- Why the most recent create or update was rejected. One entry for each rejected field, or a single entry when the review itself failed. Each entry has a machine-readable code and a message, and names the field when it applies to one. The service includes this field only when lastTransitionStatus is CREATE_FAILED or UPDATE_FAILED. Never present on a numbered version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastTransitionStatusReasons
GetRetrievalInstructionResponse.Builder lastTransitionStatusReasons(Consumer<RetrievalInstructionFailureReason.Builder>... lastTransitionStatusReasons) Why the most recent create or update was rejected. One entry for each rejected field, or a single entry when the review itself failed. Each entry has a machine-readable code and a message, and names the field when it applies to one. The service includes this field only when lastTransitionStatus is CREATE_FAILED or UPDATE_FAILED. Never present on a numbered version.
This is a convenience method that creates an instance of theRetrievalInstructionFailureReason.Builderavoiding the need to create one manually viaRetrievalInstructionFailureReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastTransitionStatusReasons(List<RetrievalInstructionFailureReason>).- Parameters:
lastTransitionStatusReasons- a consumer that will call methods onRetrievalInstructionFailureReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
version
The version this response describes: a version number, or DRAFT.
- Parameters:
version- The version this response describes: a version number, or DRAFT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestVersion
The largest version number that currently exists for this retrieval instruction, that is, the newest version you can retrieve. Present only on a DRAFT read, and only when at least one version exists. Because version numbers are never reused, deleting versions can leave gaps: this is the newest existing version, not a count and not the highest number ever created.
- Parameters:
latestVersion- The largest version number that currently exists for this retrieval instruction, that is, the newest version you can retrieve. Present only on a DRAFT read, and only when at least one version exists. Because version numbers are never reused, deleting versions can leave gaps: this is the newest existing version, not a count and not the highest number ever created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-