@NotThreadSafe public static final class ImmutableCopyRun.Builder extends Object
ImmutableCopyRun
.
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 ImmutableCopyRun.Builder from(CopyRun instance)
CopyRun
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 ImmutableCopyRun.Builder addCopySnapshotTasks(CopySnapshotTaskStatus element)
copySnapshotTasks
list.element
- A copySnapshotTasks elementthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder addCopySnapshotTasks(CopySnapshotTaskStatus... elements)
copySnapshotTasks
list.elements
- An array of copySnapshotTasks elementsthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder copySnapshotTasks(Iterable<? extends CopySnapshotTaskStatus> elements)
copySnapshotTasks
list.elements
- An iterable of copySnapshotTasks elementsthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder addAllCopySnapshotTasks(Iterable<? extends CopySnapshotTaskStatus> elements)
copySnapshotTasks
list.elements
- An iterable of copySnapshotTasks elementsthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder error(String error)
error
to error.error
- The value for errorthis
builder for chained invocationpublic final ImmutableCopyRun.Builder error(Optional<String> error)
error
to error.error
- The value for errorthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder expiryTime(Instant expiryTime)
expiryTime
to expiryTime.expiryTime
- The value for expiryTimethis
builder for chained invocationpublic final ImmutableCopyRun.Builder expiryTime(Optional<? extends Instant> expiryTime)
expiryTime
to expiryTime.expiryTime
- The value for expiryTimethis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder runStartTime(Instant runStartTime)
runStartTime
attribute.runStartTime
- The value for runStartTimethis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder stats(CopyRunStats stats)
stats
to stats.stats
- The value for statsthis
builder for chained invocationpublic final ImmutableCopyRun.Builder stats(Optional<? extends CopyRunStats> stats)
stats
to stats.stats
- The value for statsthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder status(StatusCopyRun status)
status
attribute.status
- The value for statusthis
builder for use in a chained invocationpublic final ImmutableCopyRun.Builder target(SnapshotTargetSettings target)
target
attribute.target
- The value for targetthis
builder for use in a chained invocationpublic ImmutableCopyRun build()
ImmutableCopyRun
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.