Package org.kiwiproject.consul.option
Class ImmutableDeleteOptions
java.lang.Object
org.kiwiproject.consul.option.DeleteOptions
org.kiwiproject.consul.option.ImmutableDeleteOptions
- All Implemented Interfaces:
ParamAdder
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableDeleteOptions
extends DeleteOptions
Immutable implementation of
DeleteOptions.
Use the builder to create immutable instances:
ImmutableDeleteOptions.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDeleteOptions. -
Field Summary
Fields inherited from class org.kiwiproject.consul.option.DeleteOptions
BLANK, RECURSE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDeleteOptions.static ImmutableDeleteOptionscopyOf(DeleteOptions instance) Creates an immutable copy of aDeleteOptionsvalue.booleanThis instance is equal to all instances ofImmutableDeleteOptionsthat have equal attribute values.getCas()inthashCode()Computes a hash code from attributes:toQueryParameters,toHeaders,cas,recurse,datacenter,isRecurse.booleancom.google.common.collect.ImmutableList<String>toString()Prints the immutable valueDeleteOptionswith attribute values.final ImmutableDeleteOptionswithCas(long value) Copy the current immutable object by setting a present value for the optionalcasattribute.final ImmutableDeleteOptionsCopy the current immutable object by setting an optional value for thecasattribute.final ImmutableDeleteOptionswithDatacenter(String value) Copy the current immutable object by setting a present value for the optionaldatacenterattribute.final ImmutableDeleteOptionswithDatacenter(Optional<String> optional) Copy the current immutable object by setting an optional value for thedatacenterattribute.final ImmutableDeleteOptionswithRecurse(boolean value) Copy the current immutable object by setting a present value for the optionalrecurseattribute.final ImmutableDeleteOptionswithRecurse(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for therecurseattribute.final ImmutableDeleteOptionswithToHeaders(Map<String, ? extends String> entries) Copy the current immutable object by replacing thetoHeadersmap with the specified map.final ImmutableDeleteOptionswithToQueryParameters(Iterable<String> elements) Copy the current immutable object with elements that replace the content oftoQueryParameters.final ImmutableDeleteOptionswithToQueryParameters(String... elements) Copy the current immutable object with elements that replace the content oftoQueryParameters.Methods inherited from class org.kiwiproject.consul.option.DeleteOptions
toQuery
-
Method Details
-
toQueryParameters
- Returns:
- The value of the
toQueryParametersattribute
-
toHeaders
- Returns:
- The value of the
toHeadersattribute
-
getCas
- Specified by:
getCasin classDeleteOptions- Returns:
- The value of the
casattribute
-
getRecurse
- Specified by:
getRecursein classDeleteOptions- Returns:
- The value of the
recurseattribute
-
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
-
withToQueryParameters
Copy the current immutable object with elements that replace the content oftoQueryParameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withToQueryParameters
Copy the current immutable object with elements that replace the content oftoQueryParameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of toQueryParameters elements to set- Returns:
- A modified copy of
thisobject
-
withToHeaders
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
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
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
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
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
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
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
This instance is equal to all instances ofImmutableDeleteOptionsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:toQueryParameters,toHeaders,cas,recurse,datacenter,isRecurse. -
toString
Prints the immutable valueDeleteOptionswith attribute values. -
copyOf
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
Creates a builder forImmutableDeleteOptions.ImmutableDeleteOptions.builder() .addToQueryParameters|addAllToQueryParameters(String) //toQueryParameterselements .putToHeaders|putAllToHeaders(String => String) //toHeadersmappings .cas(Long) // optionalcas.recurse(Boolean) // optionalrecurse.datacenter(String) // optionaldatacenter.build();- Returns:
- A new ImmutableDeleteOptions builder
-