@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCatalogDeregistration extends CatalogDeregistration
CatalogDeregistration.
Use the builder to create immutable instances:
ImmutableCatalogDeregistration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCatalogDeregistration.Builder
Builds instances of type
ImmutableCatalogDeregistration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCatalogDeregistration.Builder |
builder()
Creates a builder for
ImmutableCatalogDeregistration. |
Optional<String> |
checkId() |
static ImmutableCatalogDeregistration |
copyOf(CatalogDeregistration instance)
Creates an immutable copy of a
CatalogDeregistration value. |
Optional<String> |
datacenter() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCatalogDeregistration that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
datacenter, node, checkId, serviceId, writeRequest. |
String |
node() |
Optional<String> |
serviceId() |
String |
toString()
Prints the immutable value
CatalogDeregistration with attribute values. |
ImmutableCatalogDeregistration |
withCheckId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
checkId attribute. |
ImmutableCatalogDeregistration |
withCheckId(String value)
Copy the current immutable object by setting a present value for the optional
checkId attribute. |
ImmutableCatalogDeregistration |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableCatalogDeregistration |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableCatalogDeregistration |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableCatalogDeregistration |
withServiceId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
serviceId attribute. |
ImmutableCatalogDeregistration |
withServiceId(String value)
Copy the current immutable object by setting a present value for the optional
serviceId attribute. |
ImmutableCatalogDeregistration |
withWriteRequest(Optional<? extends WriteRequest> optional)
Copy the current immutable object by setting an optional value for the
writeRequest attribute. |
ImmutableCatalogDeregistration |
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 CatalogDeregistrationdatacenter attributepublic String node()
node in class CatalogDeregistrationnode attributepublic Optional<String> checkId()
checkId in class CatalogDeregistrationcheckId attributepublic Optional<String> serviceId()
serviceId in class CatalogDeregistrationserviceId attributepublic Optional<WriteRequest> writeRequest()
writeRequest in class CatalogDeregistrationwriteRequest attributepublic final ImmutableCatalogDeregistration withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableCatalogDeregistration 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 ImmutableCatalogDeregistration 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 ImmutableCatalogDeregistration withCheckId(String value)
checkId attribute.value - The value for checkIdthis objectpublic final ImmutableCatalogDeregistration withCheckId(Optional<String> optional)
checkId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for checkIdthis objectpublic final ImmutableCatalogDeregistration withServiceId(String value)
serviceId attribute.value - The value for serviceIdthis objectpublic final ImmutableCatalogDeregistration withServiceId(Optional<String> optional)
serviceId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceIdthis objectpublic final ImmutableCatalogDeregistration withWriteRequest(WriteRequest value)
writeRequest attribute.value - The value for writeRequestthis objectpublic final ImmutableCatalogDeregistration 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)
ImmutableCatalogDeregistration that have equal attribute values.public int hashCode()
datacenter, node, checkId, serviceId, writeRequest.public String toString()
CatalogDeregistration with attribute values.public static ImmutableCatalogDeregistration copyOf(CatalogDeregistration instance)
CatalogDeregistration 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 ImmutableCatalogDeregistration.Builder builder()
ImmutableCatalogDeregistration.
ImmutableCatalogDeregistration.builder()
.datacenter(String) // optional datacenter
.node(String) // required node
.checkId(String) // optional checkId
.serviceId(String) // optional serviceId
.writeRequest(com.orbitz.consul.model.catalog.WriteRequest) // optional writeRequest
.build();
Copyright © 2019. All rights reserved.