Package software.amazon.awscdk.core
Class FileAssetLocation.Builder
java.lang.Object
software.amazon.awscdk.core.FileAssetLocation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileAssetLocation>
- Enclosing interface:
- FileAssetLocation
@Stability(Stable)
public static final class FileAssetLocation.Builder
extends Object
implements software.amazon.jsii.Builder<FileAssetLocation>
A builder for
FileAssetLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofFileAssetLocation.getBucketName()
build()
Builds the configured instance.Sets the value ofFileAssetLocation.getHttpUrl()
Sets the value ofFileAssetLocation.getKmsKeyArn()
Sets the value ofFileAssetLocation.getObjectKey()
s3ObjectUrl
(String s3ObjectUrl) Sets the value ofFileAssetLocation.getS3ObjectUrl()
s3ObjectUrlWithPlaceholders
(String s3ObjectUrlWithPlaceholders) Sets the value ofFileAssetLocation.getS3ObjectUrlWithPlaceholders()
Deprecated.use `httpUrl`
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofFileAssetLocation.getBucketName()
- Parameters:
bucketName
- The name of the Amazon S3 bucket. This parameter is required.- Returns:
this
-
httpUrl
Sets the value ofFileAssetLocation.getHttpUrl()
- Parameters:
httpUrl
- The HTTP URL of this asset on Amazon S3. This parameter is required. This value suitable for inclusion in a CloudFormation template, and may be an encoded token.Example value:
https://s3-us-east-1.amazonaws.com/mybucket/myobject
- Returns:
this
-
objectKey
Sets the value ofFileAssetLocation.getObjectKey()
- Parameters:
objectKey
- The Amazon S3 object key. This parameter is required.- Returns:
this
-
s3ObjectUrl
Sets the value ofFileAssetLocation.getS3ObjectUrl()
- Parameters:
s3ObjectUrl
- The S3 URL of this asset on Amazon S3. This parameter is required. This value suitable for inclusion in a CloudFormation template, and may be an encoded token.Example value:
s3://mybucket/myobject
- Returns:
this
-
kmsKeyArn
Sets the value ofFileAssetLocation.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The ARN of the KMS key used to encrypt the file asset bucket, if any. The CDK bootstrap stack comes with a key policy that does not require setting this property, so you only need to set this property if you have customized the bootstrap stack to require it.- Returns:
this
-
s3ObjectUrlWithPlaceholders
@Stability(Stable) public FileAssetLocation.Builder s3ObjectUrlWithPlaceholders(String s3ObjectUrlWithPlaceholders) Sets the value ofFileAssetLocation.getS3ObjectUrlWithPlaceholders()
- Parameters:
s3ObjectUrlWithPlaceholders
- Likes3ObjectUrl
, but not suitable for CloudFormation consumption. If there are placeholders in the S3 URL, they will be returned unreplaced and un-evaluated.- Returns:
this
-
s3Url
Deprecated.use `httpUrl`Sets the value ofFileAssetLocation.getS3Url()
- Parameters:
s3Url
- The HTTP URL of this asset on Amazon S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FileAssetLocation>
- Returns:
- a new instance of
FileAssetLocation
- Throws:
NullPointerException
- if any required attribute was not provided
-