@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupGroupDiskUnit extends Object implements BackupGroupDiskUnit
BackupGroupDiskUnit
.
Use the builder to create immutable instances:
ImmutableBackupGroupDiskUnit.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableBackupGroupDiskUnit.Builder
Builds instances of type
ImmutableBackupGroupDiskUnit . |
Modifier and Type | Method and Description |
---|---|
static ImmutableBackupGroupDiskUnit.Builder |
builder()
Creates a builder for
ImmutableBackupGroupDiskUnit . |
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 ImmutableBackupGroupDiskUnit |
copyOf(BackupGroupDiskUnit instance)
Creates an immutable copy of a
BackupGroupDiskUnit value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupGroupDiskUnit that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
busNumber , controllerType , unitNumber . |
String |
toString()
Prints the immutable value
BackupGroupDiskUnit with attribute values. |
Long |
unitNumber()
Specifies the disk file name.
|
ImmutableBackupGroupDiskUnit |
withBusNumber(Long value)
Copy the current immutable object by setting a value for the
busNumber attribute. |
ImmutableBackupGroupDiskUnit |
withControllerType(String value)
Copy the current immutable object by setting a value for the
controllerType attribute. |
ImmutableBackupGroupDiskUnit |
withUnitNumber(Long value)
Copy the current immutable object by setting a value for the
unitNumber attribute. |
public Long busNumber()
busNumber
in interface BackupGroupDiskUnit
public String controllerType()
controllerType
in interface BackupGroupDiskUnit
public Long unitNumber()
unitNumber
in interface BackupGroupDiskUnit
public final ImmutableBackupGroupDiskUnit 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 ImmutableBackupGroupDiskUnit 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 ImmutableBackupGroupDiskUnit 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)
ImmutableBackupGroupDiskUnit
that have equal attribute values.public int hashCode()
busNumber
, controllerType
, unitNumber
.public String toString()
BackupGroupDiskUnit
with attribute values.public static ImmutableBackupGroupDiskUnit copyOf(BackupGroupDiskUnit instance)
BackupGroupDiskUnit
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 ImmutableBackupGroupDiskUnit.Builder builder()
ImmutableBackupGroupDiskUnit
.
ImmutableBackupGroupDiskUnit.builder() .busNumber(Long) // requiredbusNumber
.controllerType(String) // requiredcontrollerType
.unitNumber(Long) // requiredunitNumber
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.