@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDisk extends Object implements Disk
Disk
.
Use the builder to create immutable instances:
ImmutableDisk.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDisk.Builder
Builds instances of type
ImmutableDisk . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDisk.Builder |
builder()
Creates a builder for
ImmutableDisk . |
static ImmutableDisk |
copyOf(Disk instance)
Creates an immutable copy of a
Disk value. |
com.google.common.collect.ImmutableList<DiskBlock> |
diskBlocks()
Array of Disk Blocks.
|
DiskFormat |
diskFormat()
Specifies the format of the virtual disk.
|
com.google.common.collect.ImmutableList<DiskPartition> |
diskPartitions()
Array of Partitions.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDisk that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
diskBlocks , diskFormat , diskPartitions , partitionTableFormat , sectorSizeBytes , uuid , vmdkFileName , vmdkSizeBytes . |
PartitionTableFormat |
partitionTableFormat()
Specifies partition table format on a disk.
|
long |
sectorSizeBytes()
Specifies the sector size of hard disk.
|
String |
toString()
Prints the immutable value
Disk with attribute values. |
String |
uuid()
Specifies the disk uuid.
|
String |
vmdkFileName()
Specifies the disk file name.
|
long |
vmdkSizeBytes()
Specifies the disk size in bytes.
|
ImmutableDisk |
withDiskBlocks(DiskBlock... elements)
Copy the current immutable object with elements that replace the content of
diskBlocks . |
ImmutableDisk |
withDiskBlocks(Iterable<? extends DiskBlock> elements)
Copy the current immutable object with elements that replace the content of
diskBlocks . |
ImmutableDisk |
withDiskFormat(DiskFormat value)
Copy the current immutable object by setting a value for the
diskFormat attribute. |
ImmutableDisk |
withDiskPartitions(DiskPartition... elements)
Copy the current immutable object with elements that replace the content of
diskPartitions . |
ImmutableDisk |
withDiskPartitions(Iterable<? extends DiskPartition> elements)
Copy the current immutable object with elements that replace the content of
diskPartitions . |
ImmutableDisk |
withPartitionTableFormat(PartitionTableFormat value)
Copy the current immutable object by setting a value for the
partitionTableFormat attribute. |
ImmutableDisk |
withSectorSizeBytes(long value)
Copy the current immutable object by setting a value for the
sectorSizeBytes attribute. |
ImmutableDisk |
withUuid(String value)
Copy the current immutable object by setting a value for the
uuid attribute. |
ImmutableDisk |
withVmdkFileName(String value)
Copy the current immutable object by setting a value for the
vmdkFileName attribute. |
ImmutableDisk |
withVmdkSizeBytes(long value)
Copy the current immutable object by setting a value for the
vmdkSizeBytes attribute. |
public com.google.common.collect.ImmutableList<DiskBlock> diskBlocks()
Specifies a set of disk blocks by defining the location and offset of disk blocks in a disk.
diskBlocks
in interface Disk
public DiskFormat diskFormat()
diskFormat
in interface Disk
public com.google.common.collect.ImmutableList<DiskPartition> diskPartitions()
Specifies information about all the partitions in this disk.
diskPartitions
in interface Disk
public PartitionTableFormat partitionTableFormat()
partitionTableFormat
in interface Disk
public long sectorSizeBytes()
sectorSizeBytes
in interface Disk
public String vmdkFileName()
vmdkFileName
in interface Disk
public long vmdkSizeBytes()
vmdkSizeBytes
in interface Disk
public final ImmutableDisk withDiskBlocks(DiskBlock... elements)
diskBlocks
.elements
- The elements to setthis
objectpublic final ImmutableDisk withDiskBlocks(Iterable<? extends DiskBlock> elements)
diskBlocks
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of diskBlocks elements to setthis
objectpublic final ImmutableDisk withDiskFormat(DiskFormat value)
diskFormat
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for diskFormatthis
objectpublic final ImmutableDisk withDiskPartitions(DiskPartition... elements)
diskPartitions
.elements
- The elements to setthis
objectpublic final ImmutableDisk withDiskPartitions(Iterable<? extends DiskPartition> elements)
diskPartitions
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of diskPartitions elements to setthis
objectpublic final ImmutableDisk withPartitionTableFormat(PartitionTableFormat value)
partitionTableFormat
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for partitionTableFormatthis
objectpublic final ImmutableDisk withSectorSizeBytes(long value)
sectorSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for sectorSizeBytesthis
objectpublic final ImmutableDisk withUuid(String value)
uuid
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for uuidthis
objectpublic final ImmutableDisk withVmdkFileName(String value)
vmdkFileName
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for vmdkFileNamethis
objectpublic final ImmutableDisk withVmdkSizeBytes(long value)
vmdkSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for vmdkSizeBytesthis
objectpublic boolean equals(@Nullable Object another)
ImmutableDisk
that have equal attribute values.public int hashCode()
diskBlocks
, diskFormat
, diskPartitions
, partitionTableFormat
, sectorSizeBytes
, uuid
, vmdkFileName
, vmdkSizeBytes
.public String toString()
Disk
with attribute values.public static ImmutableDisk copyOf(Disk instance)
Disk
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 ImmutableDisk.Builder builder()
ImmutableDisk
.
ImmutableDisk.builder() .addDiskBlocks|addAllDiskBlocks(com.iland.cohesity.iaas.backups.common.model.DiskBlock) //diskBlocks
elements .diskFormat(com.iland.cohesity.iaas.backups.common.enums.DiskFormat) // requireddiskFormat
.addDiskPartitions|addAllDiskPartitions(com.iland.cohesity.iaas.backups.common.model.DiskPartition) //diskPartitions
elements .partitionTableFormat(com.iland.cohesity.iaas.backups.common.enums.PartitionTableFormat) // requiredpartitionTableFormat
.sectorSizeBytes(long) // requiredsectorSizeBytes
.uuid(String) // requireduuid
.vmdkFileName(String) // requiredvmdkFileName
.vmdkSizeBytes(long) // requiredvmdkSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.