public static final class ImmutableProcessOutput.Builder extends Object
ImmutableProcessOutput.
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 |
|---|---|
ImmutableProcessOutput |
build()
Builds a new
ImmutableProcessOutput. |
ImmutableProcessOutput.Builder |
commands(StreamProcessor commands)
Initializes the value for the
commands attribute. |
ImmutableProcessOutput.Builder |
error(StreamProcessor error)
Initializes the value for the
error attribute. |
ImmutableProcessOutput.Builder |
from(ProcessOutput instance)
Fill a builder with attribute values from the provided
ProcessOutput instance. |
ImmutableProcessOutput.Builder |
output(StreamProcessor output)
Initializes the value for the
output attribute. |
public final ImmutableProcessOutput.Builder from(ProcessOutput instance)
ProcessOutput instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableProcessOutput.Builder output(StreamProcessor output)
output attribute.output - The value for outputthis builder for use in a chained invocationpublic final ImmutableProcessOutput.Builder error(StreamProcessor error)
error attribute.error - The value for errorthis builder for use in a chained invocationpublic final ImmutableProcessOutput.Builder commands(StreamProcessor commands)
commands attribute.commands - The value for commandsthis builder for use in a chained invocationpublic ImmutableProcessOutput build()
ImmutableProcessOutput.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.