@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.BuilderBuilds 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  Diskvalue. | 
| 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  ImmutableDiskthat 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  Diskwith 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  diskFormatattribute. | 
| 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  partitionTableFormatattribute. | 
| ImmutableDisk | withSectorSizeBytes(long value)Copy the current immutable object by setting a value for the  sectorSizeBytesattribute. | 
| ImmutableDisk | withUuid(String value)Copy the current immutable object by setting a value for the  uuidattribute. | 
| ImmutableDisk | withVmdkFileName(String value)Copy the current immutable object by setting a value for the  vmdkFileNameattribute. | 
| ImmutableDisk | withVmdkSizeBytes(long value)Copy the current immutable object by setting a value for the  vmdkSizeBytesattribute. | 
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 Diskpublic DiskFormat diskFormat()
diskFormat in interface Diskpublic com.google.common.collect.ImmutableList<DiskPartition> diskPartitions()
Specifies information about all the partitions in this disk.
diskPartitions in interface Diskpublic PartitionTableFormat partitionTableFormat()
partitionTableFormat in interface Diskpublic long sectorSizeBytes()
sectorSizeBytes in interface Diskpublic String vmdkFileName()
vmdkFileName in interface Diskpublic long vmdkSizeBytes()
vmdkSizeBytes in interface Diskpublic 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) // required diskFormat
    .addDiskPartitions|addAllDiskPartitions(com.iland.cohesity.iaas.backups.common.model.DiskPartition) // diskPartitions elements
    .partitionTableFormat(com.iland.cohesity.iaas.backups.common.enums.PartitionTableFormat) // required partitionTableFormat
    .sectorSizeBytes(long) // required sectorSizeBytes
    .uuid(String) // required uuid
    .vmdkFileName(String) // required vmdkFileName
    .vmdkSizeBytes(long) // required vmdkSizeBytes
    .build();
 Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.