@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableServiceProxyUpstream extends ServiceProxyUpstream
ServiceProxyUpstream.
Use the builder to create immutable instances:
ImmutableServiceProxyUpstream.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableServiceProxyUpstream.Builder
Builds instances of type
ImmutableServiceProxyUpstream. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServiceProxyUpstream.Builder |
builder()
Creates a builder for
ImmutableServiceProxyUpstream. |
static ImmutableServiceProxyUpstream |
copyOf(ServiceProxyUpstream instance)
Creates an immutable copy of a
ServiceProxyUpstream value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableServiceProxyUpstream that have equal attribute values. |
String |
getDestinationName() |
String |
getDestinationType() |
int |
getLocalBindPort() |
int |
hashCode()
Computes a hash code from attributes:
destinationType, destinationName, localBindPort. |
String |
toString()
Prints the immutable value
ServiceProxyUpstream with attribute values. |
ImmutableServiceProxyUpstream |
withDestinationName(String value)
Copy the current immutable object by setting a value for the
destinationName attribute. |
ImmutableServiceProxyUpstream |
withDestinationType(String value)
Copy the current immutable object by setting a value for the
destinationType attribute. |
ImmutableServiceProxyUpstream |
withLocalBindPort(int value)
Copy the current immutable object by setting a value for the
localBindPort attribute. |
public String getDestinationType()
getDestinationType in class ServiceProxyUpstreamdestinationType attributepublic String getDestinationName()
getDestinationName in class ServiceProxyUpstreamdestinationName attributepublic int getLocalBindPort()
getLocalBindPort in class ServiceProxyUpstreamlocalBindPort attributepublic final ImmutableServiceProxyUpstream withDestinationType(String value)
destinationType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for destinationTypethis objectpublic final ImmutableServiceProxyUpstream withDestinationName(String value)
destinationName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for destinationNamethis objectpublic final ImmutableServiceProxyUpstream withLocalBindPort(int value)
localBindPort attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for localBindPortthis objectpublic boolean equals(@Nullable Object another)
ImmutableServiceProxyUpstream that have equal attribute values.public int hashCode()
destinationType, destinationName, localBindPort.public String toString()
ServiceProxyUpstream with attribute values.public static ImmutableServiceProxyUpstream copyOf(ServiceProxyUpstream instance)
ServiceProxyUpstream value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableServiceProxyUpstream.Builder builder()
ImmutableServiceProxyUpstream.
ImmutableServiceProxyUpstream.builder()
.destinationType(String) // required destinationType
.destinationName(String) // required destinationName
.localBindPort(int) // required localBindPort
.build();
Copyright © 2019. All rights reserved.