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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeAlgorithmPluginResultStatus.static interfacestatic interfaceNested 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 AlgorithmPluginResultStatuscopyOf(AbstractAlgorithmPluginResultStatus instance) Creates an immutable copy of aAbstractAlgorithmPluginResultStatusvalue.booleanThis instance is equal to all instances ofAlgorithmPluginResultStatusthat have equal attribute values.inthashCode()Computes a hash code from attributes:statusDescription,status.static AlgorithmPluginResultStatusof(Optional<String> statusDescription, AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status) Construct a new immutableAlgorithmPluginResultStatusinstance.status()toString()Prints the immutable valueAlgorithmPluginResultStatuswith attribute values.Copy the current immutable object by setting a value for thestatusattribute.withStatusDescription(String value) Copy the current immutable object by setting a present value for the optionalstatusDescriptionattribute.withStatusDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusDescriptionattribute.Methods inherited from class com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus
defaultErrorResult, defaultSuccessResult, result
-
Method Details
-
statusDescription
- Specified by:
statusDescriptionin classAbstractAlgorithmPluginResultStatus- Returns:
- The value of the
statusDescriptionattribute
-
status
- Specified by:
statusin classAbstractAlgorithmPluginResultStatus- Returns:
- The value of the
statusattribute
-
withStatusDescription
Copy the current immutable object by setting a present value for the optionalstatusDescriptionattribute.- Parameters:
value- The value for statusDescription- Returns:
- A modified copy of
thisobject
-
withStatusDescription
Copy the current immutable object by setting an optional value for thestatusDescriptionattribute. 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
thisobject
-
withStatus
public final AlgorithmPluginResultStatus withStatus(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag value) Copy the current immutable object by setting a value for thestatusattribute. 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
thisobject
-
equals
This instance is equal to all instances ofAlgorithmPluginResultStatusthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:statusDescription,status. -
toString
Prints the immutable valueAlgorithmPluginResultStatuswith attribute values. -
of
public static AlgorithmPluginResultStatus of(Optional<String> statusDescription, AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status) Construct a new immutableAlgorithmPluginResultStatusinstance.- Parameters:
statusDescription- The value for thestatusDescriptionattributestatus- The value for thestatusattribute- Returns:
- An immutable AlgorithmPluginResultStatus instance
-
copyOf
Creates an immutable copy of aAbstractAlgorithmPluginResultStatusvalue. 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) // optionalstatusDescription.status(com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag) // requiredstatus.build();- Returns:
- A new AlgorithmPluginResultStatus builder
-