@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKnowledgeBaseRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateKnowledgeBaseRequest() |
Modifier and Type | Method and Description |
---|---|
CreateKnowledgeBaseRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateKnowledgeBaseRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateKnowledgeBaseRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
String |
getDescription()
A description of the knowledge base.
|
KnowledgeBaseConfiguration |
getKnowledgeBaseConfiguration()
Contains details about the embeddings model used for the knowledge base.
|
String |
getName()
A name for the knowledge base.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
StorageConfiguration |
getStorageConfiguration()
Contains details about the configuration of the vector database used for the knowledge base.
|
Map<String,String> |
getTags()
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
void |
setDescription(String description)
A description of the knowledge base.
|
void |
setKnowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Contains details about the embeddings model used for the knowledge base.
|
void |
setName(String name)
A name for the knowledge base.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
void |
setStorageConfiguration(StorageConfiguration storageConfiguration)
Contains details about the configuration of the vector database used for the knowledge base.
|
void |
setTags(Map<String,String> tags)
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
|
String |
toString()
Returns a string representation of this object.
|
CreateKnowledgeBaseRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
|
CreateKnowledgeBaseRequest |
withDescription(String description)
A description of the knowledge base.
|
CreateKnowledgeBaseRequest |
withKnowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Contains details about the embeddings model used for the knowledge base.
|
CreateKnowledgeBaseRequest |
withName(String name)
A name for the knowledge base.
|
CreateKnowledgeBaseRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
CreateKnowledgeBaseRequest |
withStorageConfiguration(StorageConfiguration storageConfiguration)
Contains details about the configuration of the vector database used for the knowledge base.
|
CreateKnowledgeBaseRequest |
withTags(Map<String,String> tags)
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
|
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 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 CreateKnowledgeBaseRequest 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 setDescription(String description)
A description of the knowledge base.
description
- A description of the knowledge base.public String getDescription()
A description of the knowledge base.
public CreateKnowledgeBaseRequest withDescription(String description)
A description of the knowledge base.
description
- A description of the knowledge base.public void setKnowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Contains details about the embeddings model used for the knowledge base.
knowledgeBaseConfiguration
- Contains details about the embeddings model used for the knowledge base.public KnowledgeBaseConfiguration getKnowledgeBaseConfiguration()
Contains details about the embeddings model used for the knowledge base.
public CreateKnowledgeBaseRequest withKnowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)
Contains details about the embeddings model used for the knowledge base.
knowledgeBaseConfiguration
- Contains details about the embeddings model used for the knowledge base.public void setName(String name)
A name for the knowledge base.
name
- A name for the knowledge base.public String getName()
A name for the knowledge base.
public CreateKnowledgeBaseRequest withName(String name)
A name for the knowledge base.
name
- A name for the knowledge base.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
roleArn
- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge
base.public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
public CreateKnowledgeBaseRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
roleArn
- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge
base.public void setStorageConfiguration(StorageConfiguration storageConfiguration)
Contains details about the configuration of the vector database used for the knowledge base.
storageConfiguration
- Contains details about the configuration of the vector database used for the knowledge base.public StorageConfiguration getStorageConfiguration()
Contains details about the configuration of the vector database used for the knowledge base.
public CreateKnowledgeBaseRequest withStorageConfiguration(StorageConfiguration storageConfiguration)
Contains details about the configuration of the vector database used for the knowledge base.
storageConfiguration
- Contains details about the configuration of the vector database used for the knowledge base.public Map<String,String> getTags()
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
public void setTags(Map<String,String> tags)
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
tags
- Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.public CreateKnowledgeBaseRequest withTags(Map<String,String> tags)
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
tags
- Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.public CreateKnowledgeBaseRequest addTagsEntry(String key, String value)
public CreateKnowledgeBaseRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateKnowledgeBaseRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()