Class AccessPointProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3objectlambda.AccessPointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPointProps>
- Enclosing interface:
- AccessPointProps
@Stability(Experimental)
public static final class AccessPointProps.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPointProps>
A builder for
AccessPointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPointName(String accessPointName) Sets the value ofAccessPointProps.getAccessPointName()Sets the value ofAccessPointProps.getBucket()build()Builds the configured instance.cloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled) Sets the value ofAccessPointProps.getCloudWatchMetricsEnabled()Sets the value ofAccessPointProps.getHandler()Sets the value ofAccessPointProps.getPayload()supportsGetObjectPartNumber(Boolean supportsGetObjectPartNumber) Sets the value ofAccessPointProps.getSupportsGetObjectPartNumber()supportsGetObjectRange(Boolean supportsGetObjectRange) Sets the value ofAccessPointProps.getSupportsGetObjectRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofAccessPointProps.getBucket()- Parameters:
bucket- The bucket to which this access point belongs. This parameter is required.- Returns:
this
-
handler
Sets the value ofAccessPointProps.getHandler()- Parameters:
handler- The Lambda function used to transform objects. This parameter is required.- Returns:
this
-
accessPointName
Sets the value ofAccessPointProps.getAccessPointName()- Parameters:
accessPointName- The name of the S3 object lambda access point.- Returns:
this
-
cloudWatchMetricsEnabled
@Stability(Experimental) public AccessPointProps.Builder cloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled) Sets the value ofAccessPointProps.getCloudWatchMetricsEnabled()- Parameters:
cloudWatchMetricsEnabled- Whether CloudWatch metrics are enabled for the access point.- Returns:
this
-
payload
@Stability(Experimental) public AccessPointProps.Builder payload(Map<String, ? extends Object> payload) Sets the value ofAccessPointProps.getPayload()- Parameters:
payload- Additional JSON that provides supplemental data passed to the Lambda function on every request.- Returns:
this
-
supportsGetObjectPartNumber
@Stability(Experimental) public AccessPointProps.Builder supportsGetObjectPartNumber(Boolean supportsGetObjectPartNumber) Sets the value ofAccessPointProps.getSupportsGetObjectPartNumber()- Parameters:
supportsGetObjectPartNumber- Whether the Lambda function can processGetObject-PartNumberrequests.- Returns:
this
-
supportsGetObjectRange
@Stability(Experimental) public AccessPointProps.Builder supportsGetObjectRange(Boolean supportsGetObjectRange) Sets the value ofAccessPointProps.getSupportsGetObjectRange()- Parameters:
supportsGetObjectRange- Whether the Lambda function can processGetObject-Rangerequests.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessPointProps>- Returns:
- a new instance of
AccessPointProps - Throws:
NullPointerException- if any required attribute was not provided
-