Package software.amazon.awscdk
Class FileCopyOptions.Builder
java.lang.Object
software.amazon.awscdk.FileCopyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileCopyOptions>
- Enclosing interface:
FileCopyOptions
@Stability(Stable)
public static final class FileCopyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FileCopyOptions>
A builder for
FileCopyOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofFileCopyOptions.getExclude()
followSymlinks
(SymlinkFollowMode followSymlinks) Sets the value ofFileCopyOptions.getFollowSymlinks()
ignoreMode
(IgnoreMode ignoreMode) Sets the value ofFileCopyOptions.getIgnoreMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exclude
Sets the value ofFileCopyOptions.getExclude()
- Parameters:
exclude
- File paths matching the patterns will be excluded. SeeignoreMode
to set the matching behavior. Has no effect on Assets bundled using thebundling
property.- Returns:
this
-
followSymlinks
Sets the value ofFileCopyOptions.getFollowSymlinks()
- Parameters:
followSymlinks
- A strategy for how to handle symlinks.- Returns:
this
-
ignoreMode
Sets the value ofFileCopyOptions.getIgnoreMode()
- Parameters:
ignoreMode
- The ignore behavior to use forexclude
patterns.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FileCopyOptions>
- Returns:
- a new instance of
FileCopyOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-