public static final class CopyOptions.Builder
extends java.lang.Object
CopyOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CopyOptions |
build()
Builds the configured instance.
|
CopyOptions.Builder |
exclude(java.util.List<java.lang.String> exclude)
Sets the value of
CopyOptions.getExclude() |
CopyOptions.Builder |
follow(SymlinkFollowMode follow)
Sets the value of
CopyOptions.getFollow() |
CopyOptions.Builder |
ignoreMode(IgnoreMode ignoreMode)
Sets the value of
CopyOptions.getIgnoreMode() |
public CopyOptions.Builder exclude(java.util.List<java.lang.String> exclude)
CopyOptions.getExclude()
exclude
- Glob patterns to exclude from the copy.this
public CopyOptions.Builder follow(SymlinkFollowMode follow)
CopyOptions.getFollow()
follow
- A strategy for how to handle symlinks.this
public CopyOptions.Builder ignoreMode(IgnoreMode ignoreMode)
CopyOptions.getIgnoreMode()
ignoreMode
- The ignore behavior to use for exclude patterns.this
public CopyOptions build()
CopyOptions
java.lang.NullPointerException
- if any required attribute was not provided