@NotThreadSafe public static final class ImmutableCopyRunStats.Builder extends Object
ImmutableCopyRunStats.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableCopyRunStats |
build()
Builds a new
ImmutableCopyRunStats. |
ImmutableCopyRunStats.Builder |
endTime(Instant endTime)
Initializes the optional value
endTime to endTime. |
ImmutableCopyRunStats.Builder |
endTime(Optional<? extends Instant> endTime)
Initializes the optional value
endTime to endTime. |
ImmutableCopyRunStats.Builder |
from(CopyRunStats instance)
Fill a builder with attribute values from the provided
CopyRunStats instance. |
ImmutableCopyRunStats.Builder |
isIncremental(boolean isIncremental)
Initializes the optional value
isIncremental to isIncremental. |
ImmutableCopyRunStats.Builder |
isIncremental(Optional<Boolean> isIncremental)
Initializes the optional value
isIncremental to isIncremental. |
ImmutableCopyRunStats.Builder |
logicalBytesTransferred(long logicalBytesTransferred)
Initializes the value for the
logicalBytesTransferred attribute. |
ImmutableCopyRunStats.Builder |
logicalSizeBytes(long logicalSizeBytes)
Initializes the value for the
logicalSizeBytes attribute. |
ImmutableCopyRunStats.Builder |
logicalTransferRateBps(long logicalTransferRateBps)
Initializes the value for the
logicalTransferRateBps attribute. |
ImmutableCopyRunStats.Builder |
physicalBytesTransferred(long physicalBytesTransferred)
Initializes the value for the
physicalBytesTransferred attribute. |
ImmutableCopyRunStats.Builder |
startTime(Instant startTime)
Initializes the optional value
startTime to startTime. |
ImmutableCopyRunStats.Builder |
startTime(Optional<? extends Instant> startTime)
Initializes the optional value
startTime to startTime. |
public final ImmutableCopyRunStats.Builder from(CopyRunStats instance)
CopyRunStats instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder endTime(Instant endTime)
endTime to endTime.endTime - The value for endTimethis builder for chained invocationpublic final ImmutableCopyRunStats.Builder endTime(Optional<? extends Instant> endTime)
endTime to endTime.endTime - The value for endTimethis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder isIncremental(boolean isIncremental)
isIncremental to isIncremental.isIncremental - The value for isIncrementalthis builder for chained invocationpublic final ImmutableCopyRunStats.Builder isIncremental(Optional<Boolean> isIncremental)
isIncremental to isIncremental.isIncremental - The value for isIncrementalthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder logicalBytesTransferred(long logicalBytesTransferred)
logicalBytesTransferred attribute.logicalBytesTransferred - The value for logicalBytesTransferredthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder logicalSizeBytes(long logicalSizeBytes)
logicalSizeBytes attribute.logicalSizeBytes - The value for logicalSizeBytesthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder logicalTransferRateBps(long logicalTransferRateBps)
logicalTransferRateBps attribute.logicalTransferRateBps - The value for logicalTransferRateBpsthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder physicalBytesTransferred(long physicalBytesTransferred)
physicalBytesTransferred attribute.physicalBytesTransferred - The value for physicalBytesTransferredthis builder for use in a chained invocationpublic final ImmutableCopyRunStats.Builder startTime(Instant startTime)
startTime to startTime.startTime - The value for startTimethis builder for chained invocationpublic final ImmutableCopyRunStats.Builder startTime(Optional<? extends Instant> startTime)
startTime to startTime.startTime - The value for startTimethis builder for use in a chained invocationpublic ImmutableCopyRunStats build()
ImmutableCopyRunStats.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.