@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 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 name for the block list.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block
list text file.
|
S3Path |
getSourceS3Path()
The S3 path to your block list text file in your S3 bucket.
|
List<Tag> |
getTags()
A list of key-value pairs that identify or categorize 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 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 name for the block list.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block
list text file.
|
void |
setSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize 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 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 name for the block list.
|
CreateQuerySuggestionsBlockListRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block
list text file.
|
CreateQuerySuggestionsBlockListRequest |
withSourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
|
CreateQuerySuggestionsBlockListRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the block list.
|
CreateQuerySuggestionsBlockListRequest |
withTags(Tag... tags)
A list of key-value pairs that identify or categorize 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 name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
name
- A name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public String getName()
A name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public CreateQuerySuggestionsBlockListRequest withName(String name)
A name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
name
- A name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
public void setDescription(String description)
A 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 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 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 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 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 Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the
block list text file. For more information, see IAM access roles for Amazon Kendra.public String getRoleArn()
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.
public CreateQuerySuggestionsBlockListRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the
block list text file. For more information, see IAM access roles for Amazon Kendra.public List<Tag> getTags()
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
public void setTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
tags
- A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of
Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.public CreateQuerySuggestionsBlockListRequest withTags(Tag... tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
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 or categorize the block list. Tag keys and values can consist of
Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.public CreateQuerySuggestionsBlockListRequest withTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
tags
- A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of
Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.public String toString()
toString
in class Object
Object.toString()
public CreateQuerySuggestionsBlockListRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()