@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVMRestoreTaskParams extends Object implements VMRestoreTaskParams
VMRestoreTaskParams.
Use the builder to create immutable instances:
ImmutableVMRestoreTaskParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVMRestoreTaskParams.Builder
Builds instances of type
ImmutableVMRestoreTaskParams. |
| Modifier and Type | Method and Description |
|---|---|
Optional<AlternateVappParams> |
alternateVapp()
Optionally specify an alternate vApp to recover snapshots to.
|
static ImmutableVMRestoreTaskParams.Builder |
builder()
Creates a builder for
ImmutableVMRestoreTaskParams. |
boolean |
continueOnError()
Whether the restoration should continue when an error occurs.
|
static ImmutableVMRestoreTaskParams |
copyOf(VMRestoreTaskParams instance)
Creates an immutable copy of a
VMRestoreTaskParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVMRestoreTaskParams that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
snapshotRefs, taskName, alternateVapp, poweredOn, prefix, suffix, continueOnError. |
boolean |
poweredOn()
Specifies the power state of the cloned or recovered objects.
|
String |
prefix()
Specifies a prefix to prepended to the source object name to derive a new
name for the recovered or cloned object.
|
com.google.common.collect.ImmutableSet<VMSnapshotRef> |
snapshotRefs()
The set of VM snapshots to restore.
|
String |
suffix()
Specifies a suffix to appended to the original source object name to derive
a new name for the recovered or cloned object.
|
String |
taskName()
The user-specified name that should be associated with the task.
|
String |
toString()
Prints the immutable value
VMRestoreTaskParams with attribute values. |
ImmutableVMRestoreTaskParams |
withAlternateVapp(AlternateVappParams value)
Copy the current immutable object by setting a present value for the optional
alternateVapp attribute. |
ImmutableVMRestoreTaskParams |
withAlternateVapp(Optional<? extends AlternateVappParams> optional)
Copy the current immutable object by setting an optional value for the
alternateVapp attribute. |
ImmutableVMRestoreTaskParams |
withContinueOnError(boolean value)
Copy the current immutable object by setting a value for the
continueOnError attribute. |
ImmutableVMRestoreTaskParams |
withPoweredOn(boolean value)
Copy the current immutable object by setting a value for the
poweredOn attribute. |
ImmutableVMRestoreTaskParams |
withPrefix(String value)
Copy the current immutable object by setting a value for the
prefix attribute. |
ImmutableVMRestoreTaskParams |
withSnapshotRefs(Iterable<? extends VMSnapshotRef> elements)
Copy the current immutable object with elements that replace the content of
snapshotRefs. |
ImmutableVMRestoreTaskParams |
withSnapshotRefs(VMSnapshotRef... elements)
Copy the current immutable object with elements that replace the content of
snapshotRefs. |
ImmutableVMRestoreTaskParams |
withSuffix(String value)
Copy the current immutable object by setting a value for the
suffix attribute. |
ImmutableVMRestoreTaskParams |
withTaskName(String value)
Copy the current immutable object by setting a value for the
taskName attribute. |
public com.google.common.collect.ImmutableSet<VMSnapshotRef> snapshotRefs()
snapshotRefs in interface VMRestoreTaskParamspublic String taskName()
taskName in interface VMRestoreTaskParamspublic Optional<AlternateVappParams> alternateVapp()
alternateVapp in interface VMRestoreTaskParamspublic boolean poweredOn()
poweredOn in interface VMRestoreTaskParamspublic String prefix()
prefix in interface VMRestoreTaskParamspublic String suffix()
suffix in interface VMRestoreTaskParamspublic boolean continueOnError()
continueOnError in interface VMRestoreTaskParamspublic final ImmutableVMRestoreTaskParams withSnapshotRefs(VMSnapshotRef... elements)
snapshotRefs.elements - The elements to setthis objectpublic final ImmutableVMRestoreTaskParams withSnapshotRefs(Iterable<? extends VMSnapshotRef> elements)
snapshotRefs.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of snapshotRefs elements to setthis objectpublic final ImmutableVMRestoreTaskParams withTaskName(String value)
taskName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for taskNamethis objectpublic final ImmutableVMRestoreTaskParams withAlternateVapp(AlternateVappParams value)
alternateVapp attribute.value - The value for alternateVappthis objectpublic final ImmutableVMRestoreTaskParams withAlternateVapp(Optional<? extends AlternateVappParams> optional)
alternateVapp attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for alternateVappthis objectpublic final ImmutableVMRestoreTaskParams 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 ImmutableVMRestoreTaskParams withPrefix(String value)
prefix attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for prefixthis objectpublic final ImmutableVMRestoreTaskParams withSuffix(String value)
suffix attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for suffixthis objectpublic final ImmutableVMRestoreTaskParams withContinueOnError(boolean value)
continueOnError attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for continueOnErrorthis objectpublic boolean equals(@Nullable Object another)
ImmutableVMRestoreTaskParams that have equal attribute values.public int hashCode()
snapshotRefs, taskName, alternateVapp, poweredOn, prefix, suffix, continueOnError.public String toString()
VMRestoreTaskParams with attribute values.public static ImmutableVMRestoreTaskParams copyOf(VMRestoreTaskParams instance)
VMRestoreTaskParams 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 ImmutableVMRestoreTaskParams.Builder builder()
ImmutableVMRestoreTaskParams.
ImmutableVMRestoreTaskParams.builder()
.addSnapshotRefs|addAllSnapshotRefs(com.iland.cohesity.iaas.backups.recovery.model.VMSnapshotRef) // snapshotRefs elements
.taskName(String) // required taskName
.alternateVapp(com.iland.cohesity.iaas.backups.recovery.model.AlternateVappParams) // optional alternateVapp
.poweredOn(boolean) // required poweredOn
.prefix(String) // required prefix
.suffix(String) // required suffix
.continueOnError(boolean) // required continueOnError
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.