@NotThreadSafe public static final class ImmutableVMRecoveryOptions.Builder extends Object
ImmutableVMRecoveryOptions.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableVMRecoveryOptions |
build()
Builds a new
ImmutableVMRecoveryOptions. |
ImmutableVMRecoveryOptions.Builder |
from(VMRecoveryOptions instance)
Fill a builder with attribute values from the provided
VMRecoveryOptions instance. |
ImmutableVMRecoveryOptions.Builder |
poweredOn(boolean poweredOn)
Initializes the value for the
poweredOn attribute. |
ImmutableVMRecoveryOptions.Builder |
prefix(Optional<String> prefix)
Initializes the optional value
prefix to prefix. |
ImmutableVMRecoveryOptions.Builder |
prefix(String prefix)
Initializes the optional value
prefix to prefix. |
ImmutableVMRecoveryOptions.Builder |
suffix(Optional<String> suffix)
Initializes the optional value
suffix to suffix. |
ImmutableVMRecoveryOptions.Builder |
suffix(String suffix)
Initializes the optional value
suffix to suffix. |
public final ImmutableVMRecoveryOptions.Builder from(VMRecoveryOptions instance)
VMRecoveryOptions instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableVMRecoveryOptions.Builder poweredOn(boolean poweredOn)
poweredOn attribute.poweredOn - The value for poweredOnthis builder for use in a chained invocationpublic final ImmutableVMRecoveryOptions.Builder suffix(String suffix)
suffix to suffix.suffix - The value for suffixthis builder for chained invocationpublic final ImmutableVMRecoveryOptions.Builder suffix(Optional<String> suffix)
suffix to suffix.suffix - The value for suffixthis builder for use in a chained invocationpublic final ImmutableVMRecoveryOptions.Builder prefix(String prefix)
prefix to prefix.prefix - The value for prefixthis builder for chained invocationpublic final ImmutableVMRecoveryOptions.Builder prefix(Optional<String> prefix)
prefix to prefix.prefix - The value for prefixthis builder for use in a chained invocationpublic ImmutableVMRecoveryOptions build()
ImmutableVMRecoveryOptions.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.