@InterfaceAudience.Private @InterfaceStability.Unstable public class ShellActionBuilder extends NodeBuilderBaseImpl<ShellActionBuilder> implements Builder<ShellAction>
ShellAction.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.addAsChildToAllParents, clearCredentials, clearParents, withCredential, withErrorHandler, withName, withoutCredential, withoutErrorHandler, withoutParent, withParent, withParentDefaultConditional, withParentWithCondition, withRetryInterval, withRetryMax, withRetryPolicypublic static ShellActionBuilder create()
public static ShellActionBuilder createFromExistingAction(ShellAction action)
public static ShellActionBuilder createFromExistingAction(Node action)
public ShellActionBuilder withResourceManager(String resourceManager)
public ShellActionBuilder withNameNode(String nameNode)
public ShellActionBuilder withPrepare(Prepare prepare)
public ShellActionBuilder withLauncher(Launcher launcher)
public ShellActionBuilder withJobXml(String jobXml)
public ShellActionBuilder withoutJobXml(String jobXml)
public ShellActionBuilder clearJobXmls()
public ShellActionBuilder withConfigProperty(String key, String value)
public ShellActionBuilder withExecutable(String executable)
public ShellActionBuilder withArgument(String argument)
public ShellActionBuilder withoutArgument(String argument)
public ShellActionBuilder clearArguments()
public ShellActionBuilder withEnvironmentVariable(String environmentVariable)
public ShellActionBuilder withoutEnvironmentVariable(String environmentVariable)
public ShellActionBuilder clearEnvironmentVariables()
public ShellActionBuilder withFile(String file)
public ShellActionBuilder withoutFile(String file)
public ShellActionBuilder clearFiles()
public ShellActionBuilder withArchive(String archive)
public ShellActionBuilder withoutArchive(String archive)
public ShellActionBuilder clearArchives()
public ShellActionBuilder withCaptureOutput(Boolean captureOutput)
public ShellAction build()
Builderbuild in interface Builder<ShellAction>protected ShellActionBuilder getRuntimeSelfReference()
getRuntimeSelfReference in class NodeBuilderBaseImpl<ShellActionBuilder>Copyright © 2021 Apache Software Foundation. All rights reserved.