@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()
The description for the new thesaurus.
|
String |
getIndexId()
The unique identifier of the index for the new thesaurus.
|
String |
getName()
The name for the new thesaurus.
|
String |
getRoleArn()
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path . |
S3Path |
getSourceS3Path()
The thesaurus file Amazon S3 source path.
|
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)
The description for the new thesaurus.
|
void |
setIndexId(String indexId)
The unique identifier of the index for the new thesaurus.
|
void |
setName(String name)
The name for the new 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 thesaurus file Amazon S3 source path.
|
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)
The description for the new thesaurus.
|
CreateThesaurusRequest |
withIndexId(String indexId)
The unique identifier of the index for the new thesaurus.
|
CreateThesaurusRequest |
withName(String name)
The name for the new 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 thesaurus file Amazon S3 source path.
|
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 unique identifier of the index for the new thesaurus.
indexId
- The unique identifier of the index for the new thesaurus.public String getIndexId()
The unique identifier of the index for the new thesaurus.
public CreateThesaurusRequest withIndexId(String indexId)
The unique identifier of the index for the new thesaurus.
indexId
- The unique identifier of the index for the new thesaurus.public void setName(String name)
The name for the new thesaurus.
name
- The name for the new thesaurus.public String getName()
The name for the new thesaurus.
public CreateThesaurusRequest withName(String name)
The name for the new thesaurus.
name
- The name for the new thesaurus.public void setDescription(String description)
The description for the new thesaurus.
description
- The description for the new thesaurus.public String getDescription()
The description for the new thesaurus.
public CreateThesaurusRequest withDescription(String description)
The description for the new thesaurus.
description
- The description for the new 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 thesaurus file Amazon S3 source path.
sourceS3Path
- The thesaurus file Amazon S3 source path.public S3Path getSourceS3Path()
The thesaurus file Amazon S3 source path.
public CreateThesaurusRequest withSourceS3Path(S3Path sourceS3Path)
The thesaurus file Amazon S3 source path.
sourceS3Path
- The thesaurus file Amazon S3 source path.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()