@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Registration"}) @Immutable public final class ImmutableRegistration extends Registration
Registration.
Use the builder to create immutable instances:
ImmutableRegistration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRegistration.Builder
Builds instances of type
ImmutableRegistration. |
Registration.RegCheck| Modifier and Type | Method and Description |
|---|---|
static ImmutableRegistration.Builder |
builder()
Creates a builder for
ImmutableRegistration. |
static ImmutableRegistration |
copyOf(Registration instance)
Creates an immutable copy of a
Registration value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRegistration that have equal attribute values. |
Optional<String> |
getAddress() |
Optional<Registration.RegCheck> |
getCheck() |
com.google.common.collect.ImmutableList<Registration.RegCheck> |
getChecks() |
Optional<Boolean> |
getEnableTagOverride() |
String |
getId() |
String |
getName() |
Optional<Integer> |
getPort() |
com.google.common.collect.ImmutableList<String> |
getTags() |
int |
hashCode()
Computes a hash code from attributes:
name, id, address, port, check, checks, tags, enableTagOverride. |
String |
toString()
Prints the immutable value
Registration with attribute values. |
ImmutableRegistration |
withAddress(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
address attribute. |
ImmutableRegistration |
withAddress(String value)
Copy the current immutable object by setting a present value for the optional
address attribute. |
ImmutableRegistration |
withCheck(Optional<Registration.RegCheck> optional)
Copy the current immutable object by setting an optional value for the
check attribute. |
ImmutableRegistration |
withCheck(Registration.RegCheck value)
Copy the current immutable object by setting a present value for the optional
check attribute. |
ImmutableRegistration |
withChecks(Iterable<? extends Registration.RegCheck> elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableRegistration |
withChecks(Registration.RegCheck... elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableRegistration |
withEnableTagOverride(boolean value)
Copy the current immutable object by setting a present value for the optional
enableTagOverride attribute. |
ImmutableRegistration |
withEnableTagOverride(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
enableTagOverride attribute. |
ImmutableRegistration |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableRegistration |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableRegistration |
withPort(int value)
Copy the current immutable object by setting a present value for the optional
port attribute. |
ImmutableRegistration |
withPort(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
port attribute. |
ImmutableRegistration |
withTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
tags. |
ImmutableRegistration |
withTags(String... elements)
Copy the current immutable object with elements that replace the content of
tags. |
public String getName()
getName in class Registrationname attributepublic String getId()
getId in class Registrationid attributepublic Optional<String> getAddress()
getAddress in class Registrationaddress attributepublic Optional<Integer> getPort()
getPort in class Registrationport attributepublic Optional<Registration.RegCheck> getCheck()
getCheck in class Registrationcheck attributepublic com.google.common.collect.ImmutableList<Registration.RegCheck> getChecks()
getChecks in class Registrationchecks attributepublic com.google.common.collect.ImmutableList<String> getTags()
getTags in class Registrationtags attributepublic Optional<Boolean> getEnableTagOverride()
getEnableTagOverride in class RegistrationenableTagOverride attributepublic final ImmutableRegistration withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableRegistration 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 ImmutableRegistration withAddress(String value)
address attribute.value - The value for addressthis objectpublic final ImmutableRegistration withAddress(Optional<String> optional)
address attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for addressthis objectpublic final ImmutableRegistration withPort(int value)
port attribute.value - The value for portthis objectpublic final ImmutableRegistration withPort(Optional<Integer> optional)
port attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for portthis objectpublic final ImmutableRegistration withCheck(Registration.RegCheck value)
check attribute.value - The value for checkthis objectpublic final ImmutableRegistration withCheck(Optional<Registration.RegCheck> optional)
check 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 checkthis objectpublic final ImmutableRegistration withChecks(Registration.RegCheck... elements)
checks.elements - The elements to setthis objectpublic final ImmutableRegistration withChecks(Iterable<? extends Registration.RegCheck> elements)
checks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of checks elements to setthis objectpublic final ImmutableRegistration withTags(String... elements)
tags.elements - The elements to setthis objectpublic final ImmutableRegistration 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 ImmutableRegistration withEnableTagOverride(boolean value)
enableTagOverride attribute.value - The value for enableTagOverridethis objectpublic final ImmutableRegistration 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 boolean equals(@Nullable Object another)
ImmutableRegistration that have equal attribute values.public int hashCode()
name, id, address, port, check, checks, tags, enableTagOverride.public String toString()
Registration with attribute values.public static ImmutableRegistration copyOf(Registration instance)
Registration 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 ImmutableRegistration.Builder builder()
ImmutableRegistration.Copyright © 2018. All rights reserved.