@NotThreadSafe public static final class ImmutableLogicalVolume.Builder extends Object
ImmutableLogicalVolume
.
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 |
---|---|
ImmutableLogicalVolume |
build()
Builds a new
ImmutableLogicalVolume . |
ImmutableLogicalVolume.Builder |
deviceRootNode(DeviceTreeDetails deviceRootNode)
Initializes the value for the
deviceRootNode attribute. |
ImmutableLogicalVolume.Builder |
from(LogicalVolume instance)
Fill a builder with attribute values from the provided
LogicalVolume instance. |
ImmutableLogicalVolume.Builder |
groupName(String groupName)
Initializes the value for the
groupName attribute. |
ImmutableLogicalVolume.Builder |
groupUuid(String groupUuid)
Initializes the value for the
groupUuid attribute. |
ImmutableLogicalVolume.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableLogicalVolume.Builder |
uuid(String uuid)
Initializes the value for the
uuid attribute. |
public final ImmutableLogicalVolume.Builder from(LogicalVolume instance)
LogicalVolume
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 ImmutableLogicalVolume.Builder deviceRootNode(DeviceTreeDetails deviceRootNode)
deviceRootNode
attribute.deviceRootNode
- The value for deviceRootNodethis
builder for use in a chained invocationpublic final ImmutableLogicalVolume.Builder groupName(String groupName)
groupName
attribute.groupName
- The value for groupNamethis
builder for use in a chained invocationpublic final ImmutableLogicalVolume.Builder groupUuid(String groupUuid)
groupUuid
attribute.groupUuid
- The value for groupUuidthis
builder for use in a chained invocationpublic final ImmutableLogicalVolume.Builder name(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final ImmutableLogicalVolume.Builder uuid(String uuid)
uuid
attribute.uuid
- The value for uuidthis
builder for use in a chained invocationpublic ImmutableLogicalVolume build()
ImmutableLogicalVolume
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.