@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class AlgorithmPluginResultStatus extends AbstractAlgorithmPluginResultStatus
AbstractAlgorithmPluginResultStatus
.
Use the builder to create immutable instances:
AlgorithmPluginResultStatus.builder()
.
Use the static factory method to create immutable instances:
AlgorithmPluginResultStatus.of()
.
Modifier and Type | Class and Description |
---|---|
static class |
AlgorithmPluginResultStatus.Builder
Builds instances of type
AlgorithmPluginResultStatus . |
static interface |
AlgorithmPluginResultStatus.BuildFinal |
static interface |
AlgorithmPluginResultStatus.StatusBuildStage |
AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag
Modifier and Type | Method and Description |
---|---|
static AlgorithmPluginResultStatus.StatusBuildStage |
builder()
Creates a builder for
AlgorithmPluginResultStatus . |
static AlgorithmPluginResultStatus |
copyOf(AbstractAlgorithmPluginResultStatus instance)
Creates an immutable copy of a
AbstractAlgorithmPluginResultStatus value. |
boolean |
equals(Object another)
This instance is equal to all instances of
AlgorithmPluginResultStatus 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 immutable
AlgorithmPluginResultStatus instance. |
AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag |
status() |
Optional<String> |
statusDescription() |
String |
toString()
Prints the immutable value
AlgorithmPluginResultStatus with attribute values. |
AlgorithmPluginResultStatus |
withStatus(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag value)
Copy the current immutable object by setting a value for the
status attribute. |
AlgorithmPluginResultStatus |
withStatusDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
statusDescription attribute. |
AlgorithmPluginResultStatus |
withStatusDescription(String value)
Copy the current immutable object by setting a present value for the optional
statusDescription attribute. |
defaultErrorResult, defaultSuccessResult, result
public Optional<String> statusDescription()
statusDescription
in class AbstractAlgorithmPluginResultStatus
statusDescription
attributepublic AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status()
status
in class AbstractAlgorithmPluginResultStatus
status
attributepublic final AlgorithmPluginResultStatus withStatusDescription(String value)
statusDescription
attribute.value
- The value for statusDescriptionthis
objectpublic final AlgorithmPluginResultStatus withStatusDescription(Optional<String> optional)
statusDescription
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for statusDescriptionthis
objectpublic final AlgorithmPluginResultStatus withStatus(AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag value)
status
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for statusthis
objectpublic boolean equals(@Nullable Object another)
AlgorithmPluginResultStatus
that have equal attribute values.public int hashCode()
statusDescription
, status
.public String toString()
AlgorithmPluginResultStatus
with attribute values.public static AlgorithmPluginResultStatus of(Optional<String> statusDescription, AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag status)
AlgorithmPluginResultStatus
instance.statusDescription
- The value for the statusDescription
attributestatus
- The value for the status
attributepublic static AlgorithmPluginResultStatus copyOf(AbstractAlgorithmPluginResultStatus instance)
AbstractAlgorithmPluginResultStatus
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static AlgorithmPluginResultStatus.StatusBuildStage builder()
AlgorithmPluginResultStatus
.
AlgorithmPluginResultStatus.builder() .statusDescription(String) // optionalstatusDescription
.status(com.dna.jopt.cloud.touroptimizer.pluginservice.algorithm.AbstractAlgorithmPluginResultStatus.AlgorithmPluginResultStatusTag) // requiredstatus
.build();
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.