@NotThreadSafe public static final class ImmutableVMRestoreTaskParams.Builder extends Object
ImmutableVMRestoreTaskParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableVMRestoreTaskParams.Builder from(VMRestoreTaskParams instance)
VMRestoreTaskParams instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder addSnapshotRefs(VMSnapshotRef element)
snapshotRefs set.element - A snapshotRefs elementthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder addSnapshotRefs(VMSnapshotRef... elements)
snapshotRefs set.elements - An array of snapshotRefs elementsthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder snapshotRefs(Iterable<? extends VMSnapshotRef> elements)
snapshotRefs set.elements - An iterable of snapshotRefs elementsthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder addAllSnapshotRefs(Iterable<? extends VMSnapshotRef> elements)
snapshotRefs set.elements - An iterable of snapshotRefs elementsthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder taskName(String taskName)
taskName attribute.taskName - The value for taskNamethis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder alternateVapp(AlternateVappParams alternateVapp)
alternateVapp to alternateVapp.alternateVapp - The value for alternateVappthis builder for chained invocationpublic final ImmutableVMRestoreTaskParams.Builder alternateVapp(Optional<? extends AlternateVappParams> alternateVapp)
alternateVapp to alternateVapp.alternateVapp - The value for alternateVappthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder poweredOn(boolean poweredOn)
poweredOn attribute.poweredOn - The value for poweredOnthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder prefix(String prefix)
prefix attribute.prefix - The value for prefixthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder suffix(String suffix)
suffix attribute.suffix - The value for suffixthis builder for use in a chained invocationpublic final ImmutableVMRestoreTaskParams.Builder continueOnError(boolean continueOnError)
continueOnError attribute.continueOnError - The value for continueOnErrorthis builder for use in a chained invocationpublic ImmutableVMRestoreTaskParams build()
ImmutableVMRestoreTaskParams.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.