@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateQuerySuggestionsBlockListRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateQuerySuggestionsBlockListRequest() |
Modifier and Type | Method and Description |
---|---|
CreateQuerySuggestionsBlockListRequest |
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 query suggestions block list.
|
String |
getDescription()
A user-friendly description for the block list.
|
String |
getIndexId()
The identifier of the index you want to create a query suggestions block list for.
|
String |
getName()
A user friendly name for the block list.
|
String |
getRoleArn()
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3
bucket.
|
S3Path |
getSourceS3Path()
The S3 path to your block list text file in your S3 bucket.
|
List<Tag> |
getTags()
A tag that you can assign to a block list that categorizes the block list.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A token that you provide to identify the request to create a query suggestions block list.
|
void |
setDescription(String description)
A user-friendly description for the block list.
|
void |
setIndexId(String indexId)
The identifier of the index you want to create a query suggestions block list for.
|
void |
setName(String name)
A user friendly name for the block list.
|
void |
setRoleArn(String roleArn)
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3
bucket.
|
void |
setSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
|
void |
setTags(Collection<Tag> tags)
A tag that you can assign to a block list that categorizes the block list.
|
String |
toString()
Returns a string representation of this object.
|
CreateQuerySuggestionsBlockListRequest |
withClientToken(String clientToken)
A token that you provide to identify the request to create a query suggestions block list.
|
CreateQuerySuggestionsBlockListRequest |
withDescription(String description)
A user-friendly description for the block list.
|
CreateQuerySuggestionsBlockListRequest |
withIndexId(String indexId)
The identifier of the index you want to create a query suggestions block list for.
|
CreateQuerySuggestionsBlockListRequest |
withName(String name)
A user friendly name for the block list.
|
CreateQuerySuggestionsBlockListRequest |
withRoleArn(String roleArn)
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3
bucket.
|
CreateQuerySuggestionsBlockListRequest |
withSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
|
CreateQuerySuggestionsBlockListRequest |
withTags(Collection<Tag> tags)
A tag that you can assign to a block list that categorizes the block list.
|
CreateQuerySuggestionsBlockListRequest |
withTags(Tag... tags)
A tag that you can assign to a block list that categorizes the block list.
|
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 CreateQuerySuggestionsBlockListRequest()
public void setIndexId(String indexId)
The identifier of the index you want to create a query suggestions block list for.
indexId
- The identifier of the index you want to create a query suggestions block list for.public String getIndexId()
The identifier of the index you want to create a query suggestions block list for.
public CreateQuerySuggestionsBlockListRequest withIndexId(String indexId)
The identifier of the index you want to create a query suggestions block list for.
indexId
- The identifier of the index you want to create a query suggestions block list for.public void setName(String name)
A user friendly name for the block list.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
name
- A user friendly name for the block list.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public String getName()
A user friendly name for the block list.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public CreateQuerySuggestionsBlockListRequest withName(String name)
A user friendly name for the block list.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
name
- A user friendly name for the block list.
For example, the block list named 'offensive-words' includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public void setDescription(String description)
A user-friendly description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
description
- A user-friendly description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
public String getDescription()
A user-friendly description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
public CreateQuerySuggestionsBlockListRequest withDescription(String description)
A user-friendly description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
description
- A user-friendly description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
public void setSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
sourceS3Path
- The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
public S3Path getSourceS3Path()
The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
public CreateQuerySuggestionsBlockListRequest withSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
sourceS3Path
- The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
public void setClientToken(String clientToken)
A token that you provide to identify the request to create a query suggestions block list.
clientToken
- A token that you provide to identify the request to create a query suggestions block list.public String getClientToken()
A token that you provide to identify the request to create a query suggestions block list.
public CreateQuerySuggestionsBlockListRequest withClientToken(String clientToken)
A token that you provide to identify the request to create a query suggestions block list.
clientToken
- A token that you provide to identify the request to create a query suggestions block list.public void setRoleArn(String roleArn)
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3 bucket.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
roleArn
- The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in
your S3 bucket.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
public String getRoleArn()
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3 bucket.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
public CreateQuerySuggestionsBlockListRequest withRoleArn(String roleArn)
The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in your S3 bucket.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
roleArn
- The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in
your S3 bucket.
You need permissions to the role ARN (Amazon Web Services Resource Name). The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.
public List<Tag> getTags()
A tag that you can assign to a block list that categorizes the block list.
public void setTags(Collection<Tag> tags)
A tag that you can assign to a block list that categorizes the block list.
tags
- A tag that you can assign to a block list that categorizes the block list.public CreateQuerySuggestionsBlockListRequest withTags(Tag... tags)
A tag that you can assign to a block list that categorizes the block list.
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 tag that you can assign to a block list that categorizes the block list.public CreateQuerySuggestionsBlockListRequest withTags(Collection<Tag> tags)
A tag that you can assign to a block list that categorizes the block list.
tags
- A tag that you can assign to a block list that categorizes the block list.public String toString()
toString
in class Object
Object.toString()
public CreateQuerySuggestionsBlockListRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()