public static final class ImmutableStarter.Builder<T extends RunningProcess> extends Object
ImmutableStarter.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableStarter.Builder<T> |
arguments(de.flapdoodle.reverse.StateID<ProcessArguments> arguments)
Initializes the value for the
arguments attribute. |
ImmutableStarter<T> |
build()
Builds a new
ImmutableStarter. |
ImmutableStarter.Builder<T> |
destination(de.flapdoodle.reverse.StateID<T> destination)
Initializes the value for the
destination attribute. |
ImmutableStarter.Builder<T> |
from(de.flapdoodle.reverse.naming.HasLabel instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.naming.HasLabel instance. |
ImmutableStarter.Builder<T> |
from(Starter<T> instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.process.transitions.Starter instance. |
ImmutableStarter.Builder<T> |
processConfig(de.flapdoodle.reverse.StateID<ProcessConfig> processConfig)
Initializes the value for the
processConfig attribute. |
ImmutableStarter.Builder<T> |
processEnv(de.flapdoodle.reverse.StateID<ProcessEnv> processEnv)
Initializes the value for the
processEnv attribute. |
ImmutableStarter.Builder<T> |
processExecutable(de.flapdoodle.reverse.StateID<ExtractedFileSet> processExecutable)
Initializes the value for the
processExecutable attribute. |
ImmutableStarter.Builder<T> |
processOutput(de.flapdoodle.reverse.StateID<ProcessOutput> processOutput)
Initializes the value for the
processOutput attribute. |
ImmutableStarter.Builder<T> |
processWorkingDir(de.flapdoodle.reverse.StateID<ProcessWorkingDir> processWorkingDir)
Initializes the value for the
processWorkingDir attribute. |
ImmutableStarter.Builder<T> |
supportConfig(de.flapdoodle.reverse.StateID<SupportConfig> supportConfig)
Initializes the value for the
supportConfig attribute. |
ImmutableStarter.Builder<T> |
transitionLabel(String transitionLabel)
Initializes the value for the
transitionLabel attribute. |
public final ImmutableStarter.Builder<T> from(Starter<T> instance)
de.flapdoodle.embed.process.transitions.Starter instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> from(de.flapdoodle.reverse.naming.HasLabel instance)
de.flapdoodle.reverse.naming.HasLabel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> processExecutable(de.flapdoodle.reverse.StateID<ExtractedFileSet> processExecutable)
processExecutable attribute.
If not set, this attribute will have a default value as returned by the initializer of processExecutable.
processExecutable - The value for processExecutablethis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> processWorkingDir(de.flapdoodle.reverse.StateID<ProcessWorkingDir> processWorkingDir)
processWorkingDir attribute.
If not set, this attribute will have a default value as returned by the initializer of processWorkingDir.
processWorkingDir - The value for processWorkingDirthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> processConfig(de.flapdoodle.reverse.StateID<ProcessConfig> processConfig)
processConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of processConfig.
processConfig - The value for processConfigthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> processEnv(de.flapdoodle.reverse.StateID<ProcessEnv> processEnv)
processEnv attribute.
If not set, this attribute will have a default value as returned by the initializer of processEnv.
processEnv - The value for processEnvthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> arguments(de.flapdoodle.reverse.StateID<ProcessArguments> arguments)
arguments attribute.
If not set, this attribute will have a default value as returned by the initializer of arguments.
arguments - The value for argumentsthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> processOutput(de.flapdoodle.reverse.StateID<ProcessOutput> processOutput)
processOutput attribute.
If not set, this attribute will have a default value as returned by the initializer of processOutput.
processOutput - The value for processOutputthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> supportConfig(de.flapdoodle.reverse.StateID<SupportConfig> supportConfig)
supportConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of supportConfig.
supportConfig - The value for supportConfigthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> transitionLabel(String transitionLabel)
transitionLabel attribute.
If not set, this attribute will have a default value as returned by the initializer of transitionLabel.
transitionLabel - The value for transitionLabelthis builder for use in a chained invocationpublic final ImmutableStarter.Builder<T> destination(de.flapdoodle.reverse.StateID<T> destination)
destination attribute.destination - The value for destinationthis builder for use in a chained invocationpublic ImmutableStarter<T> build()
ImmutableStarter.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.