Class S3CsvItemReaderProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.S3CsvItemReaderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3CsvItemReaderProps>
- Enclosing interface:
- S3CsvItemReaderProps
@Stability(Stable)
public static final class S3CsvItemReaderProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3CsvItemReaderProps>
A builder for
S3CsvItemReaderProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofItemReaderProps.getBucket()
bucketNamePath
(String bucketNamePath) Sets the value ofItemReaderProps.getBucketNamePath()
build()
Builds the configured instance.csvHeaders
(CsvHeaders csvHeaders) Sets the value ofS3CsvItemReaderProps.getCsvHeaders()
Sets the value ofS3FileItemReaderProps.getKey()
Sets the value ofItemReaderProps.getMaxItems()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
csvHeaders
Sets the value ofS3CsvItemReaderProps.getCsvHeaders()
- Parameters:
csvHeaders
- CSV file header configuration.- Returns:
this
-
key
Sets the value ofS3FileItemReaderProps.getKey()
- Parameters:
key
- Key of file stored in S3 bucket containing an array to iterate over. This parameter is required.- Returns:
this
-
bucket
Sets the value ofItemReaderProps.getBucket()
- Parameters:
bucket
- S3 Bucket containing objects to iterate over or a file with a list to iterate over.- Returns:
this
-
bucketNamePath
Sets the value ofItemReaderProps.getBucketNamePath()
- Parameters:
bucketNamePath
- S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.- Returns:
this
-
maxItems
Sets the value ofItemReaderProps.getMaxItems()
- Parameters:
maxItems
- Limits the number of items passed to the Distributed Map state.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3CsvItemReaderProps>
- Returns:
- a new instance of
S3CsvItemReaderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-