@InterfaceAudience.Private @InterfaceStability.Unstable public class PrepareBuilder extends Object implements Builder<Prepare>
Prepare.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to FSActionBuilder.build() either.
| Constructor and Description |
|---|
PrepareBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Prepare |
build()
Creates a new
Prepare object with the properties stores in this builder. |
PrepareBuilder |
withDelete(String path)
Registers a
Delete object with this builder. |
PrepareBuilder |
withDelete(String path,
Boolean skipTrash)
Registers a
Delete object with this builder. |
PrepareBuilder |
withMkdir(String path)
|
public PrepareBuilder withDelete(String path)
Delete object with this builder. The Delete object will have the provided path as
its target and the default value (true) for skip-trash.path - The target of the Delete object.public PrepareBuilder withDelete(String path, Boolean skipTrash)
Delete object with this builder. The Delete object will have the provided path as
its target and the given boolean value for skip-trash.path - The target of the Delete object.skipTrash - Whether to skip trash when deleting the items.public PrepareBuilder withMkdir(String path)
Mkdir object with this builder The Mkdir object will have the provided path as
its target.path - The target of the Mkdir.public Prepare build()
Copyright © 2021 Apache Software Foundation. All rights reserved.