@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSourceBackupStatus extends Object implements SourceBackupStatus
SourceBackupStatus
.
Use the builder to create immutable instances:
ImmutableSourceBackupStatus.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableSourceBackupStatus.Builder
Builds instances of type
ImmutableSourceBackupStatus . |
Modifier and Type | Method and Description |
---|---|
static ImmutableSourceBackupStatus.Builder |
builder()
Creates a builder for
ImmutableSourceBackupStatus . |
static ImmutableSourceBackupStatus |
copyOf(SourceBackupStatus instance)
Creates an immutable copy of a
SourceBackupStatus value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSourceBackupStatus 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 , isFullBackup , numRestarts , quiesced , slaViolated , source , stats , status , warnings . |
boolean |
isFullBackup()
Specifies whether this is a 'FULL' or 'REGULAR' backup of the Run.
|
int |
numRestarts()
Specifies the number of times the the task was restarted because of the
changes on the backup source host.
|
boolean |
quiesced()
Specifies if app-consistent snapshot was captured.
|
boolean |
slaViolated()
Specifies if the SLA was violated for the backup group run.
|
VCloudProtectionSource |
source()
Specifies the vCloud protected source info.
|
BackupSourceStats |
stats()
Specifies statistics about a Backup task in backup group run.
|
StatusSourceBackupStatus |
status()
Specifies the status of the source object being protected.
|
String |
toString()
Prints the immutable value
SourceBackupStatus with attribute values. |
com.google.common.collect.ImmutableSet<String> |
warnings()
Array of Warnings.
|
ImmutableSourceBackupStatus |
withError(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
error attribute. |
ImmutableSourceBackupStatus |
withError(String value)
Copy the current immutable object by setting a present value for the optional
error attribute. |
ImmutableSourceBackupStatus |
withIsFullBackup(boolean value)
Copy the current immutable object by setting a value for the
isFullBackup attribute. |
ImmutableSourceBackupStatus |
withNumRestarts(int value)
Copy the current immutable object by setting a value for the
numRestarts attribute. |
ImmutableSourceBackupStatus |
withQuiesced(boolean value)
Copy the current immutable object by setting a value for the
quiesced attribute. |
ImmutableSourceBackupStatus |
withSlaViolated(boolean value)
Copy the current immutable object by setting a value for the
slaViolated attribute. |
ImmutableSourceBackupStatus |
withSource(VCloudProtectionSource value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableSourceBackupStatus |
withStats(BackupSourceStats value)
Copy the current immutable object by setting a value for the
stats attribute. |
ImmutableSourceBackupStatus |
withStatus(StatusSourceBackupStatus value)
Copy the current immutable object by setting a value for the
status attribute. |
ImmutableSourceBackupStatus |
withWarnings(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
warnings . |
ImmutableSourceBackupStatus |
withWarnings(String... elements)
Copy the current immutable object with elements that replace the content of
warnings . |
public Optional<String> error()
error
in interface SourceBackupStatus
public boolean isFullBackup()
isFullBackup
in interface SourceBackupStatus
public int numRestarts()
numRestarts
in interface SourceBackupStatus
public boolean quiesced()
quiesced
in interface SourceBackupStatus
public boolean slaViolated()
slaViolated
in interface SourceBackupStatus
public VCloudProtectionSource source()
source
in interface SourceBackupStatus
public BackupSourceStats stats()
stats
in interface SourceBackupStatus
public StatusSourceBackupStatus status()
status
in interface SourceBackupStatus
public com.google.common.collect.ImmutableSet<String> warnings()
Specifies the warnings that occurred (if any) while running this task.
warnings
in interface SourceBackupStatus
public final ImmutableSourceBackupStatus withError(String value)
error
attribute.value
- The value for errorthis
objectpublic final ImmutableSourceBackupStatus 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 ImmutableSourceBackupStatus withIsFullBackup(boolean value)
isFullBackup
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for isFullBackupthis
objectpublic final ImmutableSourceBackupStatus withNumRestarts(int value)
numRestarts
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for numRestartsthis
objectpublic final ImmutableSourceBackupStatus 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 ImmutableSourceBackupStatus withSlaViolated(boolean value)
slaViolated
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for slaViolatedthis
objectpublic final ImmutableSourceBackupStatus 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 ImmutableSourceBackupStatus withStats(BackupSourceStats 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 ImmutableSourceBackupStatus withStatus(StatusSourceBackupStatus 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 ImmutableSourceBackupStatus withWarnings(String... elements)
warnings
.elements
- The elements to setthis
objectpublic final ImmutableSourceBackupStatus 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)
ImmutableSourceBackupStatus
that have equal attribute values.public int hashCode()
error
, isFullBackup
, numRestarts
, quiesced
, slaViolated
, source
, stats
, status
, warnings
.public String toString()
SourceBackupStatus
with attribute values.public static ImmutableSourceBackupStatus copyOf(SourceBackupStatus instance)
SourceBackupStatus
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 ImmutableSourceBackupStatus.Builder builder()
ImmutableSourceBackupStatus
.
ImmutableSourceBackupStatus.builder() .error(String) // optionalerror
.isFullBackup(boolean) // requiredisFullBackup
.numRestarts(int) // requirednumRestarts
.quiesced(boolean) // requiredquiesced
.slaViolated(boolean) // requiredslaViolated
.source(com.iland.cohesity.iaas.backups.common.model.VCloudProtectionSource) // requiredsource
.stats(com.iland.cohesity.iaas.backups.backupgroups.api.model.BackupSourceStats) // requiredstats
.status(com.iland.cohesity.iaas.backups.backupgroups.enums.StatusSourceBackupStatus) // requiredstatus
.addWarnings|addAllWarnings(String) //warnings
elements .build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.