@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSnapshotAttempt extends Object implements SnapshotAttempt
SnapshotAttempt.
Use the builder to create immutable instances:
ImmutableSnapshotAttempt.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSnapshotAttempt.Builder
Builds instances of type
ImmutableSnapshotAttempt. |
| Modifier and Type | Method and Description |
|---|---|
long |
attemptNumber()
Specifies the attempt number.
|
BackupGroupUid |
backupGroupUid()
Specifies the UID of the associated backup group.
|
Instant |
backupRunStartTime()
Specifies the time that the backup run started.
|
BackupRunUid |
backupRunUid()
Specifies the UID of the associated backup group run.
|
static ImmutableSnapshotAttempt.Builder |
builder()
Creates a builder for
ImmutableSnapshotAttempt. |
static ImmutableSnapshotAttempt |
copyOf(SnapshotAttempt instance)
Creates an immutable copy of a
SnapshotAttempt value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSnapshotAttempt that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
attemptNumber, backupRunUid, backupGroupUid, backupRunStartTime. |
String |
toString()
Prints the immutable value
SnapshotAttempt with attribute values. |
ImmutableSnapshotAttempt |
withAttemptNumber(long value)
Copy the current immutable object by setting a value for the
attemptNumber attribute. |
ImmutableSnapshotAttempt |
withBackupGroupUid(BackupGroupUid value)
Copy the current immutable object by setting a value for the
backupGroupUid attribute. |
ImmutableSnapshotAttempt |
withBackupRunStartTime(Instant value)
Copy the current immutable object by setting a value for the
backupRunStartTime attribute. |
ImmutableSnapshotAttempt |
withBackupRunUid(BackupRunUid value)
Copy the current immutable object by setting a value for the
backupRunUid attribute. |
public long attemptNumber()
attemptNumber in interface SnapshotAttemptpublic BackupRunUid backupRunUid()
backupRunUid in interface SnapshotAttemptpublic BackupGroupUid backupGroupUid()
backupGroupUid in interface SnapshotAttemptpublic Instant backupRunStartTime()
backupRunStartTime in interface SnapshotAttemptpublic final ImmutableSnapshotAttempt withAttemptNumber(long value)
attemptNumber attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for attemptNumberthis objectpublic final ImmutableSnapshotAttempt withBackupRunUid(BackupRunUid value)
backupRunUid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for backupRunUidthis objectpublic final ImmutableSnapshotAttempt withBackupGroupUid(BackupGroupUid value)
backupGroupUid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for backupGroupUidthis objectpublic final ImmutableSnapshotAttempt withBackupRunStartTime(Instant value)
backupRunStartTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for backupRunStartTimethis objectpublic boolean equals(@Nullable Object another)
ImmutableSnapshotAttempt that have equal attribute values.public int hashCode()
attemptNumber, backupRunUid, backupGroupUid, backupRunStartTime.public String toString()
SnapshotAttempt with attribute values.public static ImmutableSnapshotAttempt copyOf(SnapshotAttempt instance)
SnapshotAttempt value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableSnapshotAttempt.Builder builder()
ImmutableSnapshotAttempt.
ImmutableSnapshotAttempt.builder()
.attemptNumber(long) // required attemptNumber
.backupRunUid(com.iland.cohesity.iaas.backups.common.model.BackupRunUid) // required backupRunUid
.backupGroupUid(com.iland.cohesity.iaas.backups.common.model.BackupGroupUid) // required backupGroupUid
.backupRunStartTime(java.time.Instant) // required backupRunStartTime
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.