@NotThreadSafe public static final class ImmutableSnapshotVersion.Builder extends Object
ImmutableSnapshotVersion
.
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 |
---|---|
ImmutableSnapshotVersion.Builder |
appConsistent(boolean appConsistent)
Initializes the value for the
appConsistent attribute. |
ImmutableSnapshotVersion.Builder |
attemptNumber(long attemptNumber)
Initializes the value for the
attemptNumber attribute. |
ImmutableSnapshotVersion.Builder |
backupRunUid(BackupRunUid backupRunUid)
Initializes the value for the
backupRunUid attribute. |
ImmutableSnapshotVersion |
build()
Builds a new
ImmutableSnapshotVersion . |
ImmutableSnapshotVersion.Builder |
deltaSizeBytes(long deltaSizeBytes)
Initializes the value for the
deltaSizeBytes attribute. |
ImmutableSnapshotVersion.Builder |
from(SnapshotVersion instance)
Fill a builder with attribute values from the provided
SnapshotVersion instance. |
ImmutableSnapshotVersion.Builder |
fullBackup(boolean fullBackup)
Initializes the value for the
fullBackup attribute. |
ImmutableSnapshotVersion.Builder |
logicalSizeBytes(long logicalSizeBytes)
Initializes the value for the
logicalSizeBytes attribute. |
ImmutableSnapshotVersion.Builder |
physicalSizeBytes(long physicalSizeBytes)
Initializes the value for the
physicalSizeBytes attribute. |
ImmutableSnapshotVersion.Builder |
primaryPhysicalSizeBytes(long primaryPhysicalSizeBytes)
Initializes the value for the
primaryPhysicalSizeBytes attribute. |
ImmutableSnapshotVersion.Builder |
startTime(Instant startTime)
Initializes the value for the
startTime attribute. |
public final ImmutableSnapshotVersion.Builder from(SnapshotVersion instance)
SnapshotVersion
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 ImmutableSnapshotVersion.Builder startTime(Instant startTime)
startTime
attribute.startTime
- The value for startTimethis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder attemptNumber(long attemptNumber)
attemptNumber
attribute.attemptNumber
- The value for attemptNumberthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder deltaSizeBytes(long deltaSizeBytes)
deltaSizeBytes
attribute.deltaSizeBytes
- The value for deltaSizeBytesthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder appConsistent(boolean appConsistent)
appConsistent
attribute.appConsistent
- The value for appConsistentthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder fullBackup(boolean fullBackup)
fullBackup
attribute.fullBackup
- The value for fullBackupthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder backupRunUid(BackupRunUid backupRunUid)
backupRunUid
attribute.backupRunUid
- The value for backupRunUidthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder logicalSizeBytes(long logicalSizeBytes)
logicalSizeBytes
attribute.logicalSizeBytes
- The value for logicalSizeBytesthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder physicalSizeBytes(long physicalSizeBytes)
physicalSizeBytes
attribute.physicalSizeBytes
- The value for physicalSizeBytesthis
builder for use in a chained invocationpublic final ImmutableSnapshotVersion.Builder primaryPhysicalSizeBytes(long primaryPhysicalSizeBytes)
primaryPhysicalSizeBytes
attribute.primaryPhysicalSizeBytes
- The value for primaryPhysicalSizeBytesthis
builder for use in a chained invocationpublic ImmutableSnapshotVersion build()
ImmutableSnapshotVersion
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.