@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFileSnapshotInfo extends Object implements FileSnapshotInfo
FileSnapshotInfo.
Use the builder to create immutable instances:
ImmutableFileSnapshotInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFileSnapshotInfo.Builder
Builds instances of type
ImmutableFileSnapshotInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFileSnapshotInfo.Builder |
builder()
Creates a builder for
ImmutableFileSnapshotInfo. |
static ImmutableFileSnapshotInfo |
copyOf(FileSnapshotInfo instance)
Creates an immutable copy of a
FileSnapshotInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFileSnapshotInfo that have equal attribute values. |
boolean |
hasArchivalCopy()
Indicates that there is an archival copy of the file backup.
|
int |
hashCode()
Computes a hash code from attributes:
hasArchivalCopy, hasLocalCopy, hasRemoteCopy, modifiedTime, sizeBytes, snapshot. |
boolean |
hasLocalCopy()
Indicates that their is a local copy of the file backup.
|
boolean |
hasRemoteCopy()
Indicates that their is a copy of the file backup in a remote location.
|
Optional<Instant> |
modifiedTime()
The time that the file was last modified.
|
long |
sizeBytes()
The size of the file in bytes.
|
SnapshotAttempt |
snapshot()
The snapshot details for the file.
|
String |
toString()
Prints the immutable value
FileSnapshotInfo with attribute values. |
ImmutableFileSnapshotInfo |
withHasArchivalCopy(boolean value)
Copy the current immutable object by setting a value for the
hasArchivalCopy attribute. |
ImmutableFileSnapshotInfo |
withHasLocalCopy(boolean value)
Copy the current immutable object by setting a value for the
hasLocalCopy attribute. |
ImmutableFileSnapshotInfo |
withHasRemoteCopy(boolean value)
Copy the current immutable object by setting a value for the
hasRemoteCopy attribute. |
ImmutableFileSnapshotInfo |
withModifiedTime(Instant value)
Copy the current immutable object by setting a present value for the optional
modifiedTime attribute. |
ImmutableFileSnapshotInfo |
withModifiedTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
modifiedTime attribute. |
ImmutableFileSnapshotInfo |
withSizeBytes(long value)
Copy the current immutable object by setting a value for the
sizeBytes attribute. |
ImmutableFileSnapshotInfo |
withSnapshot(SnapshotAttempt value)
Copy the current immutable object by setting a value for the
snapshot attribute. |
public boolean hasArchivalCopy()
hasArchivalCopy in interface FileSnapshotInfopublic boolean hasLocalCopy()
hasLocalCopy in interface FileSnapshotInfopublic boolean hasRemoteCopy()
hasRemoteCopy in interface FileSnapshotInfopublic Optional<Instant> modifiedTime()
modifiedTime in interface FileSnapshotInfopublic long sizeBytes()
sizeBytes in interface FileSnapshotInfopublic SnapshotAttempt snapshot()
snapshot in interface FileSnapshotInfopublic final ImmutableFileSnapshotInfo withHasArchivalCopy(boolean value)
hasArchivalCopy attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for hasArchivalCopythis objectpublic final ImmutableFileSnapshotInfo withHasLocalCopy(boolean value)
hasLocalCopy attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for hasLocalCopythis objectpublic final ImmutableFileSnapshotInfo withHasRemoteCopy(boolean value)
hasRemoteCopy attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for hasRemoteCopythis objectpublic final ImmutableFileSnapshotInfo withModifiedTime(Instant value)
modifiedTime attribute.value - The value for modifiedTimethis objectpublic final ImmutableFileSnapshotInfo withModifiedTime(Optional<? extends Instant> optional)
modifiedTime attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for modifiedTimethis objectpublic final ImmutableFileSnapshotInfo withSizeBytes(long value)
sizeBytes attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for sizeBytesthis objectpublic final ImmutableFileSnapshotInfo withSnapshot(SnapshotAttempt value)
snapshot attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for snapshotthis objectpublic boolean equals(@Nullable Object another)
ImmutableFileSnapshotInfo that have equal attribute values.public int hashCode()
hasArchivalCopy, hasLocalCopy, hasRemoteCopy, modifiedTime, sizeBytes, snapshot.public String toString()
FileSnapshotInfo with attribute values.public static ImmutableFileSnapshotInfo copyOf(FileSnapshotInfo instance)
FileSnapshotInfo 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 ImmutableFileSnapshotInfo.Builder builder()
ImmutableFileSnapshotInfo.
ImmutableFileSnapshotInfo.builder()
.hasArchivalCopy(boolean) // required hasArchivalCopy
.hasLocalCopy(boolean) // required hasLocalCopy
.hasRemoteCopy(boolean) // required hasRemoteCopy
.modifiedTime(java.time.Instant) // optional modifiedTime
.sizeBytes(long) // required sizeBytes
.snapshot(com.iland.cohesity.iaas.backups.recovery.model.SnapshotAttempt) // required snapshot
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.