Class FileAsset.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.FileAsset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileAsset>
- Enclosing interface:
FileAsset
@Stability(Stable)
public static final class FileAsset.Builder
extends Object
implements software.amazon.jsii.Builder<FileAsset>
A builder for
FileAsset-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinations(Map<String, ? extends FileDestination> destinations) Sets the value ofFileAsset.getDestinations()displayName(String displayName) Sets the value ofFileAsset.getDisplayName()source(FileSource source) Sets the value ofFileAsset.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
@Stability(Stable) public FileAsset.Builder destinations(Map<String, ? extends FileDestination> destinations) Sets the value ofFileAsset.getDestinations()- Parameters:
destinations- Destinations for this file asset. This parameter is required.- Returns:
this
-
source
Sets the value ofFileAsset.getSource()- Parameters:
source- Source description for file assets. This parameter is required.- Returns:
this
-
displayName
Sets the value ofFileAsset.getDisplayName()- Parameters:
displayName- A display name for this asset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileAsset>- Returns:
- a new instance of
FileAsset - Throws:
NullPointerException- if any required attribute was not provided
-