@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVMRecoveryOptions extends Object implements VMRecoveryOptions
VMRecoveryOptions.
Use the builder to create immutable instances:
ImmutableVMRecoveryOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVMRecoveryOptions.Builder
Builds instances of type
ImmutableVMRecoveryOptions. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableVMRecoveryOptions.Builder |
builder()
Creates a builder for
ImmutableVMRecoveryOptions. |
static ImmutableVMRecoveryOptions |
copyOf(VMRecoveryOptions instance)
Creates an immutable copy of a
VMRecoveryOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVMRecoveryOptions that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
poweredOn, suffix, prefix. |
boolean |
poweredOn()
Whether the recovered VM is to be powered on.
|
Optional<String> |
prefix()
The prefix that will be appended to the name of the recovered VM.
|
Optional<String> |
suffix()
The suffix that will be appended to the name of the recovered VM.
|
String |
toString()
Prints the immutable value
VMRecoveryOptions with attribute values. |
ImmutableVMRecoveryOptions |
withPoweredOn(boolean value)
Copy the current immutable object by setting a value for the
poweredOn attribute. |
ImmutableVMRecoveryOptions |
withPrefix(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
prefix attribute. |
ImmutableVMRecoveryOptions |
withPrefix(String value)
Copy the current immutable object by setting a present value for the optional
prefix attribute. |
ImmutableVMRecoveryOptions |
withSuffix(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
suffix attribute. |
ImmutableVMRecoveryOptions |
withSuffix(String value)
Copy the current immutable object by setting a present value for the optional
suffix attribute. |
public boolean poweredOn()
poweredOn in interface VMRecoveryOptionspublic Optional<String> suffix()
suffix in interface VMRecoveryOptionspublic Optional<String> prefix()
prefix in interface VMRecoveryOptionspublic final ImmutableVMRecoveryOptions withPoweredOn(boolean value)
poweredOn attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for poweredOnthis objectpublic final ImmutableVMRecoveryOptions withSuffix(String value)
suffix attribute.value - The value for suffixthis objectpublic final ImmutableVMRecoveryOptions withSuffix(Optional<String> optional)
suffix attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for suffixthis objectpublic final ImmutableVMRecoveryOptions withPrefix(String value)
prefix attribute.value - The value for prefixthis objectpublic final ImmutableVMRecoveryOptions withPrefix(Optional<String> optional)
prefix attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for prefixthis objectpublic boolean equals(@Nullable Object another)
ImmutableVMRecoveryOptions that have equal attribute values.public int hashCode()
poweredOn, suffix, prefix.public String toString()
VMRecoveryOptions with attribute values.public static ImmutableVMRecoveryOptions copyOf(VMRecoveryOptions instance)
VMRecoveryOptions 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 ImmutableVMRecoveryOptions.Builder builder()
ImmutableVMRecoveryOptions.
ImmutableVMRecoveryOptions.builder()
.poweredOn(boolean) // required poweredOn
.suffix(String) // optional suffix
.prefix(String) // optional prefix
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.