@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCatalogRegistration extends CatalogRegistration
CatalogRegistration.
Use the builder to create immutable instances:
ImmutableCatalogRegistration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCatalogRegistration.Builder
Builds instances of type
ImmutableCatalogRegistration. |
| Modifier and Type | Method and Description |
|---|---|
String |
address() |
static ImmutableCatalogRegistration.Builder |
builder()
Creates a builder for
ImmutableCatalogRegistration. |
Optional<Check> |
check() |
static ImmutableCatalogRegistration |
copyOf(CatalogRegistration instance)
Creates an immutable copy of a
CatalogRegistration value. |
Optional<String> |
datacenter() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCatalogRegistration that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
datacenter, node, address, taggedAddresses, service, check, writeRequest. |
String |
node() |
Optional<Service> |
service() |
Optional<TaggedAddresses> |
taggedAddresses() |
String |
toString()
Prints the immutable value
CatalogRegistration with attribute values. |
ImmutableCatalogRegistration |
withAddress(String value)
Copy the current immutable object by setting a value for the
address attribute. |
ImmutableCatalogRegistration |
withCheck(Check value)
Copy the current immutable object by setting a present value for the optional
check attribute. |
ImmutableCatalogRegistration |
withCheck(Optional<? extends Check> optional)
Copy the current immutable object by setting an optional value for the
check attribute. |
ImmutableCatalogRegistration |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableCatalogRegistration |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableCatalogRegistration |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableCatalogRegistration |
withService(Optional<? extends Service> optional)
Copy the current immutable object by setting an optional value for the
service attribute. |
ImmutableCatalogRegistration |
withService(Service value)
Copy the current immutable object by setting a present value for the optional
service attribute. |
ImmutableCatalogRegistration |
withTaggedAddresses(Optional<? extends TaggedAddresses> optional)
Copy the current immutable object by setting an optional value for the
taggedAddresses attribute. |
ImmutableCatalogRegistration |
withTaggedAddresses(TaggedAddresses value)
Copy the current immutable object by setting a present value for the optional
taggedAddresses attribute. |
ImmutableCatalogRegistration |
withWriteRequest(Optional<? extends WriteRequest> optional)
Copy the current immutable object by setting an optional value for the
writeRequest attribute. |
ImmutableCatalogRegistration |
withWriteRequest(WriteRequest value)
Copy the current immutable object by setting a present value for the optional
writeRequest attribute. |
Optional<WriteRequest> |
writeRequest() |
public Optional<String> datacenter()
datacenter in class CatalogRegistrationdatacenter attributepublic String node()
node in class CatalogRegistrationnode attributepublic String address()
address in class CatalogRegistrationaddress attributepublic Optional<TaggedAddresses> taggedAddresses()
taggedAddresses in class CatalogRegistrationtaggedAddresses attributepublic Optional<Service> service()
service in class CatalogRegistrationservice attributepublic Optional<Check> check()
check in class CatalogRegistrationcheck attributepublic Optional<WriteRequest> writeRequest()
writeRequest in class CatalogRegistrationwriteRequest attributepublic final ImmutableCatalogRegistration withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableCatalogRegistration 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 ImmutableCatalogRegistration 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 ImmutableCatalogRegistration 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 ImmutableCatalogRegistration withTaggedAddresses(TaggedAddresses value)
taggedAddresses attribute.value - The value for taggedAddressesthis objectpublic final ImmutableCatalogRegistration withTaggedAddresses(Optional<? extends TaggedAddresses> optional)
taggedAddresses 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 taggedAddressesthis objectpublic final ImmutableCatalogRegistration withService(Service value)
service attribute.value - The value for servicethis objectpublic final ImmutableCatalogRegistration withService(Optional<? extends Service> optional)
service 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 servicethis objectpublic final ImmutableCatalogRegistration withCheck(Check value)
check attribute.value - The value for checkthis objectpublic final ImmutableCatalogRegistration withCheck(Optional<? extends Check> 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 ImmutableCatalogRegistration withWriteRequest(WriteRequest value)
writeRequest attribute.value - The value for writeRequestthis objectpublic final ImmutableCatalogRegistration withWriteRequest(Optional<? extends WriteRequest> optional)
writeRequest 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 writeRequestthis objectpublic boolean equals(@Nullable Object another)
ImmutableCatalogRegistration that have equal attribute values.public int hashCode()
datacenter, node, address, taggedAddresses, service, check, writeRequest.public String toString()
CatalogRegistration with attribute values.public static ImmutableCatalogRegistration copyOf(CatalogRegistration instance)
CatalogRegistration 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 ImmutableCatalogRegistration.Builder builder()
ImmutableCatalogRegistration.
ImmutableCatalogRegistration.builder()
.datacenter(String) // optional datacenter
.node(String) // required node
.address(String) // required address
.taggedAddresses(com.orbitz.consul.model.catalog.TaggedAddresses) // optional taggedAddresses
.service(com.orbitz.consul.model.health.Service) // optional service
.check(com.orbitz.consul.model.agent.Check) // optional check
.writeRequest(com.orbitz.consul.model.catalog.WriteRequest) // optional writeRequest
.build();
Copyright © 2019. All rights reserved.