public static final class ImmutableUpload.Builder extends Object
ImmutableUpload.
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 |
|---|---|
ImmutableUpload |
build()
Builds a new
ImmutableUpload. |
ImmutableUpload.Builder |
errorDetails(ErrorDetails errorDetails)
Initializes the value for the
errorDetails attribute. |
ImmutableUpload.Builder |
from(Upload instance)
Fill a builder with attribute values from the provided
Upload instance. |
ImmutableUpload.Builder |
status(Status status)
Initializes the value for the
status attribute. |
public final ImmutableUpload.Builder from(Upload instance)
Upload 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 ImmutableUpload.Builder status(Status status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final ImmutableUpload.Builder errorDetails(ErrorDetails errorDetails)
errorDetails attribute.errorDetails - The value for errorDetails (can be null)this builder for use in a chained invocationpublic ImmutableUpload build()
ImmutableUpload.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.