Class Location.Builder
java.lang.Object
software.amazon.awscdk.services.s3.Location.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Location>
- Enclosing interface:
Location
@Stability(Stable)
public static final class Location.Builder
extends Object
implements software.amazon.jsii.Builder<Location>
A builder for
Location-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofLocation.getBucketName()build()Builds the configured instance.Sets the value ofLocation.getObjectKey()objectVersion(String objectVersion) Sets the value ofLocation.getObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofLocation.getBucketName()- Parameters:
bucketName- The name of the S3 Bucket the object is in. This parameter is required.- Returns:
this
-
objectKey
Sets the value ofLocation.getObjectKey()- Parameters:
objectKey- The path inside the Bucket where the object is located at. This parameter is required.- Returns:
this
-
objectVersion
Sets the value ofLocation.getObjectVersion()- Parameters:
objectVersion- The S3 object version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Location>- Returns:
- a new instance of
Location - Throws:
NullPointerException- if any required attribute was not provided
-