@NotThreadSafe public static final class ImmutableBackupSourceStats.Builder extends Object
ImmutableBackupSourceStats
.
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.
public final ImmutableBackupSourceStats.Builder from(BackupSourceStats instance)
BackupSourceStats
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 ImmutableBackupSourceStats.Builder admittedTime(Instant admittedTime)
admittedTime
to admittedTime.admittedTime
- The value for admittedTimethis
builder for chained invocationpublic final ImmutableBackupSourceStats.Builder admittedTime(Optional<? extends Instant> admittedTime)
admittedTime
to admittedTime.admittedTime
- The value for admittedTimethis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder endTime(Instant endTime)
endTime
to endTime.endTime
- The value for endTimethis
builder for chained invocationpublic final ImmutableBackupSourceStats.Builder endTime(Optional<? extends Instant> endTime)
endTime
to endTime.endTime
- The value for endTimethis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder startTime(Instant startTime)
startTime
attribute.startTime
- The value for startTimethis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder timeTaken(Duration timeTaken)
timeTaken
to timeTaken.timeTaken
- The value for timeTakenthis
builder for chained invocationpublic final ImmutableBackupSourceStats.Builder timeTaken(Optional<? extends Duration> timeTaken)
timeTaken
to timeTaken.timeTaken
- The value for timeTakenthis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder totalBytesReadFromSource(long totalBytesReadFromSource)
totalBytesReadFromSource
attribute.totalBytesReadFromSource
- The value for totalBytesReadFromSourcethis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder totalBytesToReadFromSource(long totalBytesToReadFromSource)
totalBytesToReadFromSource
attribute.totalBytesToReadFromSource
- The value for totalBytesToReadFromSourcethis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder totalLogicalBackupSizeBytes(long totalLogicalBackupSizeBytes)
totalLogicalBackupSizeBytes
attribute.totalLogicalBackupSizeBytes
- The value for totalLogicalBackupSizeBytesthis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder totalPhysicalBackupSizeBytes(long totalPhysicalBackupSizeBytes)
totalPhysicalBackupSizeBytes
attribute.totalPhysicalBackupSizeBytes
- The value for totalPhysicalBackupSizeBytesthis
builder for use in a chained invocationpublic final ImmutableBackupSourceStats.Builder totalSourceSizeBytes(long totalSourceSizeBytes)
totalSourceSizeBytes
attribute.totalSourceSizeBytes
- The value for totalSourceSizeBytesthis
builder for use in a chained invocationpublic ImmutableBackupSourceStats build()
ImmutableBackupSourceStats
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.