@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAgentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAgentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAgentRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateAgentRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateAgentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAgentName()
A name for the agent that you create.
|
String |
getAgentResourceRoleArn()
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
String |
getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
String |
getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
|
String |
getDescription()
A description of the agent.
|
String |
getFoundationModel()
The foundation model to be used for orchestration by the agent you create.
|
GuardrailConfiguration |
getGuardrailConfiguration()
The unique Guardrail configuration assigned to the agent when it is created.
|
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 the details of the memory configured for the agent.
|
PromptOverrideConfiguration |
getPromptOverrideConfiguration()
Contains configurations to override prompts in different parts of an agent sequence.
|
Map<String,String> |
getTags()
Any tags that you want to attach to the agent.
|
int |
hashCode() |
void |
setAgentName(String agentName)
A name for the agent that you create.
|
void |
setAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
void |
setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
|
void |
setDescription(String description)
A description of the agent.
|
void |
setFoundationModel(String foundationModel)
The foundation model to be used for orchestration by the agent you create.
|
void |
setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is created.
|
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 the details of the memory configured for the agent.
|
void |
setPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence.
|
void |
setTags(Map<String,String> tags)
Any tags that you want to attach to the agent.
|
String |
toString()
Returns a string representation of this object.
|
CreateAgentRequest |
withAgentName(String agentName)
A name for the agent that you create.
|
CreateAgentRequest |
withAgentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
|
CreateAgentRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
CreateAgentRequest |
withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
|
CreateAgentRequest |
withDescription(String description)
A description of the agent.
|
CreateAgentRequest |
withFoundationModel(String foundationModel)
The foundation model to be used for orchestration by the agent you create.
|
CreateAgentRequest |
withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is created.
|
CreateAgentRequest |
withIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
|
CreateAgentRequest |
withInstruction(String instruction)
Instructions that tell the agent what it should do and how it should interact with users.
|
CreateAgentRequest |
withMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains the details of the memory configured for the agent.
|
CreateAgentRequest |
withPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence.
|
CreateAgentRequest |
withTags(Map<String,String> tags)
Any tags that you want to attach to the agent.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAgentName(String agentName)
A name for the agent that you create.
agentName
- A name for the agent that you create.public String getAgentName()
A name for the agent that you create.
public CreateAgentRequest withAgentName(String agentName)
A name for the agent that you create.
agentName
- A name for the agent that you create.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 CreateAgentRequest 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 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 CreateAgentRequest 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 setCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.public String getCustomerEncryptionKeyArn()
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
public CreateAgentRequest withCustomerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.public void setDescription(String description)
A description of the agent.
description
- A description of the agent.public String getDescription()
A description of the agent.
public CreateAgentRequest withDescription(String description)
A description of the agent.
description
- A description of the agent.public void setFoundationModel(String foundationModel)
The foundation model to be used for orchestration by the agent you create.
foundationModel
- The foundation model to be used for orchestration by the agent you create.public String getFoundationModel()
The foundation model to be used for orchestration by the agent you create.
public CreateAgentRequest withFoundationModel(String foundationModel)
The foundation model to be used for orchestration by the agent you create.
foundationModel
- The foundation model to be used for orchestration by the agent you create.public void setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is created.
guardrailConfiguration
- The unique Guardrail configuration assigned to the agent when it is created.public GuardrailConfiguration getGuardrailConfiguration()
The unique Guardrail configuration assigned to the agent when it is created.
public CreateAgentRequest withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is created.
guardrailConfiguration
- The unique Guardrail configuration assigned to the agent when it is created.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 CreateAgentRequest 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 CreateAgentRequest 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 the details of the memory configured for the agent.
memoryConfiguration
- Contains the details of the memory configured for the agent.public MemoryConfiguration getMemoryConfiguration()
Contains the details of the memory configured for the agent.
public CreateAgentRequest withMemoryConfiguration(MemoryConfiguration memoryConfiguration)
Contains the details of the memory configured for the agent.
memoryConfiguration
- Contains the details of the memory configured for the agent.public void setPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
promptOverrideConfiguration
- Contains configurations to override prompts in different parts of an agent sequence. For more information,
see Advanced
prompts.public PromptOverrideConfiguration getPromptOverrideConfiguration()
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
public CreateAgentRequest withPromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
promptOverrideConfiguration
- Contains configurations to override prompts in different parts of an agent sequence. For more information,
see Advanced
prompts.public Map<String,String> getTags()
Any tags that you want to attach to the agent.
public void setTags(Map<String,String> tags)
Any tags that you want to attach to the agent.
tags
- Any tags that you want to attach to the agent.public CreateAgentRequest withTags(Map<String,String> tags)
Any tags that you want to attach to the agent.
tags
- Any tags that you want to attach to the agent.public CreateAgentRequest addTagsEntry(String key, String value)
public CreateAgentRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateAgentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()