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 Details

    • Builder

      public Builder()
  • Method Details

    • bucketName

      @Stability(Stable) public Location.Builder bucketName(String bucketName)
      Sets the value of Location.getBucketName()
      Parameters:
      bucketName - The name of the S3 Bucket the object is in. This parameter is required.
      Returns:
      this
    • objectKey

      @Stability(Stable) public Location.Builder objectKey(String objectKey)
      Sets the value of Location.getObjectKey()
      Parameters:
      objectKey - The path inside the Bucket where the object is located at. This parameter is required.
      Returns:
      this
    • objectVersion

      @Stability(Stable) public Location.Builder objectVersion(String objectVersion)
      Sets the value of Location.getObjectVersion()
      Parameters:
      objectVersion - The S3 object version.
      Returns:
      this
    • build

      @Stability(Stable) public Location build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Location>
      Returns:
      a new instance of Location
      Throws:
      NullPointerException - if any required attribute was not provided