Class AlgorithmPluginResultStatus
java.lang.Object
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus
com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AlgorithmPluginResultStatus
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class AlgorithmPluginResultStatus
extends AbstractAlgorithmPluginResultStatus
Immutable implementation of
AbstractAlgorithmPluginResultStatus
.
Use the builder to create immutable instances:
AlgorithmPluginResultStatus.builder()
.
Use the static factory method to create immutable instances:
AlgorithmPluginResultStatus.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeAlgorithmPluginResultStatus
.static interface
static interface
Nested classes/interfaces inherited from class com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus
AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forAlgorithmPluginResultStatus
.static AlgorithmPluginResultStatus
copyOf
(AbstractAlgorithmPluginResultStatus instance) Creates an immutable copy of aAbstractAlgorithmPluginResultStatus
value.boolean
This instance is equal to all instances ofAlgorithmPluginResultStatus
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:statusDescription
,status
.static AlgorithmPluginResultStatus
of
(Optional<String> statusDescription, AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status) Construct a new immutableAlgorithmPluginResultStatus
instance.status()
toString()
Prints the immutable valueAlgorithmPluginResultStatus
with attribute values.Copy the current immutable object by setting a value for thestatus
attribute.withStatusDescription
(String value) Copy the current immutable object by setting a present value for the optionalstatusDescription
attribute.withStatusDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusDescription
attribute.Methods inherited from class com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus
defaultErrorResult, defaultSuccessResult, result
-
Method Details
-
statusDescription
- Specified by:
statusDescription
in classAbstractAlgorithmPluginResultStatus
- Returns:
- The value of the
statusDescription
attribute
-
status
- Specified by:
status
in classAbstractAlgorithmPluginResultStatus
- Returns:
- The value of the
status
attribute
-
withStatusDescription
Copy the current immutable object by setting a present value for the optionalstatusDescription
attribute.- Parameters:
value
- The value for statusDescription- Returns:
- A modified copy of
this
object
-
withStatusDescription
Copy the current immutable object by setting an optional value for thestatusDescription
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for statusDescription- Returns:
- A modified copy of
this
object
-
withStatus
public final AlgorithmPluginResultStatus withStatus(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag value) Copy the current immutable object by setting a value for thestatus
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for status- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofAlgorithmPluginResultStatus
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:statusDescription
,status
. -
toString
Prints the immutable valueAlgorithmPluginResultStatus
with attribute values. -
of
public static AlgorithmPluginResultStatus of(Optional<String> statusDescription, AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status) Construct a new immutableAlgorithmPluginResultStatus
instance.- Parameters:
statusDescription
- The value for thestatusDescription
attributestatus
- The value for thestatus
attribute- Returns:
- An immutable AlgorithmPluginResultStatus instance
-
copyOf
Creates an immutable copy of aAbstractAlgorithmPluginResultStatus
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable AlgorithmPluginResultStatus instance
-
builder
Creates a builder forAlgorithmPluginResultStatus
.AlgorithmPluginResultStatus.builder() .statusDescription(String) // optional
statusDescription
.status(com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag) // requiredstatus
.build();- Returns:
- A new AlgorithmPluginResultStatus builder
-