@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue 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() |
Optional<String> |
getDatacenter() |
String |
getNode() |
com.google.common.collect.ImmutableMap<String,String> |
getNodeMeta() |
String |
getServiceAddress() |
Optional<Boolean> |
getServiceEnableTagOverride() |
String |
getServiceId() |
com.google.common.collect.ImmutableMap<String,String> |
getServiceMeta() |
String |
getServiceName() |
int |
getServicePort() |
com.google.common.collect.ImmutableList<String> |
getServiceTags() |
Optional<ServiceWeights> |
getServiceWeights() |
int |
hashCode()
Computes a hash code from attributes:
node, address, datacenter, serviceName, serviceId, serviceAddress, serviceEnableTagOverride, servicePort, serviceTags, serviceMeta, serviceWeights, nodeMeta. |
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 |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableCatalogService |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableCatalogService |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableCatalogService |
withNodeMeta(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
nodeMeta map with the specified map. |
ImmutableCatalogService |
withServiceAddress(String value)
Copy the current immutable object by setting a value for the
serviceAddress attribute. |
ImmutableCatalogService |
withServiceEnableTagOverride(boolean value)
Copy the current immutable object by setting a present value for the optional
serviceEnableTagOverride attribute. |
ImmutableCatalogService |
withServiceEnableTagOverride(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
serviceEnableTagOverride attribute. |
ImmutableCatalogService |
withServiceId(String value)
Copy the current immutable object by setting a value for the
serviceId attribute. |
ImmutableCatalogService |
withServiceMeta(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
serviceMeta map with the specified map. |
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. |
ImmutableCatalogService |
withServiceWeights(Optional<? extends ServiceWeights> optional)
Copy the current immutable object by setting an optional value for the
serviceWeights attribute. |
ImmutableCatalogService |
withServiceWeights(ServiceWeights value)
Copy the current immutable object by setting a present value for the optional
serviceWeights attribute. |
public String getNode()
getNode in class CatalogServicenode attributepublic String getAddress()
getAddress in class CatalogServiceaddress attributepublic Optional<String> getDatacenter()
getDatacenter in class CatalogServicedatacenter attributepublic String getServiceName()
getServiceName in class CatalogServiceserviceName attributepublic String getServiceId()
getServiceId in class CatalogServiceserviceId attributepublic String getServiceAddress()
getServiceAddress in class CatalogServiceserviceAddress attributepublic Optional<Boolean> getServiceEnableTagOverride()
getServiceEnableTagOverride in class CatalogServiceserviceEnableTagOverride attributepublic int getServicePort()
getServicePort in class CatalogServiceservicePort attributepublic com.google.common.collect.ImmutableList<String> getServiceTags()
getServiceTags in class CatalogServiceserviceTags attributepublic com.google.common.collect.ImmutableMap<String,String> getServiceMeta()
getServiceMeta in class CatalogServiceserviceMeta attributepublic Optional<ServiceWeights> getServiceWeights()
getServiceWeights in class CatalogServiceserviceWeights attributepublic com.google.common.collect.ImmutableMap<String,String> getNodeMeta()
getNodeMeta in class CatalogServicenodeMeta 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 withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableCatalogService withDatacenter(Optional<String> optional)
datacenter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for datacenterthis 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 withServiceEnableTagOverride(boolean value)
serviceEnableTagOverride attribute.value - The value for serviceEnableTagOverridethis objectpublic final ImmutableCatalogService withServiceEnableTagOverride(Optional<Boolean> optional)
serviceEnableTagOverride attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceEnableTagOverridethis 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 final ImmutableCatalogService withServiceMeta(Map<String,? extends String> entries)
serviceMeta map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the serviceMeta mapthis objectpublic final ImmutableCatalogService withServiceWeights(ServiceWeights value)
serviceWeights attribute.value - The value for serviceWeightsthis objectpublic final ImmutableCatalogService withServiceWeights(Optional<? extends ServiceWeights> optional)
serviceWeights attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for serviceWeightsthis objectpublic final ImmutableCatalogService withNodeMeta(Map<String,? extends String> entries)
nodeMeta map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the nodeMeta mapthis objectpublic boolean equals(@Nullable Object another)
ImmutableCatalogService that have equal attribute values.public int hashCode()
node, address, datacenter, serviceName, serviceId, serviceAddress, serviceEnableTagOverride, servicePort, serviceTags, serviceMeta, serviceWeights, nodeMeta.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.
ImmutableCatalogService.builder()
.node(String) // required node
.address(String) // required address
.datacenter(String) // optional datacenter
.serviceName(String) // required serviceName
.serviceId(String) // required serviceId
.serviceAddress(String) // required serviceAddress
.serviceEnableTagOverride(Boolean) // optional serviceEnableTagOverride
.servicePort(int) // required servicePort
.addServiceTags|addAllServiceTags(String) // serviceTags elements
.putServiceMeta|putAllServiceMeta(String => String) // serviceMeta mappings
.serviceWeights(com.orbitz.consul.model.catalog.ServiceWeights) // optional serviceWeights
.putNodeMeta|putAllNodeMeta(String => String) // nodeMeta mappings
.build();
Copyright © 2019. All rights reserved.