@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupSourceStats extends Object implements BackupSourceStats
BackupSourceStats.
Use the builder to create immutable instances:
ImmutableBackupSourceStats.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBackupSourceStats.Builder
Builds instances of type
ImmutableBackupSourceStats. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Instant> |
admittedTime()
Specifies the time the task was unqueued from the queue to start running.
|
static ImmutableBackupSourceStats.Builder |
builder()
Creates a builder for
ImmutableBackupSourceStats. |
static ImmutableBackupSourceStats |
copyOf(BackupSourceStats instance)
Creates an immutable copy of a
BackupSourceStats value. |
Optional<Instant> |
endTime()
Specifies the end time of the backup run.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupSourceStats that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
admittedTime, endTime, startTime, timeTaken, totalBytesReadFromSource, totalBytesToReadFromSource, totalLogicalBackupSizeBytes, totalPhysicalBackupSizeBytes, totalSourceSizeBytes. |
Instant |
startTime()
Specifies the start time of the Protection Run.
|
Optional<Duration> |
timeTaken()
Specifies the actual execution time for the protection run to complete the
backup task and the copy tasks.
|
String |
toString()
Prints the immutable value
BackupSourceStats with attribute values. |
long |
totalBytesReadFromSource()
Specifies the total amount of data read from the source (so far).
|
long |
totalBytesToReadFromSource()
Specifies the total amount of data expected to be read from the source.
|
long |
totalLogicalBackupSizeBytes()
Specifies the size of the source object (such as a VM) protected by this
task on the primary storage after the snapshot is taken.
|
long |
totalPhysicalBackupSizeBytes()
Specifies the total amount of physical space used to store the protected
object after being reduced by change-block tracking, compression and
deduplication.
|
long |
totalSourceSizeBytes()
Specifies the size of the source object (such as a VM) protected by this
task on the primary storage before the snapshot is taken.
|
ImmutableBackupSourceStats |
withAdmittedTime(Instant value)
Copy the current immutable object by setting a present value for the optional
admittedTime attribute. |
ImmutableBackupSourceStats |
withAdmittedTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
admittedTime attribute. |
ImmutableBackupSourceStats |
withEndTime(Instant value)
Copy the current immutable object by setting a present value for the optional
endTime attribute. |
ImmutableBackupSourceStats |
withEndTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
endTime attribute. |
ImmutableBackupSourceStats |
withStartTime(Instant value)
Copy the current immutable object by setting a value for the
startTime attribute. |
ImmutableBackupSourceStats |
withTimeTaken(Duration value)
Copy the current immutable object by setting a present value for the optional
timeTaken attribute. |
ImmutableBackupSourceStats |
withTimeTaken(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for the
timeTaken attribute. |
ImmutableBackupSourceStats |
withTotalBytesReadFromSource(long value)
Copy the current immutable object by setting a value for the
totalBytesReadFromSource attribute. |
ImmutableBackupSourceStats |
withTotalBytesToReadFromSource(long value)
Copy the current immutable object by setting a value for the
totalBytesToReadFromSource attribute. |
ImmutableBackupSourceStats |
withTotalLogicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalLogicalBackupSizeBytes attribute. |
ImmutableBackupSourceStats |
withTotalPhysicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalPhysicalBackupSizeBytes attribute. |
ImmutableBackupSourceStats |
withTotalSourceSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalSourceSizeBytes attribute. |
public Optional<Instant> admittedTime()
admittedTime in interface BackupSourceStatspublic Optional<Instant> endTime()
endTime in interface BackupSourceStatspublic Instant startTime()
startTime in interface BackupSourceStatspublic Optional<Duration> timeTaken()
timeTaken in interface BackupSourceStatspublic long totalBytesReadFromSource()
totalBytesReadFromSource in interface BackupSourceStatspublic long totalBytesToReadFromSource()
totalBytesToReadFromSource in interface BackupSourceStatspublic long totalLogicalBackupSizeBytes()
totalLogicalBackupSizeBytes in interface BackupSourceStatspublic long totalPhysicalBackupSizeBytes()
totalPhysicalBackupSizeBytes in interface BackupSourceStatspublic long totalSourceSizeBytes()
totalSourceSizeBytes in interface BackupSourceStatspublic final ImmutableBackupSourceStats withAdmittedTime(Instant value)
admittedTime attribute.value - The value for admittedTimethis objectpublic final ImmutableBackupSourceStats withAdmittedTime(Optional<? extends Instant> optional)
admittedTime attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for admittedTimethis objectpublic final ImmutableBackupSourceStats withEndTime(Instant value)
endTime attribute.value - The value for endTimethis objectpublic final ImmutableBackupSourceStats withEndTime(Optional<? extends Instant> optional)
endTime attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for endTimethis objectpublic final ImmutableBackupSourceStats 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 ImmutableBackupSourceStats withTimeTaken(Duration value)
timeTaken attribute.value - The value for timeTakenthis objectpublic final ImmutableBackupSourceStats withTimeTaken(Optional<? extends Duration> optional)
timeTaken attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for timeTakenthis objectpublic final ImmutableBackupSourceStats withTotalBytesReadFromSource(long value)
totalBytesReadFromSource attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for totalBytesReadFromSourcethis objectpublic final ImmutableBackupSourceStats withTotalBytesToReadFromSource(long value)
totalBytesToReadFromSource attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for totalBytesToReadFromSourcethis objectpublic final ImmutableBackupSourceStats withTotalLogicalBackupSizeBytes(long value)
totalLogicalBackupSizeBytes attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for totalLogicalBackupSizeBytesthis objectpublic final ImmutableBackupSourceStats withTotalPhysicalBackupSizeBytes(long value)
totalPhysicalBackupSizeBytes attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for totalPhysicalBackupSizeBytesthis objectpublic final ImmutableBackupSourceStats withTotalSourceSizeBytes(long value)
totalSourceSizeBytes attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for totalSourceSizeBytesthis objectpublic boolean equals(@Nullable Object another)
ImmutableBackupSourceStats that have equal attribute values.public int hashCode()
admittedTime, endTime, startTime, timeTaken, totalBytesReadFromSource, totalBytesToReadFromSource, totalLogicalBackupSizeBytes, totalPhysicalBackupSizeBytes, totalSourceSizeBytes.public String toString()
BackupSourceStats with attribute values.public static ImmutableBackupSourceStats copyOf(BackupSourceStats instance)
BackupSourceStats 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 ImmutableBackupSourceStats.Builder builder()
ImmutableBackupSourceStats.
ImmutableBackupSourceStats.builder()
.admittedTime(java.time.Instant) // optional admittedTime
.endTime(java.time.Instant) // optional endTime
.startTime(java.time.Instant) // required startTime
.timeTaken(java.time.Duration) // optional timeTaken
.totalBytesReadFromSource(long) // required totalBytesReadFromSource
.totalBytesToReadFromSource(long) // required totalBytesToReadFromSource
.totalLogicalBackupSizeBytes(long) // required totalLogicalBackupSizeBytes
.totalPhysicalBackupSizeBytes(long) // required totalPhysicalBackupSizeBytes
.totalSourceSizeBytes(long) // required totalSourceSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.