@NotThreadSafe public static final class ImmutableJobCopyRunInfo.Builder extends Object
ImmutableJobCopyRunInfo
.
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.
Modifier and Type | Method and Description |
---|---|
ImmutableJobCopyRunInfo |
build()
Builds a new
ImmutableJobCopyRunInfo . |
ImmutableJobCopyRunInfo.Builder |
from(JobCopyRunInfo instance)
Fill a builder with attribute values from the provided
JobCopyRunInfo instance. |
ImmutableJobCopyRunInfo.Builder |
status(RunStatus status)
Initializes the value for the
status attribute. |
ImmutableJobCopyRunInfo.Builder |
targetType(SnapshotTargetType targetType)
Initializes the value for the
targetType attribute. |
public final ImmutableJobCopyRunInfo.Builder from(JobCopyRunInfo instance)
JobCopyRunInfo
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 ImmutableJobCopyRunInfo.Builder status(RunStatus status)
status
attribute.status
- The value for statusthis
builder for use in a chained invocationpublic final ImmutableJobCopyRunInfo.Builder targetType(SnapshotTargetType targetType)
targetType
attribute.targetType
- The value for targetTypethis
builder for use in a chained invocationpublic ImmutableJobCopyRunInfo build()
ImmutableJobCopyRunInfo
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.