@NotThreadSafe public static final class ImmutableLocationResponse.Builder extends Object
ImmutableLocationResponse.
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 |
|---|---|
ImmutableLocationResponse |
build()
Builds a new
ImmutableLocationResponse. |
ImmutableLocationResponse.Builder |
from(LocationResponse instance)
Fill a builder with attribute values from the provided
LocationResponse instance. |
ImmutableLocationResponse.Builder |
locationId(String locationId)
Initializes the value for the
locationId attribute. |
public final ImmutableLocationResponse.Builder from(LocationResponse instance)
LocationResponse 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 ImmutableLocationResponse.Builder locationId(String locationId)
locationId attribute.locationId - The value for locationIdthis builder for use in a chained invocationpublic ImmutableLocationResponse build()
ImmutableLocationResponse.IllegalStateException - if any required attributes are missingCopyright © 2020 iland Internet Solutions, Corp. All rights reserved.