@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCopyRunStats extends Object implements CopyRunStats
CopyRunStats.
Use the builder to create immutable instances:
ImmutableCopyRunStats.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCopyRunStats.Builder
Builds instances of type
ImmutableCopyRunStats. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCopyRunStats.Builder |
builder()
Creates a builder for
ImmutableCopyRunStats. |
static ImmutableCopyRunStats |
copyOf(CopyRunStats instance)
Creates an immutable copy of a
CopyRunStats value. |
Optional<Instant> |
endTime()
Specifies the time when this replication ended.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCopyRunStats that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
endTime, isIncremental, logicalBytesTransferred, logicalSizeBytes, logicalTransferRateBps, physicalBytesTransferred, startTime. |
Optional<Boolean> |
isIncremental()
Specifies whether this archival is incremental for archival targets.
|
long |
logicalBytesTransferred()
Specifies the number of logical bytes transferred for this replication so
far.
|
long |
logicalSizeBytes()
Specifies the total amount of logical data to be transferred for this
replication.
|
long |
logicalTransferRateBps()
Specifies average logical bytes transfer rate in bytes per second for
archival targets.
|
long |
physicalBytesTransferred()
Specifies the number of physical bytes sent over the wire for replication
targets.
|
Optional<Instant> |
startTime()
Specifies the time when this replication was started.
|
String |
toString()
Prints the immutable value
CopyRunStats with attribute values. |
ImmutableCopyRunStats |
withEndTime(Instant value)
Copy the current immutable object by setting a present value for the optional
endTime attribute. |
ImmutableCopyRunStats |
withEndTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
endTime attribute. |
ImmutableCopyRunStats |
withIsIncremental(boolean value)
Copy the current immutable object by setting a present value for the optional
isIncremental attribute. |
ImmutableCopyRunStats |
withIsIncremental(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
isIncremental attribute. |
ImmutableCopyRunStats |
withLogicalBytesTransferred(long value)
Copy the current immutable object by setting a value for the
logicalBytesTransferred attribute. |
ImmutableCopyRunStats |
withLogicalSizeBytes(long value)
Copy the current immutable object by setting a value for the
logicalSizeBytes attribute. |
ImmutableCopyRunStats |
withLogicalTransferRateBps(long value)
Copy the current immutable object by setting a value for the
logicalTransferRateBps attribute. |
ImmutableCopyRunStats |
withPhysicalBytesTransferred(long value)
Copy the current immutable object by setting a value for the
physicalBytesTransferred attribute. |
ImmutableCopyRunStats |
withStartTime(Instant value)
Copy the current immutable object by setting a present value for the optional
startTime attribute. |
ImmutableCopyRunStats |
withStartTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
startTime attribute. |
public Optional<Instant> endTime()
endTime in interface CopyRunStatspublic Optional<Boolean> isIncremental()
isIncremental in interface CopyRunStatspublic long logicalBytesTransferred()
logicalBytesTransferred in interface CopyRunStatspublic long logicalSizeBytes()
logicalSizeBytes in interface CopyRunStatspublic long logicalTransferRateBps()
logicalTransferRateBps in interface CopyRunStatspublic long physicalBytesTransferred()
physicalBytesTransferred in interface CopyRunStatspublic Optional<Instant> startTime()
startTime in interface CopyRunStatspublic final ImmutableCopyRunStats withEndTime(Instant value)
endTime attribute.value - The value for endTimethis objectpublic final ImmutableCopyRunStats 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 ImmutableCopyRunStats withIsIncremental(boolean value)
isIncremental attribute.value - The value for isIncrementalthis objectpublic final ImmutableCopyRunStats withIsIncremental(Optional<Boolean> optional)
isIncremental attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for isIncrementalthis objectpublic final ImmutableCopyRunStats withLogicalBytesTransferred(long value)
logicalBytesTransferred attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for logicalBytesTransferredthis objectpublic final ImmutableCopyRunStats 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 ImmutableCopyRunStats withLogicalTransferRateBps(long value)
logicalTransferRateBps attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for logicalTransferRateBpsthis objectpublic final ImmutableCopyRunStats withPhysicalBytesTransferred(long value)
physicalBytesTransferred attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for physicalBytesTransferredthis objectpublic final ImmutableCopyRunStats withStartTime(Instant value)
startTime attribute.value - The value for startTimethis objectpublic final ImmutableCopyRunStats withStartTime(Optional<? extends Instant> optional)
startTime 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 startTimethis objectpublic boolean equals(@Nullable Object another)
ImmutableCopyRunStats that have equal attribute values.public int hashCode()
endTime, isIncremental, logicalBytesTransferred, logicalSizeBytes, logicalTransferRateBps, physicalBytesTransferred, startTime.public String toString()
CopyRunStats with attribute values.public static ImmutableCopyRunStats copyOf(CopyRunStats instance)
CopyRunStats 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 ImmutableCopyRunStats.Builder builder()
ImmutableCopyRunStats.
ImmutableCopyRunStats.builder()
.endTime(java.time.Instant) // optional endTime
.isIncremental(Boolean) // optional isIncremental
.logicalBytesTransferred(long) // required logicalBytesTransferred
.logicalSizeBytes(long) // required logicalSizeBytes
.logicalTransferRateBps(long) // required logicalTransferRateBps
.physicalBytesTransferred(long) // required physicalBytesTransferred
.startTime(java.time.Instant) // optional startTime
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.