Package com.orbitz.consul.model.session
Class ImmutableSessionCreatedResponse
- java.lang.Object
-
- com.orbitz.consul.model.session.SessionCreatedResponse
-
- com.orbitz.consul.model.session.ImmutableSessionCreatedResponse
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSessionCreatedResponse extends SessionCreatedResponseImmutable implementation ofSessionCreatedResponse.Use the builder to create immutable instances:
ImmutableSessionCreatedResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSessionCreatedResponse.BuilderBuilds instances of typeImmutableSessionCreatedResponse.
-
Method Summary
Modifier and Type Method Description static ImmutableSessionCreatedResponse.Builderbuilder()Creates a builder forImmutableSessionCreatedResponse.static ImmutableSessionCreatedResponsecopyOf(SessionCreatedResponse instance)Creates an immutable copy of aSessionCreatedResponsevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableSessionCreatedResponsethat have equal attribute values.java.lang.StringgetId()inthashCode()Computes a hash code from attributes:id.java.lang.StringtoString()Prints the immutable valueSessionCreatedResponsewith attribute values.ImmutableSessionCreatedResponsewithId(java.lang.String value)Copy the current immutable object by setting a value for theidattribute.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin classSessionCreatedResponse- Returns:
- The value of the
idattribute
-
withId
public final ImmutableSessionCreatedResponse withId(java.lang.String value)
Copy the current immutable object by setting a value for theidattribute. 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
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableSessionCreatedResponsethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:id.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueSessionCreatedResponsewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableSessionCreatedResponse copyOf(SessionCreatedResponse instance)
Creates an immutable copy of aSessionCreatedResponsevalue. 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
public static ImmutableSessionCreatedResponse.Builder builder()
Creates a builder forImmutableSessionCreatedResponse.ImmutableSessionCreatedResponse.builder() .id(String) // requiredid.build();- Returns:
- A new ImmutableSessionCreatedResponse builder
-
-