@NotThreadSafe public static final class ImmutableBackupPolicyParams.Builder extends Object
ImmutableBackupPolicyParams.
 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 ImmutableBackupPolicyParams.Builder from(BackupPolicyParams instance)
BackupPolicyParams 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 ImmutableBackupPolicyParams.Builder addBlackoutPeriods(BlackoutPeriod element)
blackoutPeriods list.element - A blackoutPeriods elementthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addBlackoutPeriods(BlackoutPeriod... elements)
blackoutPeriods list.elements - An array of blackoutPeriods elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder blackoutPeriods(Iterable<? extends BlackoutPeriod> elements)
blackoutPeriods list.elements - An iterable of blackoutPeriods elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addAllBlackoutPeriods(Iterable<? extends BlackoutPeriod> elements)
blackoutPeriods list.elements - An iterable of blackoutPeriods elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder daysToKeep(long daysToKeep)
daysToKeep attribute.daysToKeep - The value for daysToKeepthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder daysToKeepLog(long daysToKeepLog)
daysToKeepLog to daysToKeepLog.daysToKeepLog - The value for daysToKeepLogthis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder daysToKeepLog(Optional<Long> daysToKeepLog)
daysToKeepLog to daysToKeepLog.daysToKeepLog - The value for daysToKeepLogthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder description(String description)
description to description.description - The value for descriptionthis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder description(Optional<String> description)
description to description.description - The value for descriptionthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addExtendedRetentionPolicies(ExtendedRetentionPolicy element)
extendedRetentionPolicies list.element - A extendedRetentionPolicies elementthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addExtendedRetentionPolicies(ExtendedRetentionPolicy... elements)
extendedRetentionPolicies list.elements - An array of extendedRetentionPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder extendedRetentionPolicies(Iterable<? extends ExtendedRetentionPolicy> elements)
extendedRetentionPolicies list.elements - An iterable of extendedRetentionPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addAllExtendedRetentionPolicies(Iterable<? extends ExtendedRetentionPolicy> elements)
extendedRetentionPolicies list.elements - An iterable of extendedRetentionPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder fullSchedulingPolicy(SchedulingPolicy fullSchedulingPolicy)
fullSchedulingPolicy to fullSchedulingPolicy.fullSchedulingPolicy - The value for fullSchedulingPolicythis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder fullSchedulingPolicy(Optional<? extends SchedulingPolicy> fullSchedulingPolicy)
fullSchedulingPolicy to fullSchedulingPolicy.fullSchedulingPolicy - The value for fullSchedulingPolicythis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder incrementalSchedulingPolicy(SchedulingPolicy incrementalSchedulingPolicy)
incrementalSchedulingPolicy attribute.incrementalSchedulingPolicy - The value for incrementalSchedulingPolicythis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder logSchedulingPolicy(SchedulingPolicy logSchedulingPolicy)
logSchedulingPolicy to logSchedulingPolicy.logSchedulingPolicy - The value for logSchedulingPolicythis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder logSchedulingPolicy(Optional<? extends SchedulingPolicy> logSchedulingPolicy)
logSchedulingPolicy to logSchedulingPolicy.logSchedulingPolicy - The value for logSchedulingPolicythis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder retries(int retries)
retries attribute.retries - The value for retriesthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder retryIntervalMins(int retryIntervalMins)
retryIntervalMins attribute.retryIntervalMins - The value for retryIntervalMinsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder skipIntervalMins(int skipIntervalMins)
skipIntervalMins to skipIntervalMins.skipIntervalMins - The value for skipIntervalMinsthis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder skipIntervalMins(Optional<Integer> skipIntervalMins)
skipIntervalMins to skipIntervalMins.skipIntervalMins - The value for skipIntervalMinsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addSnapshotArchivalCopyPolicies(SnapshotArchivalCopyPolicy element)
snapshotArchivalCopyPolicies list.element - A snapshotArchivalCopyPolicies elementthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addSnapshotArchivalCopyPolicies(SnapshotArchivalCopyPolicy... elements)
snapshotArchivalCopyPolicies list.elements - An array of snapshotArchivalCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder snapshotArchivalCopyPolicies(Iterable<? extends SnapshotArchivalCopyPolicy> elements)
snapshotArchivalCopyPolicies list.elements - An iterable of snapshotArchivalCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addAllSnapshotArchivalCopyPolicies(Iterable<? extends SnapshotArchivalCopyPolicy> elements)
snapshotArchivalCopyPolicies list.elements - An iterable of snapshotArchivalCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addSnapshotReplicationCopyPolicies(SnapshotReplicationCopyPolicy element)
snapshotReplicationCopyPolicies list.element - A snapshotReplicationCopyPolicies elementthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addSnapshotReplicationCopyPolicies(SnapshotReplicationCopyPolicy... elements)
snapshotReplicationCopyPolicies list.elements - An array of snapshotReplicationCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder snapshotReplicationCopyPolicies(Iterable<? extends SnapshotReplicationCopyPolicy> elements)
snapshotReplicationCopyPolicies list.elements - An iterable of snapshotReplicationCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder addAllSnapshotReplicationCopyPolicies(Iterable<? extends SnapshotReplicationCopyPolicy> elements)
snapshotReplicationCopyPolicies list.elements - An iterable of snapshotReplicationCopyPolicies elementsthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder daysToKeepSystem(long daysToKeepSystem)
daysToKeepSystem to daysToKeepSystem.daysToKeepSystem - The value for daysToKeepSystemthis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder daysToKeepSystem(Optional<Long> daysToKeepSystem)
daysToKeepSystem to daysToKeepSystem.daysToKeepSystem - The value for daysToKeepSystemthis builder for use in a chained invocationpublic final ImmutableBackupPolicyParams.Builder systemSchedulingPolicy(SchedulingPolicy systemSchedulingPolicy)
systemSchedulingPolicy to systemSchedulingPolicy.systemSchedulingPolicy - The value for systemSchedulingPolicythis builder for chained invocationpublic final ImmutableBackupPolicyParams.Builder systemSchedulingPolicy(Optional<? extends SchedulingPolicy> systemSchedulingPolicy)
systemSchedulingPolicy to systemSchedulingPolicy.systemSchedulingPolicy - The value for systemSchedulingPolicythis builder for use in a chained invocationpublic ImmutableBackupPolicyParams build()
ImmutableBackupPolicyParams.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.