@NotThreadSafe public static final class AlgorithmPluginResultStatus.Builder extends Object implements AlgorithmPluginResultStatus.StatusBuildStage, AlgorithmPluginResultStatus.BuildFinal
AlgorithmPluginResultStatus
.
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 |
---|---|
AlgorithmPluginResultStatus |
build()
Builds a new
AlgorithmPluginResultStatus . |
AlgorithmPluginResultStatus.Builder |
status(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status)
Initializes the value for the
status attribute. |
AlgorithmPluginResultStatus.Builder |
statusDescription(Optional<String> statusDescription)
Initializes the optional value
statusDescription to statusDescription. |
AlgorithmPluginResultStatus.Builder |
statusDescription(String statusDescription)
Initializes the optional value
statusDescription to statusDescription. |
@CanIgnoreReturnValue public final AlgorithmPluginResultStatus.Builder statusDescription(String statusDescription)
statusDescription
to statusDescription.statusDescription
in interface AlgorithmPluginResultStatus.BuildFinal
statusDescription
- The value for statusDescriptionthis
builder for chained invocation@CanIgnoreReturnValue public final AlgorithmPluginResultStatus.Builder statusDescription(Optional<String> statusDescription)
statusDescription
to statusDescription.statusDescription
in interface AlgorithmPluginResultStatus.BuildFinal
statusDescription
- The value for statusDescriptionthis
builder for use in a chained invocation@CanIgnoreReturnValue public final AlgorithmPluginResultStatus.Builder status(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status)
status
attribute.status
in interface AlgorithmPluginResultStatus.StatusBuildStage
status
- The value for statusthis
builder for use in a chained invocationpublic AlgorithmPluginResultStatus build()
AlgorithmPluginResultStatus
.build
in interface AlgorithmPluginResultStatus.BuildFinal
IllegalStateException
- if any required attributes are missingCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.