@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCopySnapshotTaskStatus extends Object implements CopySnapshotTaskStatus
CopySnapshotTaskStatus.
Use the builder to create immutable instances:
ImmutableCopySnapshotTaskStatus.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCopySnapshotTaskStatus.Builder
Builds instances of type
ImmutableCopySnapshotTaskStatus. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCopySnapshotTaskStatus.Builder |
builder()
Creates a builder for
ImmutableCopySnapshotTaskStatus. |
static ImmutableCopySnapshotTaskStatus |
copyOf(CopySnapshotTaskStatus instance)
Creates an immutable copy of a
CopySnapshotTaskStatus value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCopySnapshotTaskStatus that have equal attribute values. |
Optional<String> |
error()
Specifies if an error occurred (if any) while running this task.
|
int |
hashCode()
Computes a hash code from attributes:
error, source, stats, status, taskEndTime, taskStartTime. |
VCloudProtectionSource |
source()
Identifies the vCloud protection source details.
|
CopyRunStats |
stats()
Stats for the copy task.
|
StatusCopySnapshotTaskStatus |
status()
Specifies the status of the source object being protected.
|
Optional<Instant> |
taskEndTime()
Specifies the end time of the copy task.
|
Instant |
taskStartTime()
Specifies the start time of the copy task.
|
String |
toString()
Prints the immutable value
CopySnapshotTaskStatus with attribute values. |
ImmutableCopySnapshotTaskStatus |
withError(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
error attribute. |
ImmutableCopySnapshotTaskStatus |
withError(String value)
Copy the current immutable object by setting a present value for the optional
error attribute. |
ImmutableCopySnapshotTaskStatus |
withSource(VCloudProtectionSource value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableCopySnapshotTaskStatus |
withStats(CopyRunStats value)
Copy the current immutable object by setting a value for the
stats attribute. |
ImmutableCopySnapshotTaskStatus |
withStatus(StatusCopySnapshotTaskStatus value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableCopySnapshotTaskStatus |
withTaskEndTime(Instant value)
Copy the current immutable object by setting a present value for the optional
taskEndTime attribute. |
ImmutableCopySnapshotTaskStatus |
withTaskEndTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
taskEndTime attribute. |
ImmutableCopySnapshotTaskStatus |
withTaskStartTime(Instant value)
Copy the current immutable object by setting a value for the
taskStartTime attribute. |
public Optional<String> error()
error in interface CopySnapshotTaskStatuspublic VCloudProtectionSource source()
source in interface CopySnapshotTaskStatuspublic CopyRunStats stats()
stats in interface CopySnapshotTaskStatuspublic StatusCopySnapshotTaskStatus status()
status in interface CopySnapshotTaskStatuspublic Optional<Instant> taskEndTime()
taskEndTime in interface CopySnapshotTaskStatuspublic Instant taskStartTime()
taskStartTime in interface CopySnapshotTaskStatuspublic final ImmutableCopySnapshotTaskStatus withError(String value)
error attribute.value - The value for errorthis objectpublic final ImmutableCopySnapshotTaskStatus 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 ImmutableCopySnapshotTaskStatus withSource(VCloudProtectionSource value)
source attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for sourcethis objectpublic final ImmutableCopySnapshotTaskStatus withStats(CopyRunStats value)
stats attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for statsthis objectpublic final ImmutableCopySnapshotTaskStatus withStatus(StatusCopySnapshotTaskStatus 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 ImmutableCopySnapshotTaskStatus withTaskEndTime(Instant value)
taskEndTime attribute.value - The value for taskEndTimethis objectpublic final ImmutableCopySnapshotTaskStatus withTaskEndTime(Optional<? extends Instant> optional)
taskEndTime 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 taskEndTimethis objectpublic final ImmutableCopySnapshotTaskStatus withTaskStartTime(Instant value)
taskStartTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for taskStartTimethis objectpublic boolean equals(@Nullable Object another)
ImmutableCopySnapshotTaskStatus that have equal attribute values.public int hashCode()
error, source, stats, status, taskEndTime, taskStartTime.public String toString()
CopySnapshotTaskStatus with attribute values.public static ImmutableCopySnapshotTaskStatus copyOf(CopySnapshotTaskStatus instance)
CopySnapshotTaskStatus 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 ImmutableCopySnapshotTaskStatus.Builder builder()
ImmutableCopySnapshotTaskStatus.
ImmutableCopySnapshotTaskStatus.builder()
.error(String) // optional error
.source(com.iland.cohesity.iaas.backups.common.model.VCloudProtectionSource) // required source
.stats(com.iland.cohesity.iaas.backups.backupgroups.api.model.CopyRunStats) // required stats
.status(com.iland.cohesity.iaas.backups.backupgroups.enums.StatusCopySnapshotTaskStatus) // required status
.taskEndTime(java.time.Instant) // optional taskEndTime
.taskStartTime(java.time.Instant) // required taskStartTime
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.