@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateThesaurusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateThesaurusRequest() |
Modifier and Type | Method and Description |
---|---|
CreateThesaurusRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A token that you provide to identify the request to create a thesaurus.
|
String |
getDescription()
A description for the thesaurus.
|
String |
getIndexId()
The identifier of the index for the thesaurus.
|
String |
getName()
A name for the thesaurus.
|
String |
getRoleArn()
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path . |
S3Path |
getSourceS3Path()
The path to the thesaurus file in S3.
|
List<Tag> |
getTags()
A list of key-value pairs that identify the thesaurus.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A token that you provide to identify the request to create a thesaurus.
|
void |
setDescription(String description)
A description for the thesaurus.
|
void |
setIndexId(String indexId)
The identifier of the index for the thesaurus.
|
void |
setName(String name)
A name for the thesaurus.
|
void |
setRoleArn(String roleArn)
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path . |
void |
setSourceS3Path(S3Path sourceS3Path)
The path to the thesaurus file in S3.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that identify the thesaurus.
|
String |
toString()
Returns a string representation of this object.
|
CreateThesaurusRequest |
withClientToken(String clientToken)
A token that you provide to identify the request to create a thesaurus.
|
CreateThesaurusRequest |
withDescription(String description)
A description for the thesaurus.
|
CreateThesaurusRequest |
withIndexId(String indexId)
The identifier of the index for the thesaurus.
|
CreateThesaurusRequest |
withName(String name)
A name for the thesaurus.
|
CreateThesaurusRequest |
withRoleArn(String roleArn)
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path . |
CreateThesaurusRequest |
withSourceS3Path(S3Path sourceS3Path)
The path to the thesaurus file in S3.
|
CreateThesaurusRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs that identify the thesaurus.
|
CreateThesaurusRequest |
withTags(Tag... tags)
A list of key-value pairs that identify the thesaurus.
|
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 setIndexId(String indexId)
The identifier of the index for the thesaurus.
indexId
- The identifier of the index for the thesaurus.public String getIndexId()
The identifier of the index for the thesaurus.
public CreateThesaurusRequest withIndexId(String indexId)
The identifier of the index for the thesaurus.
indexId
- The identifier of the index for the thesaurus.public void setName(String name)
A name for the thesaurus.
name
- A name for the thesaurus.public String getName()
A name for the thesaurus.
public CreateThesaurusRequest withName(String name)
A name for the thesaurus.
name
- A name for the thesaurus.public void setDescription(String description)
A description for the thesaurus.
description
- A description for the thesaurus.public String getDescription()
A description for the thesaurus.
public CreateThesaurusRequest withDescription(String description)
A description for the thesaurus.
description
- A description for the thesaurus.public void setRoleArn(String roleArn)
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path
.
roleArn
- An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path
.public String getRoleArn()
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path
.
SourceS3Path
.public CreateThesaurusRequest withRoleArn(String roleArn)
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path
.
roleArn
- An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path
.public List<Tag> getTags()
A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.
public void setTags(Collection<Tag> tags)
A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.
tags
- A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your
resources and to control access to resources.public CreateThesaurusRequest withTags(Tag... tags)
A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your
resources and to control access to resources.public CreateThesaurusRequest withTags(Collection<Tag> tags)
A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your resources and to control access to resources.
tags
- A list of key-value pairs that identify the thesaurus. You can use the tags to identify and organize your
resources and to control access to resources.public void setSourceS3Path(S3Path sourceS3Path)
The path to the thesaurus file in S3.
sourceS3Path
- The path to the thesaurus file in S3.public S3Path getSourceS3Path()
The path to the thesaurus file in S3.
public CreateThesaurusRequest withSourceS3Path(S3Path sourceS3Path)
The path to the thesaurus file in S3.
sourceS3Path
- The path to the thesaurus file in S3.public void setClientToken(String clientToken)
A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurus
API with the same client token will create only one thesaurus.
clientToken
- A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurus
API with the same client token will create only one thesaurus.public String getClientToken()
A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurus
API with the same client token will create only one thesaurus.
CreateThesaurus
API with the same client token will create only one thesaurus.public CreateThesaurusRequest withClientToken(String clientToken)
A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurus
API with the same client token will create only one thesaurus.
clientToken
- A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurus
API with the same client token will create only one thesaurus.public String toString()
toString
in class Object
Object.toString()
public CreateThesaurusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()