public static final class CfnFaqProps.Builder
extends java.lang.Object
CfnFaqProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnFaqProps |
build()
Builds the configured instance.
|
CfnFaqProps.Builder |
description(java.lang.String description)
Sets the value of
CfnFaqProps.getDescription() |
CfnFaqProps.Builder |
fileFormat(java.lang.String fileFormat)
Sets the value of
CfnFaqProps.getFileFormat() |
CfnFaqProps.Builder |
indexId(java.lang.String indexId)
Sets the value of
CfnFaqProps.getIndexId() |
CfnFaqProps.Builder |
name(java.lang.String name)
Sets the value of
CfnFaqProps.getName() |
CfnFaqProps.Builder |
roleArn(java.lang.String roleArn)
Sets the value of
CfnFaqProps.getRoleArn() |
CfnFaqProps.Builder |
s3Path(CfnFaq.S3PathProperty s3Path)
Sets the value of
CfnFaqProps.getS3Path() |
CfnFaqProps.Builder |
s3Path(IResolvable s3Path)
Sets the value of
CfnFaqProps.getS3Path() |
CfnFaqProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnFaqProps.getTags() |
public CfnFaqProps.Builder indexId(java.lang.String indexId)
CfnFaqProps.getIndexId()
indexId
- The identifier of the index that contains the FAQ. This parameter is required.this
public CfnFaqProps.Builder name(java.lang.String name)
CfnFaqProps.getName()
name
- The name that you assigned the FAQ when you created or updated the FAQ. This parameter is required.this
public CfnFaqProps.Builder roleArn(java.lang.String roleArn)
CfnFaqProps.getRoleArn()
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ. This parameter is required.this
public CfnFaqProps.Builder s3Path(IResolvable s3Path)
CfnFaqProps.getS3Path()
s3Path
- The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data. This parameter is required.this
public CfnFaqProps.Builder s3Path(CfnFaq.S3PathProperty s3Path)
CfnFaqProps.getS3Path()
s3Path
- The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data. This parameter is required.this
public CfnFaqProps.Builder description(java.lang.String description)
CfnFaqProps.getDescription()
description
- A description of the FAQ.this
public CfnFaqProps.Builder fileFormat(java.lang.String fileFormat)
CfnFaqProps.getFileFormat()
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.
Valid values are:
CSV
CSV_WITH_HEADER
JSON
this
public CfnFaqProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnFaqProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnFaqProps build()
CfnFaqProps
java.lang.NullPointerException
- if any required attribute was not provided