@NotThreadSafe public static final class ImmutableSnapshotAttempt.Builder extends Object
ImmutableSnapshotAttempt
.
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 |
---|---|
ImmutableSnapshotAttempt.Builder |
attemptNumber(long attemptNumber)
Initializes the value for the
attemptNumber attribute. |
ImmutableSnapshotAttempt.Builder |
backupGroupUid(BackupGroupUid backupGroupUid)
Initializes the value for the
backupGroupUid attribute. |
ImmutableSnapshotAttempt.Builder |
backupRunStartTime(Instant backupRunStartTime)
Initializes the value for the
backupRunStartTime attribute. |
ImmutableSnapshotAttempt.Builder |
backupRunUid(BackupRunUid backupRunUid)
Initializes the value for the
backupRunUid attribute. |
ImmutableSnapshotAttempt |
build()
Builds a new
ImmutableSnapshotAttempt . |
ImmutableSnapshotAttempt.Builder |
from(SnapshotAttempt instance)
Fill a builder with attribute values from the provided
SnapshotAttempt instance. |
public final ImmutableSnapshotAttempt.Builder from(SnapshotAttempt instance)
SnapshotAttempt
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 ImmutableSnapshotAttempt.Builder attemptNumber(long attemptNumber)
attemptNumber
attribute.attemptNumber
- The value for attemptNumberthis
builder for use in a chained invocationpublic final ImmutableSnapshotAttempt.Builder backupRunUid(BackupRunUid backupRunUid)
backupRunUid
attribute.backupRunUid
- The value for backupRunUidthis
builder for use in a chained invocationpublic final ImmutableSnapshotAttempt.Builder backupGroupUid(BackupGroupUid backupGroupUid)
backupGroupUid
attribute.backupGroupUid
- The value for backupGroupUidthis
builder for use in a chained invocationpublic final ImmutableSnapshotAttempt.Builder backupRunStartTime(Instant backupRunStartTime)
backupRunStartTime
attribute.backupRunStartTime
- The value for backupRunStartTimethis
builder for use in a chained invocationpublic ImmutableSnapshotAttempt build()
ImmutableSnapshotAttempt
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.