@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSnapshotVersion extends Object implements SnapshotVersion
SnapshotVersion
.
Use the builder to create immutable instances:
ImmutableSnapshotVersion.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableSnapshotVersion.Builder
Builds instances of type
ImmutableSnapshotVersion . |
Modifier and Type | Method and Description |
---|---|
boolean |
appConsistent()
Specifies if an app-consistent snapshot was captured.
|
long |
attemptNumber()
Specifies the number of the attempts made by the VCloudProtectionJob Run to
capture a snapshot of the object.
|
BackupRunUid |
backupRunUid()
Specifies the id of the backup run.
|
static ImmutableSnapshotVersion.Builder |
builder()
Creates a builder for
ImmutableSnapshotVersion . |
static ImmutableSnapshotVersion |
copyOf(SnapshotVersion instance)
Creates an immutable copy of a
SnapshotVersion value. |
long |
deltaSizeBytes()
Specifies the size of the data captured from the source object.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSnapshotVersion that have equal attribute values. |
boolean |
fullBackup()
Specifies if the snapshot is a full backup.
|
int |
hashCode()
Computes a hash code from attributes:
startTime , attemptNumber , deltaSizeBytes , appConsistent , fullBackup , backupRunUid , logicalSizeBytes , physicalSizeBytes , primaryPhysicalSizeBytes . |
long |
logicalSizeBytes()
Specifies the size of the snapshot if the data is fully hydrated or
expanded and not reduced by change-block tracking, compression and
deduplication.
|
long |
physicalSizeBytes()
Specifies the amount of data actually used on the disk to store this object
after being reduced by change-block tracking, compression and
deduplication.
|
long |
primaryPhysicalSizeBytes()
Specifies the total amount of disk space used to store this object on the
primary storage.
|
Instant |
startTime()
The time that the snapshot was captured.
|
String |
toString()
Prints the immutable value
SnapshotVersion with attribute values. |
ImmutableSnapshotVersion |
withAppConsistent(boolean value)
Copy the current immutable object by setting a value for the
appConsistent attribute. |
ImmutableSnapshotVersion |
withAttemptNumber(long value)
Copy the current immutable object by setting a value for the
attemptNumber attribute. |
ImmutableSnapshotVersion |
withBackupRunUid(BackupRunUid value)
Copy the current immutable object by setting a value for the
backupRunUid attribute. |
ImmutableSnapshotVersion |
withDeltaSizeBytes(long value)
Copy the current immutable object by setting a value for the
deltaSizeBytes attribute. |
ImmutableSnapshotVersion |
withFullBackup(boolean value)
Copy the current immutable object by setting a value for the
fullBackup attribute. |
ImmutableSnapshotVersion |
withLogicalSizeBytes(long value)
Copy the current immutable object by setting a value for the
logicalSizeBytes attribute. |
ImmutableSnapshotVersion |
withPhysicalSizeBytes(long value)
Copy the current immutable object by setting a value for the
physicalSizeBytes attribute. |
ImmutableSnapshotVersion |
withPrimaryPhysicalSizeBytes(long value)
Copy the current immutable object by setting a value for the
primaryPhysicalSizeBytes attribute. |
ImmutableSnapshotVersion |
withStartTime(Instant value)
Copy the current immutable object by setting a value for the
startTime attribute. |
public Instant startTime()
startTime
in interface SnapshotVersion
public long attemptNumber()
attemptNumber
in interface SnapshotVersion
public long deltaSizeBytes()
deltaSizeBytes
in interface SnapshotVersion
public boolean appConsistent()
appConsistent
in interface SnapshotVersion
public boolean fullBackup()
fullBackup
in interface SnapshotVersion
public BackupRunUid backupRunUid()
backupRunUid
in interface SnapshotVersion
public long logicalSizeBytes()
logicalSizeBytes
in interface SnapshotVersion
public long physicalSizeBytes()
physicalSizeBytes
in interface SnapshotVersion
public long primaryPhysicalSizeBytes()
primaryPhysicalSizeBytes
in interface SnapshotVersion
public final ImmutableSnapshotVersion withStartTime(Instant value)
startTime
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for startTimethis
objectpublic final ImmutableSnapshotVersion withAttemptNumber(long value)
attemptNumber
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for attemptNumberthis
objectpublic final ImmutableSnapshotVersion withDeltaSizeBytes(long value)
deltaSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for deltaSizeBytesthis
objectpublic final ImmutableSnapshotVersion withAppConsistent(boolean value)
appConsistent
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for appConsistentthis
objectpublic final ImmutableSnapshotVersion withFullBackup(boolean value)
fullBackup
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for fullBackupthis
objectpublic final ImmutableSnapshotVersion withBackupRunUid(BackupRunUid value)
backupRunUid
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for backupRunUidthis
objectpublic final ImmutableSnapshotVersion withLogicalSizeBytes(long value)
logicalSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for logicalSizeBytesthis
objectpublic final ImmutableSnapshotVersion withPhysicalSizeBytes(long value)
physicalSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for physicalSizeBytesthis
objectpublic final ImmutableSnapshotVersion withPrimaryPhysicalSizeBytes(long value)
primaryPhysicalSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for primaryPhysicalSizeBytesthis
objectpublic boolean equals(@Nullable Object another)
ImmutableSnapshotVersion
that have equal attribute values.public int hashCode()
startTime
, attemptNumber
, deltaSizeBytes
, appConsistent
, fullBackup
, backupRunUid
, logicalSizeBytes
, physicalSizeBytes
, primaryPhysicalSizeBytes
.public String toString()
SnapshotVersion
with attribute values.public static ImmutableSnapshotVersion copyOf(SnapshotVersion instance)
SnapshotVersion
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 ImmutableSnapshotVersion.Builder builder()
ImmutableSnapshotVersion
.
ImmutableSnapshotVersion.builder() .startTime(java.time.Instant) // requiredstartTime
.attemptNumber(long) // requiredattemptNumber
.deltaSizeBytes(long) // requireddeltaSizeBytes
.appConsistent(boolean) // requiredappConsistent
.fullBackup(boolean) // requiredfullBackup
.backupRunUid(com.iland.cohesity.iaas.backups.common.model.BackupRunUid) // requiredbackupRunUid
.logicalSizeBytes(long) // requiredlogicalSizeBytes
.physicalSizeBytes(long) // requiredphysicalSizeBytes
.primaryPhysicalSizeBytes(long) // requiredprimaryPhysicalSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.