@NotThreadSafe public static final class ImmutableVirtualDiskMapping.Builder extends Object
ImmutableVirtualDiskMapping.
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 |
|---|---|
ImmutableVirtualDiskMapping |
build()
Builds a new
ImmutableVirtualDiskMapping. |
ImmutableVirtualDiskMapping.Builder |
diskToOverwrite(VirtualDiskIdInformation diskToOverwrite)
Initializes the value for the
diskToOverwrite attribute. |
ImmutableVirtualDiskMapping.Builder |
from(VirtualDiskMapping instance)
Fill a builder with attribute values from the provided
VirtualDiskMapping instance. |
ImmutableVirtualDiskMapping.Builder |
sourceDisk(VirtualDiskIdInformation sourceDisk)
Initializes the value for the
sourceDisk attribute. |
ImmutableVirtualDiskMapping.Builder |
storageProfileUuid(String storageProfileUuid)
Initializes the value for the
storageProfileUuid attribute. |
public final ImmutableVirtualDiskMapping.Builder from(VirtualDiskMapping instance)
VirtualDiskMapping 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 ImmutableVirtualDiskMapping.Builder diskToOverwrite(VirtualDiskIdInformation diskToOverwrite)
diskToOverwrite attribute.diskToOverwrite - The value for diskToOverwritethis builder for use in a chained invocationpublic final ImmutableVirtualDiskMapping.Builder sourceDisk(VirtualDiskIdInformation sourceDisk)
sourceDisk attribute.sourceDisk - The value for sourceDiskthis builder for use in a chained invocationpublic final ImmutableVirtualDiskMapping.Builder storageProfileUuid(String storageProfileUuid)
storageProfileUuid attribute.storageProfileUuid - The value for storageProfileUuidthis builder for use in a chained invocationpublic ImmutableVirtualDiskMapping build()
ImmutableVirtualDiskMapping.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.