@NotThreadSafe public static final class ImmutableSourceBackupStatus.Builder extends Object
ImmutableSourceBackupStatus.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableSourceBackupStatus.Builder from(SourceBackupStatus instance)
SourceBackupStatus instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder error(String error)
error to error.error - The value for errorthis builder for chained invocationpublic final ImmutableSourceBackupStatus.Builder error(Optional<String> error)
error to error.error - The value for errorthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder isFullBackup(boolean isFullBackup)
isFullBackup attribute.isFullBackup - The value for isFullBackupthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder numRestarts(int numRestarts)
numRestarts attribute.numRestarts - The value for numRestartsthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder quiesced(boolean quiesced)
quiesced attribute.quiesced - The value for quiescedthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder slaViolated(boolean slaViolated)
slaViolated attribute.slaViolated - The value for slaViolatedthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder source(VCloudProtectionSource source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder stats(BackupSourceStats stats)
stats attribute.stats - The value for statsthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder status(StatusSourceBackupStatus status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder addWarnings(String element)
warnings set.element - A warnings elementthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder addWarnings(String... elements)
warnings set.elements - An array of warnings elementsthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder warnings(Iterable<String> elements)
warnings set.elements - An iterable of warnings elementsthis builder for use in a chained invocationpublic final ImmutableSourceBackupStatus.Builder addAllWarnings(Iterable<String> elements)
warnings set.elements - An iterable of warnings elementsthis builder for use in a chained invocationpublic ImmutableSourceBackupStatus build()
ImmutableSourceBackupStatus.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.