@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCopyRun extends Object implements CopyRun
CopyRun.
Use the builder to create immutable instances:
ImmutableCopyRun.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCopyRun.Builder
Builds instances of type
ImmutableCopyRun. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCopyRun.Builder |
builder()
Creates a builder for
ImmutableCopyRun. |
static ImmutableCopyRun |
copyOf(CopyRun instance)
Creates an immutable copy of a
CopyRun value. |
com.google.common.collect.ImmutableList<CopySnapshotTaskStatus> |
copySnapshotTasks()
Specifies the status information of each task that copies the snapshot
taken for a backup source.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCopyRun that have equal attribute values. |
Optional<String> |
error()
Specifies if an error occurred (if any) while running this task.
|
Optional<Instant> |
expiryTime()
Specifies expiry time of the copies of the snapshots in this backup group
run.
|
int |
hashCode()
Computes a hash code from attributes:
copySnapshotTasks, error, expiryTime, runStartTime, stats, status, target. |
Instant |
runStartTime()
Specifies start time of the copy run.
|
Optional<CopyRunStats> |
stats()
Stats for one copy task or aggregated stats of a Copy Run in a backup group
run.
|
StatusCopyRun |
status()
Specifies the aggregated status of copy tasks.
|
SnapshotTargetSettings |
target()
Specifies settings about a target where a copied snapshot is stored.
|
String |
toString()
Prints the immutable value
CopyRun with attribute values. |
ImmutableCopyRun |
withCopySnapshotTasks(CopySnapshotTaskStatus... elements)
Copy the current immutable object with elements that replace the content of
copySnapshotTasks. |
ImmutableCopyRun |
withCopySnapshotTasks(Iterable<? extends CopySnapshotTaskStatus> elements)
Copy the current immutable object with elements that replace the content of
copySnapshotTasks. |
ImmutableCopyRun |
withError(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
error attribute. |
ImmutableCopyRun |
withError(String value)
Copy the current immutable object by setting a present value for the optional
error attribute. |
ImmutableCopyRun |
withExpiryTime(Instant value)
Copy the current immutable object by setting a present value for the optional
expiryTime attribute. |
ImmutableCopyRun |
withExpiryTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
expiryTime attribute. |
ImmutableCopyRun |
withRunStartTime(Instant value)
Copy the current immutable object by setting a value for the
runStartTime attribute. |
ImmutableCopyRun |
withStats(CopyRunStats value)
Copy the current immutable object by setting a present value for the optional
stats attribute. |
ImmutableCopyRun |
withStats(Optional<? extends CopyRunStats> optional)
Copy the current immutable object by setting an optional value for the
stats attribute. |
ImmutableCopyRun |
withStatus(StatusCopyRun value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableCopyRun |
withTarget(SnapshotTargetSettings value)
Copy the current immutable object by setting a value for the
target attribute. |
public com.google.common.collect.ImmutableList<CopySnapshotTaskStatus> copySnapshotTasks()
copySnapshotTasks in interface CopyRunpublic Optional<String> error()
public Optional<Instant> expiryTime()
expiryTime in interface CopyRunpublic Instant runStartTime()
runStartTime in interface CopyRunpublic Optional<CopyRunStats> stats()
public StatusCopyRun status()
public SnapshotTargetSettings target()
public final ImmutableCopyRun withCopySnapshotTasks(CopySnapshotTaskStatus... elements)
copySnapshotTasks.elements - The elements to setthis objectpublic final ImmutableCopyRun withCopySnapshotTasks(Iterable<? extends CopySnapshotTaskStatus> elements)
copySnapshotTasks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of copySnapshotTasks elements to setthis objectpublic final ImmutableCopyRun withError(String value)
error attribute.value - The value for errorthis objectpublic final ImmutableCopyRun withError(Optional<String> optional)
error attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for errorthis objectpublic final ImmutableCopyRun withExpiryTime(Instant value)
expiryTime attribute.value - The value for expiryTimethis objectpublic final ImmutableCopyRun withExpiryTime(Optional<? extends Instant> optional)
expiryTime 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 expiryTimethis objectpublic final ImmutableCopyRun withRunStartTime(Instant value)
runStartTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for runStartTimethis objectpublic final ImmutableCopyRun withStats(CopyRunStats value)
stats attribute.value - The value for statsthis objectpublic final ImmutableCopyRun withStats(Optional<? extends CopyRunStats> optional)
stats 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 statsthis objectpublic final ImmutableCopyRun withStatus(StatusCopyRun value)
status attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statusthis objectpublic final ImmutableCopyRun withTarget(SnapshotTargetSettings value)
target attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for targetthis objectpublic boolean equals(@Nullable Object another)
ImmutableCopyRun that have equal attribute values.public int hashCode()
copySnapshotTasks, error, expiryTime, runStartTime, stats, status, target.public String toString()
CopyRun with attribute values.public static ImmutableCopyRun copyOf(CopyRun instance)
CopyRun 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 ImmutableCopyRun.Builder builder()
ImmutableCopyRun.
ImmutableCopyRun.builder()
.addCopySnapshotTasks|addAllCopySnapshotTasks(com.iland.cohesity.iaas.backups.backupgroups.api.model.CopySnapshotTaskStatus) // copySnapshotTasks elements
.error(String) // optional error
.expiryTime(java.time.Instant) // optional expiryTime
.runStartTime(java.time.Instant) // required runStartTime
.stats(com.iland.cohesity.iaas.backups.backupgroups.api.model.CopyRunStats) // optional stats
.status(com.iland.cohesity.iaas.backups.backupgroups.enums.StatusCopyRun) // required status
.target(com.iland.cohesity.iaas.backups.backupgroups.api.model.SnapshotTargetSettings) // required target
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.