@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupRun extends Object implements BackupRun
BackupRun.
Use the builder to create immutable instances:
ImmutableBackupRun.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBackupRun.Builder
Builds instances of type
ImmutableBackupRun. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBackupRun.Builder |
builder()
Creates a builder for
ImmutableBackupRun. |
static ImmutableBackupRun |
copyOf(BackupRun instance)
Creates an immutable copy of a
BackupRun value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupRun that have equal attribute values. |
Optional<String> |
errorMessage()
Specifies if an error occurred (if any) while running this task.
|
int |
hashCode()
Computes a hash code from attributes:
errorMessage, successMessage, metadataDeleted, quiesced, runType, slaViolated, snapshotsDeleted, snapshotsDeletedTime, sourceBackupStatus, stats, status, warnings. |
boolean |
metadataDeleted()
Specifies if the metadata and snapshots associated with this backup group
run have been deleted.
|
boolean |
quiesced()
Specifies if app-consistent snapshot was captured.
|
RunType |
runType()
Specifies the type of backup.
|
Optional<Boolean> |
slaViolated()
Specifies if the SLA was violated for the backup group run.
|
boolean |
snapshotsDeleted()
Specifies if backup snapshots associated with this backup group run have
been marked for deletion because of the retention settings in the policy or
if they were manually deleted.
|
Optional<Instant> |
snapshotsDeletedTime()
Specifies the time that snapshots were deleted.
|
com.google.common.collect.ImmutableSet<SourceBackupStatus> |
sourceBackupStatus()
Array of Source Object Backup Status.
|
BackupRunStats |
stats()
Specifies statistics about a backup group run.
|
StatusBackupRun |
status()
Specifies the status of Backup task.
|
Optional<String> |
successMessage()
Specifies a message after finishing the task successfully.
|
String |
toString()
Prints the immutable value
BackupRun with attribute values. |
com.google.common.collect.ImmutableList<String> |
warnings()
Array of Warnings.
|
ImmutableBackupRun |
withErrorMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
errorMessage attribute. |
ImmutableBackupRun |
withErrorMessage(String value)
Copy the current immutable object by setting a present value for the optional
errorMessage attribute. |
ImmutableBackupRun |
withMetadataDeleted(boolean value)
Copy the current immutable object by setting a value for the
metadataDeleted attribute. |
ImmutableBackupRun |
withQuiesced(boolean value)
Copy the current immutable object by setting a value for the
quiesced attribute. |
ImmutableBackupRun |
withRunType(RunType value)
Copy the current immutable object by setting a value for the
runType attribute. |
ImmutableBackupRun |
withSlaViolated(boolean value)
Copy the current immutable object by setting a present value for the optional
slaViolated attribute. |
ImmutableBackupRun |
withSlaViolated(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
slaViolated attribute. |
ImmutableBackupRun |
withSnapshotsDeleted(boolean value)
Copy the current immutable object by setting a value for the
snapshotsDeleted attribute. |
ImmutableBackupRun |
withSnapshotsDeletedTime(Instant value)
Copy the current immutable object by setting a present value for the optional
snapshotsDeletedTime attribute. |
ImmutableBackupRun |
withSnapshotsDeletedTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
snapshotsDeletedTime attribute. |
ImmutableBackupRun |
withSourceBackupStatus(Iterable<? extends SourceBackupStatus> elements)
Copy the current immutable object with elements that replace the content of
sourceBackupStatus. |
ImmutableBackupRun |
withSourceBackupStatus(SourceBackupStatus... elements)
Copy the current immutable object with elements that replace the content of
sourceBackupStatus. |
ImmutableBackupRun |
withStats(BackupRunStats value)
Copy the current immutable object by setting a value for the
stats attribute. |
ImmutableBackupRun |
withStatus(StatusBackupRun value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableBackupRun |
withSuccessMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
successMessage attribute. |
ImmutableBackupRun |
withSuccessMessage(String value)
Copy the current immutable object by setting a present value for the optional
successMessage attribute. |
ImmutableBackupRun |
withWarnings(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
warnings. |
ImmutableBackupRun |
withWarnings(String... elements)
Copy the current immutable object with elements that replace the content of
warnings. |
public Optional<String> errorMessage()
errorMessage in interface BackupRunpublic Optional<String> successMessage()
successMessage in interface BackupRunpublic boolean metadataDeleted()
metadataDeleted in interface BackupRunpublic boolean quiesced()
public RunType runType()
public Optional<Boolean> slaViolated()
slaViolated in interface BackupRunpublic boolean snapshotsDeleted()
snapshotsDeleted in interface BackupRunpublic Optional<Instant> snapshotsDeletedTime()
snapshotsDeletedTime in interface BackupRunpublic com.google.common.collect.ImmutableSet<SourceBackupStatus> sourceBackupStatus()
Specifies the status of backing up each source objects (such as VMs) associated with the backup group run.
sourceBackupStatus in interface BackupRunpublic BackupRunStats stats()
public StatusBackupRun status()
public com.google.common.collect.ImmutableList<String> warnings()
Specifies the warnings that occurred (if any) while running this task.
public final ImmutableBackupRun withErrorMessage(String value)
errorMessage attribute.value - The value for errorMessagethis objectpublic final ImmutableBackupRun withErrorMessage(Optional<String> optional)
errorMessage attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for errorMessagethis objectpublic final ImmutableBackupRun withSuccessMessage(String value)
successMessage attribute.value - The value for successMessagethis objectpublic final ImmutableBackupRun withSuccessMessage(Optional<String> optional)
successMessage attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for successMessagethis objectpublic final ImmutableBackupRun withMetadataDeleted(boolean value)
metadataDeleted attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for metadataDeletedthis objectpublic final ImmutableBackupRun withQuiesced(boolean value)
quiesced attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for quiescedthis objectpublic final ImmutableBackupRun withRunType(RunType value)
runType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for runTypethis objectpublic final ImmutableBackupRun withSlaViolated(boolean value)
slaViolated attribute.value - The value for slaViolatedthis objectpublic final ImmutableBackupRun withSlaViolated(Optional<Boolean> optional)
slaViolated attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for slaViolatedthis objectpublic final ImmutableBackupRun withSnapshotsDeleted(boolean value)
snapshotsDeleted attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for snapshotsDeletedthis objectpublic final ImmutableBackupRun withSnapshotsDeletedTime(Instant value)
snapshotsDeletedTime attribute.value - The value for snapshotsDeletedTimethis objectpublic final ImmutableBackupRun withSnapshotsDeletedTime(Optional<? extends Instant> optional)
snapshotsDeletedTime 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 snapshotsDeletedTimethis objectpublic final ImmutableBackupRun withSourceBackupStatus(SourceBackupStatus... elements)
sourceBackupStatus.elements - The elements to setthis objectpublic final ImmutableBackupRun withSourceBackupStatus(Iterable<? extends SourceBackupStatus> elements)
sourceBackupStatus.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of sourceBackupStatus elements to setthis objectpublic final ImmutableBackupRun withStats(BackupRunStats 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 ImmutableBackupRun withStatus(StatusBackupRun 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 ImmutableBackupRun withWarnings(String... elements)
warnings.elements - The elements to setthis objectpublic final ImmutableBackupRun withWarnings(Iterable<String> elements)
warnings.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of warnings elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableBackupRun that have equal attribute values.public int hashCode()
errorMessage, successMessage, metadataDeleted, quiesced, runType, slaViolated, snapshotsDeleted, snapshotsDeletedTime, sourceBackupStatus, stats, status, warnings.public String toString()
BackupRun with attribute values.public static ImmutableBackupRun copyOf(BackupRun instance)
BackupRun 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 ImmutableBackupRun.Builder builder()
ImmutableBackupRun.
ImmutableBackupRun.builder()
.errorMessage(String) // optional errorMessage
.successMessage(String) // optional successMessage
.metadataDeleted(boolean) // required metadataDeleted
.quiesced(boolean) // required quiesced
.runType(com.iland.cohesity.iaas.backups.common.enums.RunType) // required runType
.slaViolated(Boolean) // optional slaViolated
.snapshotsDeleted(boolean) // required snapshotsDeleted
.snapshotsDeletedTime(java.time.Instant) // optional snapshotsDeletedTime
.addSourceBackupStatus|addAllSourceBackupStatus(com.iland.cohesity.iaas.backups.backupgroups.api.model.SourceBackupStatus) // sourceBackupStatus elements
.stats(com.iland.cohesity.iaas.backups.backupgroups.api.model.BackupRunStats) // required stats
.status(com.iland.cohesity.iaas.backups.backupgroups.enums.StatusBackupRun) // required status
.addWarnings|addAllWarnings(String) // warnings elements
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.