@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableVMSnapshot extends Object implements VMSnapshot
VMSnapshot.
Use the builder to create immutable instances:
ImmutableVMSnapshot.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVMSnapshot.Builder
Builds instances of type
ImmutableVMSnapshot. |
| Modifier and Type | Method and Description |
|---|---|
String |
backupGroupName()
The name of the associated backup group.
|
BackupGroupUid |
backupGroupUid()
The UID of the associated backup group.
|
static ImmutableVMSnapshot.Builder |
builder()
Creates a builder for
ImmutableVMSnapshot. |
CompanyId |
companyId()
The ID of the associated company.
|
static ImmutableVMSnapshot |
copyOf(VMSnapshot instance)
Creates an immutable copy of a
VMSnapshot value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVMSnapshot that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
companyId, locationId, orgUuid, vdcUuid, vappUuid, vmUuid, vmName, backupGroupUid, backupGroupName, osType, versions. |
LocationId |
locationId()
The ID of the associated location.
|
OrgUuid |
orgUuid()
The UUID of the associated org.
|
String |
osType()
The operating system type.
|
String |
toString()
Prints the immutable value
VMSnapshot with attribute values. |
VappUuid |
vappUuid()
The UUID of the associated vApp.
|
VdcUuid |
vdcUuid()
The UUID of the associated vDC.
|
com.google.common.collect.ImmutableList<SnapshotVersion> |
versions()
List of all snapshot versions that can be restored.
|
String |
vmName()
The name of the VM.
|
VmUuid |
vmUuid()
The UUID of the VM.
|
ImmutableVMSnapshot |
withBackupGroupName(String value)
Copy the current immutable object by setting a value for the
backupGroupName attribute. |
ImmutableVMSnapshot |
withBackupGroupUid(BackupGroupUid value)
Copy the current immutable object by setting a value for the
backupGroupUid attribute. |
ImmutableVMSnapshot |
withCompanyId(CompanyId value)
Copy the current immutable object by setting a value for the
companyId attribute. |
ImmutableVMSnapshot |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableVMSnapshot |
withOrgUuid(OrgUuid value)
Copy the current immutable object by setting a value for the
orgUuid attribute. |
ImmutableVMSnapshot |
withOsType(String value)
Copy the current immutable object by setting a value for the
osType attribute. |
ImmutableVMSnapshot |
withVappUuid(VappUuid value)
Copy the current immutable object by setting a value for the
vappUuid attribute. |
ImmutableVMSnapshot |
withVdcUuid(VdcUuid value)
Copy the current immutable object by setting a value for the
vdcUuid attribute. |
ImmutableVMSnapshot |
withVersions(Iterable<? extends SnapshotVersion> elements)
Copy the current immutable object with elements that replace the content of
versions. |
ImmutableVMSnapshot |
withVersions(SnapshotVersion... elements)
Copy the current immutable object with elements that replace the content of
versions. |
ImmutableVMSnapshot |
withVmName(String value)
Copy the current immutable object by setting a value for the
vmName attribute. |
ImmutableVMSnapshot |
withVmUuid(VmUuid value)
Copy the current immutable object by setting a value for the
vmUuid attribute. |
public CompanyId companyId()
companyId in interface VMSnapshotpublic LocationId locationId()
locationId in interface VMSnapshotpublic OrgUuid orgUuid()
orgUuid in interface VMSnapshotpublic VdcUuid vdcUuid()
vdcUuid in interface VMSnapshotpublic VappUuid vappUuid()
vappUuid in interface VMSnapshotpublic VmUuid vmUuid()
vmUuid in interface VMSnapshotpublic String vmName()
vmName in interface VMSnapshotpublic BackupGroupUid backupGroupUid()
backupGroupUid in interface VMSnapshotpublic String backupGroupName()
backupGroupName in interface VMSnapshotpublic String osType()
osType in interface VMSnapshotpublic com.google.common.collect.ImmutableList<SnapshotVersion> versions()
versions in interface VMSnapshotpublic final ImmutableVMSnapshot withCompanyId(CompanyId value)
companyId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for companyIdthis objectpublic final ImmutableVMSnapshot withLocationId(LocationId value)
locationId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for locationIdthis objectpublic final ImmutableVMSnapshot withOrgUuid(OrgUuid value)
orgUuid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for orgUuidthis objectpublic final ImmutableVMSnapshot withVdcUuid(VdcUuid value)
vdcUuid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for vdcUuidthis objectpublic final ImmutableVMSnapshot withVappUuid(VappUuid value)
vappUuid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for vappUuidthis objectpublic final ImmutableVMSnapshot withVmUuid(VmUuid value)
vmUuid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for vmUuidthis objectpublic final ImmutableVMSnapshot withVmName(String value)
vmName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for vmNamethis objectpublic final ImmutableVMSnapshot withBackupGroupUid(BackupGroupUid value)
backupGroupUid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for backupGroupUidthis objectpublic final ImmutableVMSnapshot withBackupGroupName(String value)
backupGroupName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for backupGroupNamethis objectpublic final ImmutableVMSnapshot withOsType(String value)
osType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for osTypethis objectpublic final ImmutableVMSnapshot withVersions(SnapshotVersion... elements)
versions.elements - The elements to setthis objectpublic final ImmutableVMSnapshot withVersions(Iterable<? extends SnapshotVersion> elements)
versions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of versions elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableVMSnapshot that have equal attribute values.public int hashCode()
companyId, locationId, orgUuid, vdcUuid, vappUuid, vmUuid, vmName, backupGroupUid, backupGroupName, osType, versions.public String toString()
VMSnapshot with attribute values.public static ImmutableVMSnapshot copyOf(VMSnapshot instance)
VMSnapshot 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 ImmutableVMSnapshot.Builder builder()
ImmutableVMSnapshot.
ImmutableVMSnapshot.builder()
.companyId(com.iland.cohesity.iaas.backups.common.model.CompanyId) // required companyId
.locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // required locationId
.orgUuid(com.iland.cohesity.iaas.backups.common.model.OrgUuid) // required orgUuid
.vdcUuid(com.iland.cohesity.iaas.backups.common.model.VdcUuid) // required vdcUuid
.vappUuid(com.iland.cohesity.iaas.backups.common.model.VappUuid) // required vappUuid
.vmUuid(com.iland.cohesity.iaas.backups.common.model.VmUuid) // required vmUuid
.vmName(String) // required vmName
.backupGroupUid(com.iland.cohesity.iaas.backups.common.model.BackupGroupUid) // required backupGroupUid
.backupGroupName(String) // required backupGroupName
.osType(String) // required osType
.addVersions|addAllVersions(com.iland.cohesity.iaas.backups.common.model.SnapshotVersion) // versions elements
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.