Interface CreateFaqRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateFaqRequest.Builder,CreateFaqRequest>,KendraRequest.Builder,SdkBuilder<CreateFaqRequest.Builder,CreateFaqRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateFaqRequest
public static interface CreateFaqRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<CreateFaqRequest.Builder,CreateFaqRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateFaqRequest.BuilderclientToken(String clientToken)A token that you provide to identify the request to create a FAQ.CreateFaqRequest.Builderdescription(String description)A description for the FAQ.CreateFaqRequest.BuilderfileFormat(String fileFormat)The format of the FAQ input file.CreateFaqRequest.BuilderfileFormat(FaqFileFormat fileFormat)The format of the FAQ input file.CreateFaqRequest.BuilderindexId(String indexId)The identifier of the index for the FAQ.CreateFaqRequest.BuilderlanguageCode(String languageCode)The code for a language.CreateFaqRequest.Buildername(String name)A name for the FAQ.CreateFaqRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateFaqRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateFaqRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs.default CreateFaqRequest.Builders3Path(Consumer<S3Path.Builder> s3Path)The path to the FAQ file in S3.CreateFaqRequest.Builders3Path(S3Path s3Path)The path to the FAQ file in S3.CreateFaqRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs that identify the FAQ.CreateFaqRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs that identify the FAQ.CreateFaqRequest.Buildertags(Tag... tags)A list of key-value pairs that identify the FAQ.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
indexId
CreateFaqRequest.Builder indexId(String indexId)
The identifier of the index for the FAQ.
- Parameters:
indexId- The identifier of the index for the FAQ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateFaqRequest.Builder name(String name)
A name for the FAQ.
- Parameters:
name- A name for the FAQ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateFaqRequest.Builder description(String description)
A description for the FAQ.
- Parameters:
description- A description for the FAQ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Path
CreateFaqRequest.Builder s3Path(S3Path s3Path)
The path to the FAQ file in S3.
- Parameters:
s3Path- The path to the FAQ file in S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Path
default CreateFaqRequest.Builder s3Path(Consumer<S3Path.Builder> s3Path)
The path to the FAQ file in S3.
This is a convenience method that creates an instance of theS3Path.Builderavoiding the need to create one manually viaS3Path.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tos3Path(S3Path).- Parameters:
s3Path- a consumer that will call methods onS3Path.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
s3Path(S3Path)
-
roleArn
CreateFaqRequest.Builder roleArn(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateFaqRequest.Builder tags(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateFaqRequest.Builder tags(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateFaqRequest.Builder tags(Consumer<Tag.Builder>... 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.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
fileFormat
CreateFaqRequest.Builder fileFormat(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
S3Pathparameter.For more information, see Adding questions and answers.
- Parameters:
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
S3Pathparameter.For more information, see Adding questions and answers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FaqFileFormat,FaqFileFormat
-
fileFormat
CreateFaqRequest.Builder fileFormat(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
S3Pathparameter.For more information, see Adding questions and answers.
- Parameters:
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
S3Pathparameter.For more information, see Adding questions and answers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FaqFileFormat,FaqFileFormat
-
clientToken
CreateFaqRequest.Builder clientToken(String clientToken)
A token that you provide to identify the request to create a FAQ. Multiple calls to the
CreateFaqRequestAPI with the same client token will create only one FAQ.- Parameters:
clientToken- A token that you provide to identify the request to create a FAQ. Multiple calls to theCreateFaqRequestAPI with the same client token will create only one FAQ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageCode
CreateFaqRequest.Builder languageCode(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateFaqRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateFaqRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-