@NotThreadSafe public static final class ImmutableSnapshotArchivalCopyPolicy.Builder extends Object
ImmutableSnapshotArchivalCopyPolicy
.
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 ImmutableSnapshotArchivalCopyPolicy.Builder from(SnapshotArchivalCopyPolicy instance)
SnapshotArchivalCopyPolicy
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 ImmutableSnapshotArchivalCopyPolicy.Builder copyPartial(boolean copyPartial)
copyPartial
attribute.copyPartial
- The value for copyPartialthis
builder for use in a chained invocationpublic final ImmutableSnapshotArchivalCopyPolicy.Builder daysToKeep(long daysToKeep)
daysToKeep
attribute.daysToKeep
- The value for daysToKeepthis
builder for use in a chained invocationpublic final ImmutableSnapshotArchivalCopyPolicy.Builder multiplier(int multiplier)
multiplier
attribute.multiplier
- The value for multiplierthis
builder for use in a chained invocationpublic final ImmutableSnapshotArchivalCopyPolicy.Builder periodicity(ReplicationPeriodicity periodicity)
periodicity
attribute.periodicity
- The value for periodicitythis
builder for use in a chained invocationpublic final ImmutableSnapshotArchivalCopyPolicy.Builder target(ArchivalExternalTarget target)
target
attribute.target
- The value for targetthis
builder for use in a chained invocationpublic ImmutableSnapshotArchivalCopyPolicy build()
ImmutableSnapshotArchivalCopyPolicy
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.