@NotThreadSafe public static final class ImmutableTaggedAddresses.Builder extends Object
ImmutableTaggedAddresses.
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 |
|---|---|
ImmutableTaggedAddresses |
build()
Builds a new
ImmutableTaggedAddresses. |
ImmutableTaggedAddresses.Builder |
from(TaggedAddresses instance)
Fill a builder with attribute values from the provided
TaggedAddresses instance. |
ImmutableTaggedAddresses.Builder |
lan(Optional<String> lan)
Initializes the optional value
lan to lan. |
ImmutableTaggedAddresses.Builder |
lan(String lan)
Initializes the optional value
lan to lan. |
ImmutableTaggedAddresses.Builder |
wan(String wan)
Initializes the value for the
wan attribute. |
@CanIgnoreReturnValue public final ImmutableTaggedAddresses.Builder from(TaggedAddresses instance)
TaggedAddresses 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 invocation@CanIgnoreReturnValue public final ImmutableTaggedAddresses.Builder wan(String wan)
wan attribute.wan - The value for wanthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTaggedAddresses.Builder lan(String lan)
lan to lan.lan - The value for lanthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTaggedAddresses.Builder lan(Optional<String> lan)
lan to lan.lan - The value for lanthis builder for use in a chained invocationpublic ImmutableTaggedAddresses build()
ImmutableTaggedAddresses.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.