@NotThreadSafe public static final class ImmutableServiceProxyUpstream.Builder extends Object
ImmutableServiceProxyUpstream.
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 |
|---|---|
ImmutableServiceProxyUpstream |
build()
Builds a new
ImmutableServiceProxyUpstream. |
ImmutableServiceProxyUpstream.Builder |
destinationName(String destinationName)
Initializes the value for the
destinationName attribute. |
ImmutableServiceProxyUpstream.Builder |
destinationType(String destinationType)
Initializes the value for the
destinationType attribute. |
ImmutableServiceProxyUpstream.Builder |
from(ServiceProxyUpstream instance)
Fill a builder with attribute values from the provided
ServiceProxyUpstream instance. |
ImmutableServiceProxyUpstream.Builder |
localBindPort(int localBindPort)
Initializes the value for the
localBindPort attribute. |
@CanIgnoreReturnValue public final ImmutableServiceProxyUpstream.Builder from(ServiceProxyUpstream instance)
ServiceProxyUpstream 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 ImmutableServiceProxyUpstream.Builder destinationType(String destinationType)
destinationType attribute.destinationType - The value for destinationTypethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableServiceProxyUpstream.Builder destinationName(String destinationName)
destinationName attribute.destinationName - The value for destinationNamethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableServiceProxyUpstream.Builder localBindPort(int localBindPort)
localBindPort attribute.localBindPort - The value for localBindPortthis builder for use in a chained invocationpublic ImmutableServiceProxyUpstream build()
ImmutableServiceProxyUpstream.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.