Class ImmutableSessionCreatedResponse
java.lang.Object
org.kiwiproject.consul.model.session.SessionCreatedResponse
org.kiwiproject.consul.model.session.ImmutableSessionCreatedResponse
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSessionCreatedResponse
extends SessionCreatedResponse
Immutable implementation of
SessionCreatedResponse
.
Use the builder to create immutable instances:
ImmutableSessionCreatedResponse.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSessionCreatedResponse
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSessionCreatedResponse
.copyOf
(SessionCreatedResponse instance) Creates an immutable copy of aSessionCreatedResponse
value.boolean
This instance is equal to all instances ofImmutableSessionCreatedResponse
that have equal attribute values.getId()
int
hashCode()
Computes a hash code from attributes:id
.toString()
Prints the immutable valueSessionCreatedResponse
with attribute values.Copy the current immutable object by setting a value for theid
attribute.
-
Method Details
-
getId
- Specified by:
getId
in classSessionCreatedResponse
- Returns:
- The value of the
id
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSessionCreatedResponse
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
. -
toString
Prints the immutable valueSessionCreatedResponse
with attribute values. -
copyOf
Creates an immutable copy of aSessionCreatedResponse
value. 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 SessionCreatedResponse instance
-
builder
Creates a builder forImmutableSessionCreatedResponse
.ImmutableSessionCreatedResponse.builder() .id(String) // required
id
.build();- Returns:
- A new ImmutableSessionCreatedResponse builder
-