@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 String indexId()
The identifier of the index that contains the FAQ.
public String name()
The name that should be associated with the FAQ.
public String description()
A description of the FAQ.
public S3Path s3Path()
The S3 location of the FAQ input data.
public 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 boolean hasTags()
public 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 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 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 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 int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.