@NotThreadSafe public static final class ImmutableExtendedRetentionPolicy.Builder extends Object
ImmutableExtendedRetentionPolicy
.
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 ImmutableExtendedRetentionPolicy.Builder from(ExtendedRetentionPolicy instance)
ExtendedRetentionPolicy
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableExtendedRetentionPolicy.Builder backupRunType(RunType backupRunType)
backupRunType
to backupRunType.backupRunType
- The value for backupRunTypethis
builder for chained invocationpublic final ImmutableExtendedRetentionPolicy.Builder backupRunType(Optional<? extends RunType> backupRunType)
backupRunType
to backupRunType.backupRunType
- The value for backupRunTypethis
builder for use in a chained invocationpublic final ImmutableExtendedRetentionPolicy.Builder daysToKeep(long daysToKeep)
daysToKeep
attribute.daysToKeep
- The value for daysToKeepthis
builder for use in a chained invocationpublic final ImmutableExtendedRetentionPolicy.Builder multiplier(int multiplier)
multiplier
attribute.multiplier
- The value for multiplierthis
builder for use in a chained invocationpublic final ImmutableExtendedRetentionPolicy.Builder periodicity(ReplicationPeriodicity periodicity)
periodicity
attribute.periodicity
- The value for periodicitythis
builder for use in a chained invocationpublic ImmutableExtendedRetentionPolicy build()
ImmutableExtendedRetentionPolicy
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.