@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSessionCreatedResponse extends SessionCreatedResponse
SessionCreatedResponse.
Use the builder to create immutable instances:
ImmutableSessionCreatedResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSessionCreatedResponse.Builder
Builds instances of type
ImmutableSessionCreatedResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSessionCreatedResponse.Builder |
builder()
Creates a builder for
ImmutableSessionCreatedResponse. |
static ImmutableSessionCreatedResponse |
copyOf(SessionCreatedResponse instance)
Creates an immutable copy of a
SessionCreatedResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSessionCreatedResponse that have equal attribute values. |
String |
getId() |
int |
hashCode()
Computes a hash code from attributes:
id. |
String |
toString()
Prints the immutable value
SessionCreatedResponse with attribute values. |
ImmutableSessionCreatedResponse |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
public String getId()
getId in class SessionCreatedResponseid attributepublic final ImmutableSessionCreatedResponse withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic boolean equals(@Nullable Object another)
ImmutableSessionCreatedResponse that have equal attribute values.public int hashCode()
id.public String toString()
SessionCreatedResponse with attribute values.public static ImmutableSessionCreatedResponse copyOf(SessionCreatedResponse instance)
SessionCreatedResponse value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableSessionCreatedResponse.Builder builder()
ImmutableSessionCreatedResponse.
ImmutableSessionCreatedResponse.builder()
.id(String) // required id
.build();
Copyright © 2019. All rights reserved.