Package com.orbitz.consul.model.catalog
Class ImmutableCatalogDeregistration
- java.lang.Object
-
- com.orbitz.consul.model.catalog.CatalogDeregistration
-
- com.orbitz.consul.model.catalog.ImmutableCatalogDeregistration
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCatalogDeregistration extends CatalogDeregistrationImmutable implementation ofCatalogDeregistration.Use the builder to create immutable instances:
ImmutableCatalogDeregistration.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCatalogDeregistration.BuilderBuilds instances of typeImmutableCatalogDeregistration.
-
Method Summary
Modifier and Type Method Description static ImmutableCatalogDeregistration.Builderbuilder()Creates a builder forImmutableCatalogDeregistration.java.util.Optional<java.lang.String>checkId()static ImmutableCatalogDeregistrationcopyOf(CatalogDeregistration instance)Creates an immutable copy of aCatalogDeregistrationvalue.java.util.Optional<java.lang.String>datacenter()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableCatalogDeregistrationthat have equal attribute values.inthashCode()Computes a hash code from attributes:datacenter,node,checkId,serviceId,writeRequest.java.lang.Stringnode()java.util.Optional<java.lang.String>serviceId()java.lang.StringtoString()Prints the immutable valueCatalogDeregistrationwith attribute values.ImmutableCatalogDeregistrationwithCheckId(java.lang.String value)Copy the current immutable object by setting a present value for the optionalcheckIdattribute.ImmutableCatalogDeregistrationwithCheckId(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thecheckIdattribute.ImmutableCatalogDeregistrationwithDatacenter(java.lang.String value)Copy the current immutable object by setting a present value for the optionaldatacenterattribute.ImmutableCatalogDeregistrationwithDatacenter(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thedatacenterattribute.ImmutableCatalogDeregistrationwithNode(java.lang.String value)Copy the current immutable object by setting a value for thenodeattribute.ImmutableCatalogDeregistrationwithServiceId(java.lang.String value)Copy the current immutable object by setting a present value for the optionalserviceIdattribute.ImmutableCatalogDeregistrationwithServiceId(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for theserviceIdattribute.ImmutableCatalogDeregistrationwithWriteRequest(WriteRequest value)Copy the current immutable object by setting a present value for the optionalwriteRequestattribute.ImmutableCatalogDeregistrationwithWriteRequest(java.util.Optional<? extends WriteRequest> optional)Copy the current immutable object by setting an optional value for thewriteRequestattribute.java.util.Optional<WriteRequest>writeRequest()
-
-
-
Method Detail
-
datacenter
public java.util.Optional<java.lang.String> datacenter()
- Specified by:
datacenterin classCatalogDeregistration- Returns:
- The value of the
datacenterattribute
-
node
public java.lang.String node()
- Specified by:
nodein classCatalogDeregistration- Returns:
- The value of the
nodeattribute
-
checkId
public java.util.Optional<java.lang.String> checkId()
- Specified by:
checkIdin classCatalogDeregistration- Returns:
- The value of the
checkIdattribute
-
serviceId
public java.util.Optional<java.lang.String> serviceId()
- Specified by:
serviceIdin classCatalogDeregistration- Returns:
- The value of the
serviceIdattribute
-
writeRequest
public java.util.Optional<WriteRequest> writeRequest()
- Specified by:
writeRequestin classCatalogDeregistration- Returns:
- The value of the
writeRequestattribute
-
withDatacenter
public final ImmutableCatalogDeregistration withDatacenter(java.lang.String value)
Copy the current immutable object by setting a present value for the optionaldatacenterattribute.- Parameters:
value- The value for datacenter- Returns:
- A modified copy of
thisobject
-
withDatacenter
public final ImmutableCatalogDeregistration withDatacenter(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for thedatacenterattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for datacenter- Returns:
- A modified copy of
thisobject
-
withNode
public final ImmutableCatalogDeregistration withNode(java.lang.String value)
Copy the current immutable object by setting a value for thenodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for node- Returns:
- A modified copy of the
thisobject
-
withCheckId
public final ImmutableCatalogDeregistration withCheckId(java.lang.String value)
Copy the current immutable object by setting a present value for the optionalcheckIdattribute.- Parameters:
value- The value for checkId- Returns:
- A modified copy of
thisobject
-
withCheckId
public final ImmutableCatalogDeregistration withCheckId(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for thecheckIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for checkId- Returns:
- A modified copy of
thisobject
-
withServiceId
public final ImmutableCatalogDeregistration withServiceId(java.lang.String value)
Copy the current immutable object by setting a present value for the optionalserviceIdattribute.- Parameters:
value- The value for serviceId- Returns:
- A modified copy of
thisobject
-
withServiceId
public final ImmutableCatalogDeregistration withServiceId(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for theserviceIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for serviceId- Returns:
- A modified copy of
thisobject
-
withWriteRequest
public final ImmutableCatalogDeregistration withWriteRequest(WriteRequest value)
Copy the current immutable object by setting a present value for the optionalwriteRequestattribute.- Parameters:
value- The value for writeRequest- Returns:
- A modified copy of
thisobject
-
withWriteRequest
public final ImmutableCatalogDeregistration withWriteRequest(java.util.Optional<? extends WriteRequest> optional)
Copy the current immutable object by setting an optional value for thewriteRequestattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for writeRequest- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableCatalogDeregistrationthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:datacenter,node,checkId,serviceId,writeRequest.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueCatalogDeregistrationwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableCatalogDeregistration copyOf(CatalogDeregistration instance)
Creates an immutable copy of aCatalogDeregistrationvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CatalogDeregistration instance
-
builder
public static ImmutableCatalogDeregistration.Builder builder()
Creates a builder forImmutableCatalogDeregistration.ImmutableCatalogDeregistration.builder() .datacenter(String) // optionaldatacenter.node(String) // requirednode.checkId(String) // optionalcheckId.serviceId(String) // optionalserviceId.writeRequest(com.orbitz.consul.model.catalog.WriteRequest) // optionalwriteRequest.build();- Returns:
- A new ImmutableCatalogDeregistration builder
-
-