@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRestoreTaskObjectState extends Object implements RestoreTaskObjectState
RestoreTaskObjectState.
Use the builder to create immutable instances:
ImmutableRestoreTaskObjectState.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRestoreTaskObjectState.Builder
Builds instances of type
ImmutableRestoreTaskObjectState. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRestoreTaskObjectState.Builder |
builder()
Creates a builder for
ImmutableRestoreTaskObjectState. |
static ImmutableRestoreTaskObjectState |
copyOf(RestoreTaskObjectState instance)
Creates an immutable copy of a
RestoreTaskObjectState value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRestoreTaskObjectState that have equal attribute values. |
Optional<String> |
error()
Error message, if applicable.
|
int |
hashCode()
Computes a hash code from attributes:
status, error, source. |
VCloudProtectionSource |
source()
The source info.
|
RestoreTaskObjectStatus |
status()
The status of the object.
|
String |
toString()
Prints the immutable value
RestoreTaskObjectState with attribute values. |
ImmutableRestoreTaskObjectState |
withError(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
error attribute. |
ImmutableRestoreTaskObjectState |
withError(String value)
Copy the current immutable object by setting a present value for the optional
error attribute. |
ImmutableRestoreTaskObjectState |
withSource(VCloudProtectionSource value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableRestoreTaskObjectState |
withStatus(RestoreTaskObjectStatus value)
Copy the current immutable object by setting a value for the
status attribute. |
public RestoreTaskObjectStatus status()
status in interface RestoreTaskObjectStatepublic Optional<String> error()
error in interface RestoreTaskObjectStatepublic VCloudProtectionSource source()
source in interface RestoreTaskObjectStatepublic final ImmutableRestoreTaskObjectState withStatus(RestoreTaskObjectStatus 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 final ImmutableRestoreTaskObjectState withError(String value)
error attribute.value - The value for errorthis objectpublic final ImmutableRestoreTaskObjectState withError(Optional<String> optional)
error attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for errorthis objectpublic final ImmutableRestoreTaskObjectState withSource(VCloudProtectionSource value)
source attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for sourcethis objectpublic boolean equals(@Nullable Object another)
ImmutableRestoreTaskObjectState that have equal attribute values.public int hashCode()
status, error, source.public String toString()
RestoreTaskObjectState with attribute values.public static ImmutableRestoreTaskObjectState copyOf(RestoreTaskObjectState instance)
RestoreTaskObjectState 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 ImmutableRestoreTaskObjectState.Builder builder()
ImmutableRestoreTaskObjectState.
ImmutableRestoreTaskObjectState.builder()
.status(com.iland.cohesity.iaas.backups.common.enums.RestoreTaskObjectStatus) // required status
.error(String) // optional error
.source(com.iland.cohesity.iaas.backups.common.model.VCloudProtectionSource) // required source
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.