Package com.orbitz.consul.option
Class ImmutableDeleteOptions
- java.lang.Object
-
- com.orbitz.consul.option.DeleteOptions
-
- com.orbitz.consul.option.ImmutableDeleteOptions
-
- All Implemented Interfaces:
ParamAdder
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeleteOptions extends DeleteOptionsImmutable implementation ofDeleteOptions.Use the builder to create immutable instances:
ImmutableDeleteOptions.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDeleteOptions.BuilderBuilds instances of typeImmutableDeleteOptions.
-
Field Summary
-
Fields inherited from class com.orbitz.consul.option.DeleteOptions
BLANK, RECURSE
-
-
Method Summary
Modifier and Type Method Description static ImmutableDeleteOptions.Builderbuilder()Creates a builder forImmutableDeleteOptions.static ImmutableDeleteOptionscopyOf(DeleteOptions instance)Creates an immutable copy of aDeleteOptionsvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableDeleteOptionsthat have equal attribute values.java.util.Optional<java.lang.Long>getCas()java.util.Optional<java.lang.String>getDatacenter()java.util.Optional<java.lang.Boolean>getRecurse()inthashCode()Computes a hash code from attributes:toHeaders,cas,recurse,datacenter,isRecurse.booleanisRecurse()com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>toHeaders()java.lang.StringtoString()Prints the immutable valueDeleteOptionswith attribute values.ImmutableDeleteOptionswithCas(long value)Copy the current immutable object by setting a present value for the optionalcasattribute.ImmutableDeleteOptionswithCas(java.util.Optional<java.lang.Long> optional)Copy the current immutable object by setting an optional value for thecasattribute.ImmutableDeleteOptionswithDatacenter(java.lang.String value)Copy the current immutable object by setting a present value for the optionaldatacenterattribute.ImmutableDeleteOptionswithDatacenter(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thedatacenterattribute.ImmutableDeleteOptionswithRecurse(boolean value)Copy the current immutable object by setting a present value for the optionalrecurseattribute.ImmutableDeleteOptionswithRecurse(java.util.Optional<java.lang.Boolean> optional)Copy the current immutable object by setting an optional value for therecurseattribute.ImmutableDeleteOptionswithToHeaders(java.util.Map<java.lang.String,? extends java.lang.String> entries)Copy the current immutable object by replacing thetoHeadersmap with the specified map.-
Methods inherited from class com.orbitz.consul.option.DeleteOptions
toQuery
-
-
-
-
Method Detail
-
toHeaders
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> toHeaders()
- Returns:
- The value of the
toHeadersattribute
-
getCas
public java.util.Optional<java.lang.Long> getCas()
- Specified by:
getCasin classDeleteOptions- Returns:
- The value of the
casattribute
-
getRecurse
public java.util.Optional<java.lang.Boolean> getRecurse()
- Specified by:
getRecursein classDeleteOptions- Returns:
- The value of the
recurseattribute
-
getDatacenter
public java.util.Optional<java.lang.String> getDatacenter()
- Specified by:
getDatacenterin classDeleteOptions- Returns:
- The value of the
datacenterattribute
-
isRecurse
public boolean isRecurse()
- Overrides:
isRecursein classDeleteOptions- Returns:
- The computed-at-construction value of the
isRecurseattribute
-
withToHeaders
public final ImmutableDeleteOptions withToHeaders(java.util.Map<java.lang.String,? extends java.lang.String> entries)
Copy the current immutable object by replacing thetoHeadersmap 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 returningthis.- Parameters:
entries- The entries to be added to the toHeaders map- Returns:
- A modified copy of
thisobject
-
withCas
public final ImmutableDeleteOptions withCas(long value)
Copy the current immutable object by setting a present value for the optionalcasattribute.- Parameters:
value- The value for cas- Returns:
- A modified copy of
thisobject
-
withCas
public final ImmutableDeleteOptions withCas(java.util.Optional<java.lang.Long> optional)
Copy the current immutable object by setting an optional value for thecasattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for cas- Returns:
- A modified copy of
thisobject
-
withRecurse
public final ImmutableDeleteOptions withRecurse(boolean value)
Copy the current immutable object by setting a present value for the optionalrecurseattribute.- Parameters:
value- The value for recurse- Returns:
- A modified copy of
thisobject
-
withRecurse
public final ImmutableDeleteOptions withRecurse(java.util.Optional<java.lang.Boolean> optional)
Copy the current immutable object by setting an optional value for therecurseattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for recurse- Returns:
- A modified copy of
thisobject
-
withDatacenter
public final ImmutableDeleteOptions 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 ImmutableDeleteOptions 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
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableDeleteOptionsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:toHeaders,cas,recurse,datacenter,isRecurse.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueDeleteOptionswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableDeleteOptions copyOf(DeleteOptions instance)
Creates an immutable copy of aDeleteOptionsvalue. 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 DeleteOptions instance
-
builder
public static ImmutableDeleteOptions.Builder builder()
Creates a builder forImmutableDeleteOptions.ImmutableDeleteOptions.builder() .putToHeaders|putAllToHeaders(String => String) //toHeadersmappings .cas(Long) // optionalcas.recurse(Boolean) // optionalrecurse.datacenter(String) // optionaldatacenter.build();- Returns:
- A new ImmutableDeleteOptions builder
-
-