@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFullService extends FullService
FullService.
Use the builder to create immutable instances:
ImmutableFullService.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFullService.Builder
Builds instances of type
ImmutableFullService. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFullService.Builder |
builder()
Creates a builder for
ImmutableFullService. |
static ImmutableFullService |
copyOf(FullService instance)
Creates an immutable copy of a
FullService value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFullService that have equal attribute values. |
String |
getAddress() |
String |
getContentHash() |
Optional<Boolean> |
getEnableTagOverride() |
String |
getId() |
Optional<String> |
getKind() |
com.google.common.collect.ImmutableMap<String,String> |
getMeta() |
int |
getPort() |
Optional<ServiceProxy> |
getProxy() |
String |
getService() |
com.google.common.collect.ImmutableList<String> |
getTags() |
Optional<ServiceWeights> |
getWeights() |
int |
hashCode()
Computes a hash code from attributes:
kind, id, service, tags, meta, port, address, weights, enableTagOverride, contentHash, proxy. |
String |
toString()
Prints the immutable value
FullService with attribute values. |
ImmutableFullService |
withAddress(String value)
Copy the current immutable object by setting a value for the
address attribute. |
ImmutableFullService |
withContentHash(String value)
Copy the current immutable object by setting a value for the
contentHash attribute. |
ImmutableFullService |
withEnableTagOverride(boolean value)
Copy the current immutable object by setting a present value for the optional
enableTagOverride attribute. |
ImmutableFullService |
withEnableTagOverride(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
enableTagOverride attribute. |
ImmutableFullService |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableFullService |
withKind(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
kind attribute. |
ImmutableFullService |
withKind(String value)
Copy the current immutable object by setting a present value for the optional
kind attribute. |
ImmutableFullService |
withMeta(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
meta map with the specified map. |
ImmutableFullService |
withPort(int value)
Copy the current immutable object by setting a value for the
port attribute. |
ImmutableFullService |
withProxy(Optional<? extends ServiceProxy> optional)
Copy the current immutable object by setting an optional value for the
proxy attribute. |
ImmutableFullService |
withProxy(ServiceProxy value)
Copy the current immutable object by setting a present value for the optional
proxy attribute. |
ImmutableFullService |
withService(String value)
Copy the current immutable object by setting a value for the
service attribute. |
ImmutableFullService |
withTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
tags. |
ImmutableFullService |
withTags(String... elements)
Copy the current immutable object with elements that replace the content of
tags. |
ImmutableFullService |
withWeights(Optional<? extends ServiceWeights> optional)
Copy the current immutable object by setting an optional value for the
weights attribute. |
ImmutableFullService |
withWeights(ServiceWeights value)
Copy the current immutable object by setting a present value for the optional
weights attribute. |
public Optional<String> getKind()
getKind in class FullServicekind attributepublic String getId()
getId in class FullServiceid attributepublic String getService()
getService in class FullServiceservice attributepublic com.google.common.collect.ImmutableList<String> getTags()
getTags in class FullServicetags attributepublic com.google.common.collect.ImmutableMap<String,String> getMeta()
getMeta in class FullServicemeta attributepublic int getPort()
getPort in class FullServiceport attributepublic String getAddress()
getAddress in class FullServiceaddress attributepublic Optional<ServiceWeights> getWeights()
getWeights in class FullServiceweights attributepublic Optional<Boolean> getEnableTagOverride()
getEnableTagOverride in class FullServiceenableTagOverride attributepublic String getContentHash()
getContentHash in class FullServicecontentHash attributepublic Optional<ServiceProxy> getProxy()
getProxy in class FullServiceproxy attributepublic final ImmutableFullService withKind(String value)
kind attribute.value - The value for kindthis objectpublic final ImmutableFullService withKind(Optional<String> optional)
kind attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for kindthis objectpublic final ImmutableFullService withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableFullService withService(String value)
service attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for servicethis objectpublic final ImmutableFullService withTags(String... elements)
tags.elements - The elements to setthis objectpublic final ImmutableFullService withTags(Iterable<String> elements)
tags.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of tags elements to setthis objectpublic final ImmutableFullService withMeta(Map<String,? extends String> entries)
meta 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 meta mapthis objectpublic final ImmutableFullService withPort(int value)
port attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for portthis objectpublic final ImmutableFullService 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 ImmutableFullService withWeights(ServiceWeights value)
weights attribute.value - The value for weightsthis objectpublic final ImmutableFullService withWeights(Optional<? extends ServiceWeights> optional)
weights 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 weightsthis objectpublic final ImmutableFullService withEnableTagOverride(boolean value)
enableTagOverride attribute.value - The value for enableTagOverridethis objectpublic final ImmutableFullService withEnableTagOverride(Optional<Boolean> optional)
enableTagOverride attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enableTagOverridethis objectpublic final ImmutableFullService withContentHash(String value)
contentHash attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for contentHashthis objectpublic final ImmutableFullService withProxy(ServiceProxy value)
proxy attribute.value - The value for proxythis objectpublic final ImmutableFullService withProxy(Optional<? extends ServiceProxy> optional)
proxy 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 proxythis objectpublic boolean equals(@Nullable Object another)
ImmutableFullService that have equal attribute values.public int hashCode()
kind, id, service, tags, meta, port, address, weights, enableTagOverride, contentHash, proxy.public String toString()
FullService with attribute values.public static ImmutableFullService copyOf(FullService instance)
FullService 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 ImmutableFullService.Builder builder()
ImmutableFullService.
ImmutableFullService.builder()
.kind(String) // optional kind
.id(String) // required id
.service(String) // required service
.addTags|addAllTags(String) // tags elements
.putMeta|putAllMeta(String => String) // meta mappings
.port(int) // required port
.address(String) // required address
.weights(com.orbitz.consul.model.catalog.ServiceWeights) // optional weights
.enableTagOverride(Boolean) // optional enableTagOverride
.contentHash(String) // required contentHash
.proxy(com.orbitz.consul.model.agent.ServiceProxy) // optional proxy
.build();
Copyright © 2019. All rights reserved.