@NotThreadSafe public static final class ImmutableRestoreTaskObjectState.Builder extends Object
ImmutableRestoreTaskObjectState.
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 |
|---|---|
ImmutableRestoreTaskObjectState |
build()
Builds a new
ImmutableRestoreTaskObjectState. |
ImmutableRestoreTaskObjectState.Builder |
error(Optional<String> error)
Initializes the optional value
error to error. |
ImmutableRestoreTaskObjectState.Builder |
error(String error)
Initializes the optional value
error to error. |
ImmutableRestoreTaskObjectState.Builder |
from(RestoreTaskObjectState instance)
Fill a builder with attribute values from the provided
RestoreTaskObjectState instance. |
ImmutableRestoreTaskObjectState.Builder |
source(VCloudProtectionSource source)
Initializes the value for the
source attribute. |
ImmutableRestoreTaskObjectState.Builder |
status(RestoreTaskObjectStatus status)
Initializes the value for the
status attribute. |
public final ImmutableRestoreTaskObjectState.Builder from(RestoreTaskObjectState instance)
RestoreTaskObjectState 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 ImmutableRestoreTaskObjectState.Builder status(RestoreTaskObjectStatus status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final ImmutableRestoreTaskObjectState.Builder error(String error)
error to error.error - The value for errorthis builder for chained invocationpublic final ImmutableRestoreTaskObjectState.Builder error(Optional<String> error)
error to error.error - The value for errorthis builder for use in a chained invocationpublic final ImmutableRestoreTaskObjectState.Builder source(VCloudProtectionSource source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic ImmutableRestoreTaskObjectState build()
ImmutableRestoreTaskObjectState.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.