Class CfnDataSource.S3PathProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.S3PathProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.S3PathProperty>
- Enclosing interface:
- CfnDataSource.S3PathProperty
@Stability(Stable)
public static final class CfnDataSource.S3PathProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.S3PathProperty>
A builder for
CfnDataSource.S3PathProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataSource.S3PathProperty.getBucket()build()Builds the configured instance.Sets the value ofCfnDataSource.S3PathProperty.getKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnDataSource.S3PathProperty.getBucket()- Parameters:
bucket- The name of the S3 bucket that contains the file. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnDataSource.S3PathProperty.getKey()- Parameters:
key- The name of the file. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.S3PathProperty>- Returns:
- a new instance of
CfnDataSource.S3PathProperty - Throws:
NullPointerException- if any required attribute was not provided
-