@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVirtualDiskInformation extends Object implements VirtualDiskInformation
VirtualDiskInformation
.
Use the builder to create immutable instances:
ImmutableVirtualDiskInformation.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableVirtualDiskInformation.Builder
Builds instances of type
ImmutableVirtualDiskInformation . |
Modifier and Type | Method and Description |
---|---|
static ImmutableVirtualDiskInformation.Builder |
builder()
Creates a builder for
ImmutableVirtualDiskInformation . |
Long |
busNumber()
Specifies the Id of the controller bus that controls the disk.
|
String |
controllerType()
Specifies the controller type like SCSI, or IDE etc.
|
static ImmutableVirtualDiskInformation |
copyOf(VirtualDiskInformation instance)
Creates an immutable copy of a
VirtualDiskInformation value. |
String |
diskId()
Specifies original disk id.
|
Long |
diskSizeInBytes()
Specifies size of the virtual disk in bytes.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVirtualDiskInformation that have equal attribute values. |
String |
filePath()
Specifies the original file path if applicable.
|
int |
hashCode()
Computes a hash code from attributes:
protectionSource , busNumber , controllerType , diskId , diskSizeInBytes , filePath , mountPoints , unitNumber . |
com.google.common.collect.ImmutableList<String> |
mountPoints()
Specifies the list of mount points.
|
VCloudProtectionSource |
protectionSource()
The protection source that the disk is associated with.
|
String |
toString()
Prints the immutable value
VirtualDiskInformation with attribute values. |
Long |
unitNumber()
Specifies the disk file name.
|
ImmutableVirtualDiskInformation |
withBusNumber(Long value)
Copy the current immutable object by setting a value for the
busNumber attribute. |
ImmutableVirtualDiskInformation |
withControllerType(String value)
Copy the current immutable object by setting a value for the
controllerType attribute. |
ImmutableVirtualDiskInformation |
withDiskId(String value)
Copy the current immutable object by setting a value for the
diskId attribute. |
ImmutableVirtualDiskInformation |
withDiskSizeInBytes(Long value)
Copy the current immutable object by setting a value for the
diskSizeInBytes attribute. |
ImmutableVirtualDiskInformation |
withFilePath(String value)
Copy the current immutable object by setting a value for the
filePath attribute. |
ImmutableVirtualDiskInformation |
withMountPoints(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
mountPoints . |
ImmutableVirtualDiskInformation |
withMountPoints(String... elements)
Copy the current immutable object with elements that replace the content of
mountPoints . |
ImmutableVirtualDiskInformation |
withProtectionSource(VCloudProtectionSource value)
Copy the current immutable object by setting a value for the
protectionSource attribute. |
ImmutableVirtualDiskInformation |
withUnitNumber(Long value)
Copy the current immutable object by setting a value for the
unitNumber attribute. |
public VCloudProtectionSource protectionSource()
protectionSource
in interface VirtualDiskInformation
public Long busNumber()
busNumber
in interface VirtualDiskInformation
public String controllerType()
controllerType
in interface VirtualDiskInformation
public String diskId()
diskId
in interface VirtualDiskInformation
public Long diskSizeInBytes()
diskSizeInBytes
in interface VirtualDiskInformation
public String filePath()
filePath
in interface VirtualDiskInformation
public com.google.common.collect.ImmutableList<String> mountPoints()
mountPoints
in interface VirtualDiskInformation
public Long unitNumber()
unitNumber
in interface VirtualDiskInformation
public final ImmutableVirtualDiskInformation withProtectionSource(VCloudProtectionSource value)
protectionSource
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for protectionSourcethis
objectpublic final ImmutableVirtualDiskInformation withBusNumber(Long value)
busNumber
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for busNumberthis
objectpublic final ImmutableVirtualDiskInformation withControllerType(String value)
controllerType
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for controllerTypethis
objectpublic final ImmutableVirtualDiskInformation withDiskId(String value)
diskId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for diskIdthis
objectpublic final ImmutableVirtualDiskInformation withDiskSizeInBytes(Long value)
diskSizeInBytes
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for diskSizeInBytesthis
objectpublic final ImmutableVirtualDiskInformation withFilePath(String value)
filePath
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for filePaththis
objectpublic final ImmutableVirtualDiskInformation withMountPoints(String... elements)
mountPoints
.elements
- The elements to setthis
objectpublic final ImmutableVirtualDiskInformation withMountPoints(Iterable<String> elements)
mountPoints
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of mountPoints elements to setthis
objectpublic final ImmutableVirtualDiskInformation withUnitNumber(Long value)
unitNumber
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for unitNumberthis
objectpublic boolean equals(@Nullable Object another)
ImmutableVirtualDiskInformation
that have equal attribute values.public int hashCode()
protectionSource
, busNumber
, controllerType
, diskId
, diskSizeInBytes
, filePath
, mountPoints
, unitNumber
.public String toString()
VirtualDiskInformation
with attribute values.public static ImmutableVirtualDiskInformation copyOf(VirtualDiskInformation instance)
VirtualDiskInformation
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 ImmutableVirtualDiskInformation.Builder builder()
ImmutableVirtualDiskInformation
.
ImmutableVirtualDiskInformation.builder() .protectionSource(com.iland.cohesity.iaas.backups.common.model.VCloudProtectionSource) // requiredprotectionSource
.busNumber(Long) // requiredbusNumber
.controllerType(String) // requiredcontrollerType
.diskId(String) // requireddiskId
.diskSizeInBytes(Long) // requireddiskSizeInBytes
.filePath(String) // requiredfilePath
.addMountPoints|addAllMountPoints(String) //mountPoints
elements .unitNumber(Long) // requiredunitNumber
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.