@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFaqRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFaqRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFaqRequest |
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 FAQ.
|
String |
getDescription()
A description for the FAQ.
|
String |
getFileFormat()
The format of the FAQ input file.
|
String |
getIndexId()
The identifier of the index for the FAQ.
|
String |
getLanguageCode()
The code for a language.
|
String |
getName()
A name for the FAQ.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs.
|
S3Path |
getS3Path()
The path to the FAQ file in S3.
|
List<Tag> |
getTags()
A list of key-value pairs that identify the FAQ.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A token that you provide to identify the request to create a FAQ.
|
void |
setDescription(String description)
A description for the FAQ.
|
void |
setFileFormat(String fileFormat)
The format of the FAQ input file.
|
void |
setIndexId(String indexId)
The identifier of the index for the FAQ.
|
void |
setLanguageCode(String languageCode)
The code for a language.
|
void |
setName(String name)
A name for the FAQ.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs.
|
void |
setS3Path(S3Path s3Path)
The path to the FAQ file in S3.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that identify the FAQ.
|
String |
toString()
Returns a string representation of this object.
|
CreateFaqRequest |
withClientToken(String clientToken)
A token that you provide to identify the request to create a FAQ.
|
CreateFaqRequest |
withDescription(String description)
A description for the FAQ.
|
CreateFaqRequest |
withFileFormat(FaqFileFormat fileFormat)
The format of the FAQ input file.
|
CreateFaqRequest |
withFileFormat(String fileFormat)
The format of the FAQ input file.
|
CreateFaqRequest |
withIndexId(String indexId)
The identifier of the index for the FAQ.
|
CreateFaqRequest |
withLanguageCode(String languageCode)
The code for a language.
|
CreateFaqRequest |
withName(String name)
A name for the FAQ.
|
CreateFaqRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs.
|
CreateFaqRequest |
withS3Path(S3Path s3Path)
The path to the FAQ file in S3.
|
CreateFaqRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs that identify the FAQ.
|
CreateFaqRequest |
withTags(Tag... tags)
A list of key-value pairs that identify the FAQ.
|
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 FAQ.
indexId
- The identifier of the index for the FAQ.public String getIndexId()
The identifier of the index for the FAQ.
public CreateFaqRequest withIndexId(String indexId)
The identifier of the index for the FAQ.
indexId
- The identifier of the index for the FAQ.public void setName(String name)
A name for the FAQ.
name
- A name for the FAQ.public String getName()
A name for the FAQ.
public CreateFaqRequest withName(String name)
A name for the FAQ.
name
- A name for the FAQ.public void setDescription(String description)
A description for the FAQ.
description
- A description for the FAQ.public String getDescription()
A description for the FAQ.
public CreateFaqRequest withDescription(String description)
A description for the FAQ.
description
- A description for the FAQ.public void setS3Path(S3Path s3Path)
The path to the FAQ file in S3.
s3Path
- The path to the FAQ file in S3.public S3Path getS3Path()
The path to the FAQ file in S3.
public CreateFaqRequest withS3Path(S3Path s3Path)
The path to the FAQ file in S3.
s3Path
- The path to the FAQ file in S3.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM access roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the
FAQs. 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 the S3 bucket that contains the FAQs. For more information, see IAM access roles for Amazon Kendra.
public CreateFaqRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM access roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the
FAQs. For more information, see IAM
access roles for Amazon Kendra.public List<Tag> getTags()
A list of key-value pairs that identify the FAQ. 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 FAQ. 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 FAQ. You can use the tags to identify and organize your
resources and to control access to resources.public CreateFaqRequest withTags(Tag... tags)
A list of key-value pairs that identify the FAQ. 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 FAQ. You can use the tags to identify and organize your
resources and to control access to resources.public CreateFaqRequest withTags(Collection<Tag> tags)
A list of key-value pairs that identify the FAQ. 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 FAQ. You can use the tags to identify and organize your
resources and to control access to resources.public void setFileFormat(String fileFormat)
The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
fileFormat
- The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes
customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
FaqFileFormat
public String getFileFormat()
The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the
S3Path
parameter.
For more information, see Adding questions and answers.
FaqFileFormat
public CreateFaqRequest withFileFormat(String fileFormat)
The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
fileFormat
- The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes
customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
FaqFileFormat
public CreateFaqRequest withFileFormat(FaqFileFormat fileFormat)
The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
fileFormat
- The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes
customs attributes in a header, and a JSON format that includes custom attributes.
The default format is CSV.
The format must match the format of the file stored in the S3 bucket identified in the S3Path
parameter.
For more information, see Adding questions and answers.
FaqFileFormat
public void setClientToken(String clientToken)
A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest
API with the same client token will create only one FAQ.
clientToken
- A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest
API with the same client token will create only one FAQ.public String getClientToken()
A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest
API with the same client token will create only one FAQ.
CreateFaqRequest
API with the same client token will create only one FAQ.public CreateFaqRequest withClientToken(String clientToken)
A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest
API with the same client token will create only one FAQ.
clientToken
- A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest
API with the same client token will create only one FAQ.public void setLanguageCode(String languageCode)
The code for a language. This allows you to support a language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
languageCode
- The code for a language. This allows you to support a language for the FAQ document. English is supported
by default. For more information on supported languages, including their codes, see Adding documents in languages
other than English.public String getLanguageCode()
The code for a language. This allows you to support a language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
public CreateFaqRequest withLanguageCode(String languageCode)
The code for a language. This allows you to support a language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
languageCode
- The code for a language. This allows you to support a language for the FAQ document. English is supported
by default. For more information on supported languages, including their codes, see Adding documents in languages
other than English.public String toString()
toString
in class Object
Object.toString()
public CreateFaqRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()