Class OptimizationAlgorithmPreparationPluginResult.Builder
java.lang.Object
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.OptimizationAlgorithmPreparationPluginResult.Builder
- All Implemented Interfaces:
OptimizationAlgorithmPreparationPluginResult.BuildFinal
,OptimizationAlgorithmPreparationPluginResult.StatusBuildStage
- Enclosing class:
- OptimizationAlgorithmPreparationPluginResult
@NotThreadSafe
public static final class OptimizationAlgorithmPreparationPluginResult.Builder
extends Object
implements OptimizationAlgorithmPreparationPluginResult.StatusBuildStage, OptimizationAlgorithmPreparationPluginResult.BuildFinal
Builds instances of type
OptimizationAlgorithmPreparationPluginResult
.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newOptimizationAlgorithmPreparationPluginResult
.status
(AlgorithmPluginResultStatus status) Initializes the value for thestatus
attribute.
-
Method Details
-
status
@CanIgnoreReturnValue public final OptimizationAlgorithmPreparationPluginResult.Builder status(AlgorithmPluginResultStatus status) Initializes the value for thestatus
attribute.- Specified by:
status
in interfaceOptimizationAlgorithmPreparationPluginResult.StatusBuildStage
- Parameters:
status
- The value for status- Returns:
this
builder for use in a chained invocation
-
build
Builds a newOptimizationAlgorithmPreparationPluginResult
.- Specified by:
build
in interfaceOptimizationAlgorithmPreparationPluginResult.BuildFinal
- Returns:
- An immutable instance of OptimizationAlgorithmPreparationPluginResult
- Throws:
IllegalStateException
- if any required attributes are missing
-