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