Class S3ObjectsItemReaderProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.S3ObjectsItemReaderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ObjectsItemReaderProps>
- Enclosing interface:
S3ObjectsItemReaderProps
@Stability(Stable)
public static final class S3ObjectsItemReaderProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3ObjectsItemReaderProps>
A builder for
S3ObjectsItemReaderProps
-
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 ofItemReaderProps.getMaxItems()
Sets the value ofS3ObjectsItemReaderProps.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefix
Sets the value ofS3ObjectsItemReaderProps.getPrefix()
- Parameters:
prefix
- S3 prefix used to limit objects to iterate over.- 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<S3ObjectsItemReaderProps>
- Returns:
- a new instance of
S3ObjectsItemReaderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-