@NotThreadSafe public static final class ImmutableDisk.Builder extends Object
ImmutableDisk.
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 ImmutableDisk.Builder from(Disk instance)
Disk 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 ImmutableDisk.Builder addDiskBlocks(DiskBlock element)
diskBlocks list.element - A diskBlocks elementthis builder for use in a chained invocationpublic final ImmutableDisk.Builder addDiskBlocks(DiskBlock... elements)
diskBlocks list.elements - An array of diskBlocks elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder diskBlocks(Iterable<? extends DiskBlock> elements)
diskBlocks list.elements - An iterable of diskBlocks elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder addAllDiskBlocks(Iterable<? extends DiskBlock> elements)
diskBlocks list.elements - An iterable of diskBlocks elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder diskFormat(DiskFormat diskFormat)
diskFormat attribute.diskFormat - The value for diskFormatthis builder for use in a chained invocationpublic final ImmutableDisk.Builder addDiskPartitions(DiskPartition element)
diskPartitions list.element - A diskPartitions elementthis builder for use in a chained invocationpublic final ImmutableDisk.Builder addDiskPartitions(DiskPartition... elements)
diskPartitions list.elements - An array of diskPartitions elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder diskPartitions(Iterable<? extends DiskPartition> elements)
diskPartitions list.elements - An iterable of diskPartitions elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder addAllDiskPartitions(Iterable<? extends DiskPartition> elements)
diskPartitions list.elements - An iterable of diskPartitions elementsthis builder for use in a chained invocationpublic final ImmutableDisk.Builder partitionTableFormat(PartitionTableFormat partitionTableFormat)
partitionTableFormat attribute.partitionTableFormat - The value for partitionTableFormatthis builder for use in a chained invocationpublic final ImmutableDisk.Builder sectorSizeBytes(long sectorSizeBytes)
sectorSizeBytes attribute.sectorSizeBytes - The value for sectorSizeBytesthis builder for use in a chained invocationpublic final ImmutableDisk.Builder uuid(String uuid)
uuid attribute.uuid - The value for uuidthis builder for use in a chained invocationpublic final ImmutableDisk.Builder vmdkFileName(String vmdkFileName)
vmdkFileName attribute.vmdkFileName - The value for vmdkFileNamethis builder for use in a chained invocationpublic final ImmutableDisk.Builder vmdkSizeBytes(long vmdkSizeBytes)
vmdkSizeBytes attribute.vmdkSizeBytes - The value for vmdkSizeBytesthis builder for use in a chained invocationpublic ImmutableDisk build()
ImmutableDisk.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.