@NotThreadSafe public static final class ImmutableSnapshotTargetSettings.Builder extends Object
ImmutableSnapshotTargetSettings.
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 ImmutableSnapshotTargetSettings.Builder from(SnapshotTargetSettings instance)
SnapshotTargetSettings 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 ImmutableSnapshotTargetSettings.Builder archivalTarget(ArchivalExternalTarget archivalTarget)
archivalTarget to archivalTarget.archivalTarget - The value for archivalTargetthis builder for chained invocationpublic final ImmutableSnapshotTargetSettings.Builder archivalTarget(Optional<? extends ArchivalExternalTarget> archivalTarget)
archivalTarget to archivalTarget.archivalTarget - The value for archivalTargetthis builder for use in a chained invocationpublic final ImmutableSnapshotTargetSettings.Builder replicationTarget(ReplicationTargetSettings replicationTarget)
replicationTarget to replicationTarget.replicationTarget - The value for replicationTargetthis builder for chained invocationpublic final ImmutableSnapshotTargetSettings.Builder replicationTarget(Optional<? extends ReplicationTargetSettings> replicationTarget)
replicationTarget to replicationTarget.replicationTarget - The value for replicationTargetthis builder for use in a chained invocationpublic final ImmutableSnapshotTargetSettings.Builder type(SnapshotTargetType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic ImmutableSnapshotTargetSettings build()
ImmutableSnapshotTargetSettings.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.