@NotThreadSafe public static final class ImmutableCopySnapshotTaskStatus.Builder extends Object
ImmutableCopySnapshotTaskStatus.
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 ImmutableCopySnapshotTaskStatus.Builder from(CopySnapshotTaskStatus instance)
CopySnapshotTaskStatus 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 ImmutableCopySnapshotTaskStatus.Builder error(String error)
error to error.error - The value for errorthis builder for chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder error(Optional<String> error)
error to error.error - The value for errorthis builder for use in a chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder source(VCloudProtectionSource source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder stats(CopyRunStats stats)
stats attribute.stats - The value for statsthis builder for use in a chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder status(StatusCopySnapshotTaskStatus status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder taskEndTime(Instant taskEndTime)
taskEndTime to taskEndTime.taskEndTime - The value for taskEndTimethis builder for chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder taskEndTime(Optional<? extends Instant> taskEndTime)
taskEndTime to taskEndTime.taskEndTime - The value for taskEndTimethis builder for use in a chained invocationpublic final ImmutableCopySnapshotTaskStatus.Builder taskStartTime(Instant taskStartTime)
taskStartTime attribute.taskStartTime - The value for taskStartTimethis builder for use in a chained invocationpublic ImmutableCopySnapshotTaskStatus build()
ImmutableCopySnapshotTaskStatus.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.