@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Agent extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about an agent.
Constructor and Description |
---|
Agent() |
Modifier and Type | Method and Description |
---|---|
Agent |
clone() |
boolean |
equals(Object obj) |
String |
getAgentArn()
The Amazon Resource Name (ARN) of the agent.
|
String |
getAgentId()
The unique identifier of the agent.
|
String |
getAgentName()
The name of the agent.
|
String |
getAgentResourceRoleArn()
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
String |
getAgentStatus()
The status of the agent and whether it is ready for use.
|
String |
getAgentVersion()
The version of the agent.
|
String |
getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
Date |
getCreatedAt()
The time at which the agent was created.
|
String |
getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
|
String |
getDescription()
The description of the agent.
|
List<String> |
getFailureReasons()
Contains reasons that the agent-related API that you invoked failed.
|
String |
getFoundationModel()
The foundation model used for orchestration by the agent.
|
GuardrailConfiguration |
getGuardrailConfiguration()
Details about the guardrail associated with the agent.
|
Integer |
getIdleSessionTTLInSeconds()
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
|
String |
getInstruction()
Instructions that tell the agent what it should do and how it should interact with users.
|
MemoryConfiguration |
getMemoryConfiguration()
Contains memory configuration for the agent.
|
Date |
getPreparedAt()
The time at which the agent was last prepared.
|
PromptOverrideConfiguration |
getPromptOverrideConfiguration()
Contains configurations to override prompt templates in different parts of an agent sequence.
|
List<String> |
getRecommendedActions()
Contains recommended actions to take for the agent-related API that you invoked to succeed.
|
Date |
getUpdatedAt()
The time at which the agent was last updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAgentArn(String agentArn)
The Amazon Resource Name (ARN) of the agent.
|
void |
setAgentId(String agentId)
The unique identifier of the agent.
|
void |
setAgentName(String agentName)
The name of the agent.
|
void |
setAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
void |
setAgentStatus(String agentStatus)
The status of the agent and whether it is ready for use.
|
void |
setAgentVersion(String agentVersion)
The version of the agent.
|
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
void |
setCreatedAt(Date createdAt)
The time at which the agent was created.
|
void |
setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
|
void |
setDescription(String description)
The description of the agent.
|
void |
setFailureReasons(Collection<String> failureReasons)
Contains reasons that the agent-related API that you invoked failed.
|
void |
setFoundationModel(String foundationModel)
The foundation model used for orchestration by the agent.
|
void |
setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Details about the guardrail associated with the agent.
|
void |
setIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
|
void |
setInstruction(String instruction)
Instructions that tell the agent what it should do and how it should interact with users.
|
void |
setMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains memory configuration for the agent.
|
void |
setPreparedAt(Date preparedAt)
The time at which the agent was last prepared.
|
void |
setPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompt templates in different parts of an agent sequence.
|
void |
setRecommendedActions(Collection<String> recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
|
void |
setUpdatedAt(Date updatedAt)
The time at which the agent was last updated.
|
String |
toString()
Returns a string representation of this object.
|
Agent |
withAgentArn(String agentArn)
The Amazon Resource Name (ARN) of the agent.
|
Agent |
withAgentId(String agentId)
The unique identifier of the agent.
|
Agent |
withAgentName(String agentName)
The name of the agent.
|
Agent |
withAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
Agent |
withAgentStatus(AgentStatus agentStatus)
The status of the agent and whether it is ready for use.
|
Agent |
withAgentStatus(String agentStatus)
The status of the agent and whether it is ready for use.
|
Agent |
withAgentVersion(String agentVersion)
The version of the agent.
|
Agent |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
Agent |
withCreatedAt(Date createdAt)
The time at which the agent was created.
|
Agent |
withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
|
Agent |
withDescription(String description)
The description of the agent.
|
Agent |
withFailureReasons(Collection<String> failureReasons)
Contains reasons that the agent-related API that you invoked failed.
|
Agent |
withFailureReasons(String... failureReasons)
Contains reasons that the agent-related API that you invoked failed.
|
Agent |
withFoundationModel(String foundationModel)
The foundation model used for orchestration by the agent.
|
Agent |
withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Details about the guardrail associated with the agent.
|
Agent |
withIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
|
Agent |
withInstruction(String instruction)
Instructions that tell the agent what it should do and how it should interact with users.
|
Agent |
withMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains memory configuration for the agent.
|
Agent |
withPreparedAt(Date preparedAt)
The time at which the agent was last prepared.
|
Agent |
withPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompt templates in different parts of an agent sequence.
|
Agent |
withRecommendedActions(Collection<String> recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
|
Agent |
withRecommendedActions(String... recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
|
Agent |
withUpdatedAt(Date updatedAt)
The time at which the agent was last updated.
|
public void setAgentArn(String agentArn)
The Amazon Resource Name (ARN) of the agent.
agentArn
- The Amazon Resource Name (ARN) of the agent.public String getAgentArn()
The Amazon Resource Name (ARN) of the agent.
public Agent withAgentArn(String agentArn)
The Amazon Resource Name (ARN) of the agent.
agentArn
- The Amazon Resource Name (ARN) of the agent.public void setAgentId(String agentId)
The unique identifier of the agent.
agentId
- The unique identifier of the agent.public String getAgentId()
The unique identifier of the agent.
public Agent withAgentId(String agentId)
The unique identifier of the agent.
agentId
- The unique identifier of the agent.public void setAgentName(String agentName)
The name of the agent.
agentName
- The name of the agent.public String getAgentName()
The name of the agent.
public Agent withAgentName(String agentName)
The name of the agent.
agentName
- The name of the agent.public void setAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
agentResourceRoleArn
- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.public String getAgentResourceRoleArn()
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
public Agent withAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
agentResourceRoleArn
- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.public void setAgentStatus(String agentStatus)
The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
agentStatus
- The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
AgentStatus
public String getAgentStatus()
The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
AgentStatus
public Agent withAgentStatus(String agentStatus)
The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
agentStatus
- The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
AgentStatus
public Agent withAgentStatus(AgentStatus agentStatus)
The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
agentStatus
- The status of the agent and whether it is ready for use. The following statuses are possible:
CREATING – The agent is being created.
PREPARING – The agent is being prepared.
PREPARED – The agent is prepared and ready to be invoked.
NOT_PREPARED – The agent has been created but not yet prepared.
FAILED – The agent API operation failed.
UPDATING – The agent is being updated.
DELETING – The agent is being deleted.
AgentStatus
public void setAgentVersion(String agentVersion)
The version of the agent.
agentVersion
- The version of the agent.public String getAgentVersion()
The version of the agent.
public Agent withAgentVersion(String agentVersion)
The version of the agent.
agentVersion
- The version of the agent.public void setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
clientToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If
this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
For more information, see Ensuring
idempotency.public String getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
public Agent withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
clientToken
- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If
this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
For more information, see Ensuring
idempotency.public void setCreatedAt(Date createdAt)
The time at which the agent was created.
createdAt
- The time at which the agent was created.public Date getCreatedAt()
The time at which the agent was created.
public Agent withCreatedAt(Date createdAt)
The time at which the agent was created.
createdAt
- The time at which the agent was created.public void setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.public String getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
public Agent withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.public void setDescription(String description)
The description of the agent.
description
- The description of the agent.public String getDescription()
The description of the agent.
public Agent withDescription(String description)
The description of the agent.
description
- The description of the agent.public List<String> getFailureReasons()
Contains reasons that the agent-related API that you invoked failed.
public void setFailureReasons(Collection<String> failureReasons)
Contains reasons that the agent-related API that you invoked failed.
failureReasons
- Contains reasons that the agent-related API that you invoked failed.public Agent withFailureReasons(String... failureReasons)
Contains reasons that the agent-related API that you invoked failed.
NOTE: This method appends the values to the existing list (if any). Use
setFailureReasons(java.util.Collection)
or withFailureReasons(java.util.Collection)
if you want
to override the existing values.
failureReasons
- Contains reasons that the agent-related API that you invoked failed.public Agent withFailureReasons(Collection<String> failureReasons)
Contains reasons that the agent-related API that you invoked failed.
failureReasons
- Contains reasons that the agent-related API that you invoked failed.public void setFoundationModel(String foundationModel)
The foundation model used for orchestration by the agent.
foundationModel
- The foundation model used for orchestration by the agent.public String getFoundationModel()
The foundation model used for orchestration by the agent.
public Agent withFoundationModel(String foundationModel)
The foundation model used for orchestration by the agent.
foundationModel
- The foundation model used for orchestration by the agent.public void setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Details about the guardrail associated with the agent.
guardrailConfiguration
- Details about the guardrail associated with the agent.public GuardrailConfiguration getGuardrailConfiguration()
Details about the guardrail associated with the agent.
public Agent withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Details about the guardrail associated with the agent.
guardrailConfiguration
- Details about the guardrail associated with the agent.public void setIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
idleSessionTTLInSeconds
- The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the
agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
public Integer getIdleSessionTTLInSeconds()
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
public Agent withIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
idleSessionTTLInSeconds
- The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the
agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
public void setInstruction(String instruction)
Instructions that tell the agent what it should do and how it should interact with users.
instruction
- Instructions that tell the agent what it should do and how it should interact with users.public String getInstruction()
Instructions that tell the agent what it should do and how it should interact with users.
public Agent withInstruction(String instruction)
Instructions that tell the agent what it should do and how it should interact with users.
instruction
- Instructions that tell the agent what it should do and how it should interact with users.public void setMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains memory configuration for the agent.
memoryConfiguration
- Contains memory configuration for the agent.public MemoryConfiguration getMemoryConfiguration()
Contains memory configuration for the agent.
public Agent withMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains memory configuration for the agent.
memoryConfiguration
- Contains memory configuration for the agent.public void setPreparedAt(Date preparedAt)
The time at which the agent was last prepared.
preparedAt
- The time at which the agent was last prepared.public Date getPreparedAt()
The time at which the agent was last prepared.
public Agent withPreparedAt(Date preparedAt)
The time at which the agent was last prepared.
preparedAt
- The time at which the agent was last prepared.public void setPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.
promptOverrideConfiguration
- Contains configurations to override prompt templates in different parts of an agent sequence. For more
information, see Advanced prompts.public PromptOverrideConfiguration getPromptOverrideConfiguration()
Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.
public Agent withPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts.
promptOverrideConfiguration
- Contains configurations to override prompt templates in different parts of an agent sequence. For more
information, see Advanced prompts.public List<String> getRecommendedActions()
Contains recommended actions to take for the agent-related API that you invoked to succeed.
public void setRecommendedActions(Collection<String> recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
recommendedActions
- Contains recommended actions to take for the agent-related API that you invoked to succeed.public Agent withRecommendedActions(String... recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
NOTE: This method appends the values to the existing list (if any). Use
setRecommendedActions(java.util.Collection)
or withRecommendedActions(java.util.Collection)
if
you want to override the existing values.
recommendedActions
- Contains recommended actions to take for the agent-related API that you invoked to succeed.public Agent withRecommendedActions(Collection<String> recommendedActions)
Contains recommended actions to take for the agent-related API that you invoked to succeed.
recommendedActions
- Contains recommended actions to take for the agent-related API that you invoked to succeed.public void setUpdatedAt(Date updatedAt)
The time at which the agent was last updated.
updatedAt
- The time at which the agent was last updated.public Date getUpdatedAt()
The time at which the agent was last updated.
public Agent withUpdatedAt(Date updatedAt)
The time at which the agent was last updated.
updatedAt
- The time at which the agent was last updated.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.