@Generated(value="software.amazon.awssdk:codegen") public final class CreateFaqRequest extends KendraRequest implements ToCopyableBuilder<CreateFaqRequest.Builder,CreateFaqRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateFaqRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateFaqRequest.Builder |
builder() |
String |
clientToken()
A token that you provide to identify the request to create a FAQ.
|
String |
description()
A description of the FAQ.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FaqFileFormat |
fileFormat()
The format of the input file.
|
String |
fileFormatAsString()
The format of the input file.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
indexId()
The identifier of the index that contains the FAQ.
|
String |
name()
The name that should be associated with the FAQ.
|
String |
roleArn()
The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQs.
|
S3Path |
s3Path()
The S3 location of the FAQ input data.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFaqRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
A list of key-value pairs that identify the FAQ.
|
CreateFaqRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String indexId()
The identifier of the index that contains the FAQ.
public final String name()
The name that should be associated with the FAQ.
public final String description()
A description of the FAQ.
public final S3Path s3Path()
The S3 location of the FAQ input data.
public final String roleArn()
The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
public final boolean hasTags()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final FaqFileFormat fileFormat()
The format of the 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 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.
If the service returns an enum value that is not available in the current SDK version, fileFormat will
return FaqFileFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fileFormatAsString().
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.
FaqFileFormatpublic final String fileFormatAsString()
The format of the 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 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.
If the service returns an enum value that is not available in the current SDK version, fileFormat will
return FaqFileFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fileFormatAsString().
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.
FaqFileFormatpublic final String clientToken()
A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequest operation with the same client token will create only one FAQ.
CreateFaqRequest operation with the same client token will create only one FAQ.public CreateFaqRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateFaqRequest.Builder,CreateFaqRequest>toBuilder in class KendraRequestpublic static CreateFaqRequest.Builder builder()
public static Class<? extends CreateFaqRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.