@NotThreadSafe public static final class ImmutableVirtualDiskInformation.Builder extends Object
ImmutableVirtualDiskInformation.
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 ImmutableVirtualDiskInformation.Builder from(VirtualDiskInformation instance)
VirtualDiskInformation 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 ImmutableVirtualDiskInformation.Builder protectionSource(VCloudProtectionSource protectionSource)
protectionSource attribute.protectionSource - The value for protectionSourcethis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder busNumber(Long busNumber)
busNumber attribute.busNumber - The value for busNumberthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder controllerType(String controllerType)
controllerType attribute.controllerType - The value for controllerTypethis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder diskId(String diskId)
diskId attribute.diskId - The value for diskIdthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder diskSizeInBytes(Long diskSizeInBytes)
diskSizeInBytes attribute.diskSizeInBytes - The value for diskSizeInBytesthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder filePath(String filePath)
filePath attribute.filePath - The value for filePaththis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder addMountPoints(String element)
mountPoints list.element - A mountPoints elementthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder addMountPoints(String... elements)
mountPoints list.elements - An array of mountPoints elementsthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder mountPoints(Iterable<String> elements)
mountPoints list.elements - An iterable of mountPoints elementsthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder addAllMountPoints(Iterable<String> elements)
mountPoints list.elements - An iterable of mountPoints elementsthis builder for use in a chained invocationpublic final ImmutableVirtualDiskInformation.Builder unitNumber(Long unitNumber)
unitNumber attribute.unitNumber - The value for unitNumberthis builder for use in a chained invocationpublic ImmutableVirtualDiskInformation build()
ImmutableVirtualDiskInformation.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.