@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 SnapshotAttempt
public BackupRunUid backupRunUid()
backupRunUid
in interface SnapshotAttempt
public BackupGroupUid backupGroupUid()
backupGroupUid
in interface SnapshotAttempt
public Instant backupRunStartTime()
backupRunStartTime
in interface SnapshotAttempt
public 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) // requiredattemptNumber
.backupRunUid(com.iland.cohesity.iaas.backups.common.model.BackupRunUid) // requiredbackupRunUid
.backupGroupUid(com.iland.cohesity.iaas.backups.common.model.BackupGroupUid) // requiredbackupGroupUid
.backupRunStartTime(java.time.Instant) // requiredbackupRunStartTime
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.