@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFilesystemVolume extends Object implements FilesystemVolume
FilesystemVolume
.
Use the builder to create immutable instances:
ImmutableFilesystemVolume.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableFilesystemVolume.Builder
Builds instances of type
ImmutableFilesystemVolume . |
Modifier and Type | Method and Description |
---|---|
static ImmutableFilesystemVolume.Builder |
builder()
Creates a builder for
ImmutableFilesystemVolume . |
static ImmutableFilesystemVolume |
copyOf(FilesystemVolume instance)
Creates an immutable copy of a
FilesystemVolume value. |
com.google.common.collect.ImmutableList<Disk> |
disks()
Array of Disks and Partitions.
|
String |
displayName()
Specifies a description about the filesystem.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFilesystemVolume that have equal attribute values. |
String |
filesystemType()
Specifies type of the filesystem on this volume.
|
String |
filesystemUuid()
Specifies the uuid of the filesystem.
|
int |
hashCode()
Computes a hash code from attributes:
disks , displayName , filesystemType , filesystemUuid , isSupported , logicalVolume , logicalVolumeType , name . |
boolean |
isSupported()
If true, this is a supported filesystem volume type.
|
Optional<LogicalVolume> |
logicalVolume()
Specify attributes for a kLMV (Linux) or kLDM (Windows) filesystem.
|
LogicalVolumeType |
logicalVolumeType()
Specifies the type of logical volume such as kSimpleVolume, kLVM or kLDM.
|
String |
name()
Specifies the name of the volume such as /C.
|
String |
toString()
Prints the immutable value
FilesystemVolume with attribute values. |
ImmutableFilesystemVolume |
withDisks(Disk... elements)
Copy the current immutable object with elements that replace the content of
disks . |
ImmutableFilesystemVolume |
withDisks(Iterable<? extends Disk> elements)
Copy the current immutable object with elements that replace the content of
disks . |
ImmutableFilesystemVolume |
withDisplayName(String value)
Copy the current immutable object by setting a value for the
displayName attribute. |
ImmutableFilesystemVolume |
withFilesystemType(String value)
Copy the current immutable object by setting a value for the
filesystemType attribute. |
ImmutableFilesystemVolume |
withFilesystemUuid(String value)
Copy the current immutable object by setting a value for the
filesystemUuid attribute. |
ImmutableFilesystemVolume |
withIsSupported(boolean value)
Copy the current immutable object by setting a value for the
isSupported attribute. |
ImmutableFilesystemVolume |
withLogicalVolume(LogicalVolume value)
Copy the current immutable object by setting a present value for the optional
logicalVolume attribute. |
ImmutableFilesystemVolume |
withLogicalVolume(Optional<? extends LogicalVolume> optional)
Copy the current immutable object by setting an optional value for the
logicalVolume attribute. |
ImmutableFilesystemVolume |
withLogicalVolumeType(LogicalVolumeType value)
Copy the current immutable object by setting a value for the
logicalVolumeType attribute. |
ImmutableFilesystemVolume |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public com.google.common.collect.ImmutableList<Disk> disks()
Specifies information about all the disks and partitions needed to mount this logical volume.
disks
in interface FilesystemVolume
public String displayName()
displayName
in interface FilesystemVolume
public String filesystemType()
filesystemType
in interface FilesystemVolume
public String filesystemUuid()
filesystemUuid
in interface FilesystemVolume
public boolean isSupported()
isSupported
in interface FilesystemVolume
public Optional<LogicalVolume> logicalVolume()
logicalVolume
in interface FilesystemVolume
public LogicalVolumeType logicalVolumeType()
logicalVolumeType
in interface FilesystemVolume
public String name()
name
in interface FilesystemVolume
public final ImmutableFilesystemVolume withDisks(Disk... elements)
disks
.elements
- The elements to setthis
objectpublic final ImmutableFilesystemVolume withDisks(Iterable<? extends Disk> elements)
disks
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of disks elements to setthis
objectpublic final ImmutableFilesystemVolume withDisplayName(String value)
displayName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for displayNamethis
objectpublic final ImmutableFilesystemVolume withFilesystemType(String value)
filesystemType
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for filesystemTypethis
objectpublic final ImmutableFilesystemVolume withFilesystemUuid(String value)
filesystemUuid
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for filesystemUuidthis
objectpublic final ImmutableFilesystemVolume withIsSupported(boolean value)
isSupported
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for isSupportedthis
objectpublic final ImmutableFilesystemVolume withLogicalVolume(LogicalVolume value)
logicalVolume
attribute.value
- The value for logicalVolumethis
objectpublic final ImmutableFilesystemVolume withLogicalVolume(Optional<? extends LogicalVolume> optional)
logicalVolume
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for logicalVolumethis
objectpublic final ImmutableFilesystemVolume withLogicalVolumeType(LogicalVolumeType value)
logicalVolumeType
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for logicalVolumeTypethis
objectpublic final ImmutableFilesystemVolume withName(String value)
name
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for namethis
objectpublic boolean equals(@Nullable Object another)
ImmutableFilesystemVolume
that have equal attribute values.public int hashCode()
disks
, displayName
, filesystemType
, filesystemUuid
, isSupported
, logicalVolume
, logicalVolumeType
, name
.public String toString()
FilesystemVolume
with attribute values.public static ImmutableFilesystemVolume copyOf(FilesystemVolume instance)
FilesystemVolume
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableFilesystemVolume.Builder builder()
ImmutableFilesystemVolume
.
ImmutableFilesystemVolume.builder() .addDisks|addAllDisks(com.iland.cohesity.iaas.backups.common.model.Disk) //disks
elements .displayName(String) // requireddisplayName
.filesystemType(String) // requiredfilesystemType
.filesystemUuid(String) // requiredfilesystemUuid
.isSupported(boolean) // requiredisSupported
.logicalVolume(com.iland.cohesity.iaas.backups.common.model.LogicalVolume) // optionallogicalVolume
.logicalVolumeType(com.iland.cohesity.iaas.backups.common.enums.LogicalVolumeType) // requiredlogicalVolumeType
.name(String) // requiredname
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.