@NotThreadSafe public static final class ImmutableFilesystemVolume.Builder extends Object
ImmutableFilesystemVolume.
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 ImmutableFilesystemVolume.Builder from(FilesystemVolume instance)
FilesystemVolume 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 ImmutableFilesystemVolume.Builder addDisks(Disk element)
disks list.element - A disks elementthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder addDisks(Disk... elements)
disks list.elements - An array of disks elementsthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder disks(Iterable<? extends Disk> elements)
disks list.elements - An iterable of disks elementsthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder addAllDisks(Iterable<? extends Disk> elements)
disks list.elements - An iterable of disks elementsthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder displayName(String displayName)
displayName attribute.displayName - The value for displayNamethis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder filesystemType(String filesystemType)
filesystemType attribute.filesystemType - The value for filesystemTypethis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder filesystemUuid(String filesystemUuid)
filesystemUuid attribute.filesystemUuid - The value for filesystemUuidthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder isSupported(boolean isSupported)
isSupported attribute.isSupported - The value for isSupportedthis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder logicalVolume(LogicalVolume logicalVolume)
logicalVolume to logicalVolume.logicalVolume - The value for logicalVolumethis builder for chained invocationpublic final ImmutableFilesystemVolume.Builder logicalVolume(Optional<? extends LogicalVolume> logicalVolume)
logicalVolume to logicalVolume.logicalVolume - The value for logicalVolumethis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder logicalVolumeType(LogicalVolumeType logicalVolumeType)
logicalVolumeType attribute.logicalVolumeType - The value for logicalVolumeTypethis builder for use in a chained invocationpublic final ImmutableFilesystemVolume.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic ImmutableFilesystemVolume build()
ImmutableFilesystemVolume.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.