@Generated(value={"Immutables.generator","CatalogService"}) public final class ImmutableCatalogService extends CatalogService
CatalogService.
Use the builder to create immutable instances:
ImmutableCatalogService.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCatalogService.Builder
Builds instances of type
ImmutableCatalogService. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCatalogService.Builder |
builder()
Creates a builder for
ImmutableCatalogService. |
static ImmutableCatalogService |
copyOf(CatalogService instance)
Creates an immutable copy of a
CatalogService value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCatalogService that have equal attribute values. |
String |
getAddress() |
String |
getNode() |
String |
getServiceAddress() |
String |
getServiceId() |
String |
getServiceName() |
int |
getServicePort() |
com.google.common.collect.ImmutableList<String> |
getServiceTags() |
int |
hashCode()
Computes a hash code from attributes:
node, address, serviceName, serviceId, serviceAddress, servicePort, serviceTags. |
String |
toString()
Prints the immutable value
CatalogService with attribute values. |
ImmutableCatalogService |
withAddress(String value)
Copy the current immutable object by setting a value for the
address attribute. |
ImmutableCatalogService |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableCatalogService |
withServiceAddress(String value)
Copy the current immutable object by setting a value for the
serviceAddress attribute. |
ImmutableCatalogService |
withServiceId(String value)
Copy the current immutable object by setting a value for the
serviceId attribute. |
ImmutableCatalogService |
withServiceName(String value)
Copy the current immutable object by setting a value for the
serviceName attribute. |
ImmutableCatalogService |
withServicePort(int value)
Copy the current immutable object by setting a value for the
servicePort attribute. |
ImmutableCatalogService |
withServiceTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
ImmutableCatalogService |
withServiceTags(String... elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
public String getNode()
getNode in class CatalogServicenode attributepublic String getAddress()
getAddress in class CatalogServiceaddress attributepublic String getServiceName()
getServiceName in class CatalogServiceserviceName attributepublic String getServiceId()
getServiceId in class CatalogServiceserviceId attributepublic String getServiceAddress()
getServiceAddress in class CatalogServiceserviceAddress attributepublic int getServicePort()
getServicePort in class CatalogServiceservicePort attributepublic com.google.common.collect.ImmutableList<String> getServiceTags()
getServiceTags in class CatalogServiceserviceTags attributepublic final ImmutableCatalogService withNode(String value)
node attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableCatalogService withAddress(String value)
address attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for addressthis objectpublic final ImmutableCatalogService withServiceName(String value)
serviceName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for serviceNamethis objectpublic final ImmutableCatalogService withServiceId(String value)
serviceId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for serviceIdthis objectpublic final ImmutableCatalogService withServiceAddress(String value)
serviceAddress attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for serviceAddressthis objectpublic final ImmutableCatalogService withServicePort(int value)
servicePort attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for servicePortthis objectpublic final ImmutableCatalogService withServiceTags(String... elements)
serviceTags.elements - The elements to setthis objectpublic final ImmutableCatalogService withServiceTags(Iterable<String> elements)
serviceTags.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of serviceTags elements to setthis objectpublic boolean equals(Object another)
ImmutableCatalogService that have equal attribute values.public int hashCode()
node, address, serviceName, serviceId, serviceAddress, servicePort, serviceTags.public String toString()
CatalogService with attribute values.public static ImmutableCatalogService copyOf(CatalogService instance)
CatalogService 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 ImmutableCatalogService.Builder builder()
ImmutableCatalogService.Copyright © 2016. All rights reserved.