@NotThreadSafe public static final class ImmutableBackupRunStats.Builder extends Object
ImmutableBackupRunStats.
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 |
|---|---|
ImmutableBackupRunStats.Builder |
admittedTime(Instant admittedTime)
Initializes the optional value
admittedTime to admittedTime. |
ImmutableBackupRunStats.Builder |
admittedTime(Optional<? extends Instant> admittedTime)
Initializes the optional value
admittedTime to admittedTime. |
ImmutableBackupRunStats |
build()
Builds a new
ImmutableBackupRunStats. |
ImmutableBackupRunStats.Builder |
endTime(Instant endTime)
Initializes the optional value
endTime to endTime. |
ImmutableBackupRunStats.Builder |
endTime(Optional<? extends Instant> endTime)
Initializes the optional value
endTime to endTime. |
ImmutableBackupRunStats.Builder |
from(BackupRunStats instance)
Fill a builder with attribute values from the provided
BackupRunStats instance. |
ImmutableBackupRunStats.Builder |
numCanceledTasks(long numCanceledTasks)
Initializes the value for the
numCanceledTasks attribute. |
ImmutableBackupRunStats.Builder |
numFailedTasks(long numFailedTasks)
Initializes the value for the
numFailedTasks attribute. |
ImmutableBackupRunStats.Builder |
numSuccessfulTasks(long numSuccessfulTasks)
Initializes the value for the
numSuccessfulTasks attribute. |
ImmutableBackupRunStats.Builder |
startTime(Instant startTime)
Initializes the value for the
startTime attribute. |
ImmutableBackupRunStats.Builder |
timeTaken(Duration timeTaken)
Initializes the optional value
timeTaken to timeTaken. |
ImmutableBackupRunStats.Builder |
timeTaken(Optional<? extends Duration> timeTaken)
Initializes the optional value
timeTaken to timeTaken. |
ImmutableBackupRunStats.Builder |
totalBytesReadFromSource(long totalBytesReadFromSource)
Initializes the value for the
totalBytesReadFromSource attribute. |
ImmutableBackupRunStats.Builder |
totalBytesToReadFromSource(long totalBytesToReadFromSource)
Initializes the value for the
totalBytesToReadFromSource attribute. |
ImmutableBackupRunStats.Builder |
totalLogicalBackupSizeBytes(long totalLogicalBackupSizeBytes)
Initializes the value for the
totalLogicalBackupSizeBytes attribute. |
ImmutableBackupRunStats.Builder |
totalPhysicalBackupSizeBytes(long totalPhysicalBackupSizeBytes)
Initializes the value for the
totalPhysicalBackupSizeBytes attribute. |
ImmutableBackupRunStats.Builder |
totalSourceSizeBytes(long totalSourceSizeBytes)
Initializes the value for the
totalSourceSizeBytes attribute. |
public final ImmutableBackupRunStats.Builder from(BackupRunStats instance)
BackupRunStats 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 ImmutableBackupRunStats.Builder admittedTime(Instant admittedTime)
admittedTime to admittedTime.admittedTime - The value for admittedTimethis builder for chained invocationpublic final ImmutableBackupRunStats.Builder admittedTime(Optional<? extends Instant> admittedTime)
admittedTime to admittedTime.admittedTime - The value for admittedTimethis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder endTime(Instant endTime)
endTime to endTime.endTime - The value for endTimethis builder for chained invocationpublic final ImmutableBackupRunStats.Builder endTime(Optional<? extends Instant> endTime)
endTime to endTime.endTime - The value for endTimethis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder numCanceledTasks(long numCanceledTasks)
numCanceledTasks attribute.numCanceledTasks - The value for numCanceledTasksthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder numFailedTasks(long numFailedTasks)
numFailedTasks attribute.numFailedTasks - The value for numFailedTasksthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder numSuccessfulTasks(long numSuccessfulTasks)
numSuccessfulTasks attribute.numSuccessfulTasks - The value for numSuccessfulTasksthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder startTime(Instant startTime)
startTime attribute.startTime - The value for startTimethis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder timeTaken(Duration timeTaken)
timeTaken to timeTaken.timeTaken - The value for timeTakenthis builder for chained invocationpublic final ImmutableBackupRunStats.Builder timeTaken(Optional<? extends Duration> timeTaken)
timeTaken to timeTaken.timeTaken - The value for timeTakenthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder totalBytesReadFromSource(long totalBytesReadFromSource)
totalBytesReadFromSource attribute.totalBytesReadFromSource - The value for totalBytesReadFromSourcethis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder totalBytesToReadFromSource(long totalBytesToReadFromSource)
totalBytesToReadFromSource attribute.totalBytesToReadFromSource - The value for totalBytesToReadFromSourcethis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder totalLogicalBackupSizeBytes(long totalLogicalBackupSizeBytes)
totalLogicalBackupSizeBytes attribute.totalLogicalBackupSizeBytes - The value for totalLogicalBackupSizeBytesthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder totalPhysicalBackupSizeBytes(long totalPhysicalBackupSizeBytes)
totalPhysicalBackupSizeBytes attribute.totalPhysicalBackupSizeBytes - The value for totalPhysicalBackupSizeBytesthis builder for use in a chained invocationpublic final ImmutableBackupRunStats.Builder totalSourceSizeBytes(long totalSourceSizeBytes)
totalSourceSizeBytes attribute.totalSourceSizeBytes - The value for totalSourceSizeBytesthis builder for use in a chained invocationpublic ImmutableBackupRunStats build()
ImmutableBackupRunStats.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.