Class S3FileItemReaderProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.S3FileItemReaderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3FileItemReaderProps>
- Enclosing interface:
- S3FileItemReaderProps
@Stability(Stable)
public static final class S3FileItemReaderProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3FileItemReaderProps>
A builder for
S3FileItemReaderProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofItemReaderProps.getBucket()
bucketNamePath
(String bucketNamePath) Sets the value ofItemReaderProps.getBucketNamePath()
build()
Builds the configured instance.Sets the value ofS3FileItemReaderProps.getKey()
Sets the value ofItemReaderProps.getMaxItems()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<S3FileItemReaderProps>
- Returns:
- a new instance of
S3FileItemReaderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-