@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSessionInfo extends SessionInfo
SessionInfo.
Use the builder to create immutable instances:
ImmutableSessionInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSessionInfo.Builder
Builds instances of type
ImmutableSessionInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSessionInfo.Builder |
builder()
Creates a builder for
ImmutableSessionInfo. |
static ImmutableSessionInfo |
copyOf(SessionInfo instance)
Creates an immutable copy of a
SessionInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSessionInfo that have equal attribute values. |
String |
getBehavior() |
com.google.common.collect.ImmutableList<String> |
getChecks() |
long |
getCreateIndex() |
String |
getId() |
Long |
getLockDelay() |
Optional<String> |
getName() |
String |
getNode() |
Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
createIndex, lockDelay, name, node, checks, behavior, ttl, id. |
String |
toString()
Prints the immutable value
SessionInfo with attribute values. |
ImmutableSessionInfo |
withBehavior(String value)
Copy the current immutable object by setting a value for the
behavior attribute. |
ImmutableSessionInfo |
withChecks(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableSessionInfo |
withChecks(String... elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableSessionInfo |
withCreateIndex(long value)
Copy the current immutable object by setting a value for the
createIndex attribute. |
ImmutableSessionInfo |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableSessionInfo |
withLockDelay(Long value)
Copy the current immutable object by setting a value for the
lockDelay attribute. |
ImmutableSessionInfo |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableSessionInfo |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableSessionInfo |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableSessionInfo |
withTtl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
ttl attribute. |
ImmutableSessionInfo |
withTtl(String value)
Copy the current immutable object by setting a present value for the optional
ttl attribute. |
public long getCreateIndex()
getCreateIndex in class SessionInfocreateIndex attributepublic Long getLockDelay()
getLockDelay in class SessionInfolockDelay attributepublic Optional<String> getName()
getName in class SessionInfoname attributepublic String getNode()
getNode in class SessionInfonode attributepublic com.google.common.collect.ImmutableList<String> getChecks()
getChecks in class SessionInfochecks attributepublic String getBehavior()
getBehavior in class SessionInfobehavior attributepublic Optional<String> getTtl()
getTtl in class SessionInfottl attributepublic String getId()
getId in class SessionInfoid attributepublic final ImmutableSessionInfo withCreateIndex(long value)
createIndex attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for createIndexthis objectpublic final ImmutableSessionInfo withLockDelay(Long value)
lockDelay attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for lockDelaythis objectpublic final ImmutableSessionInfo withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableSessionInfo withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic final ImmutableSessionInfo withNode(String value)
node attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableSessionInfo withChecks(String... elements)
checks.elements - The elements to setthis objectpublic final ImmutableSessionInfo withChecks(Iterable<String> elements)
checks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of checks elements to setthis objectpublic final ImmutableSessionInfo withBehavior(String value)
behavior attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for behaviorthis objectpublic final ImmutableSessionInfo withTtl(String value)
ttl attribute.value - The value for ttlthis objectpublic final ImmutableSessionInfo withTtl(Optional<String> optional)
ttl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for ttlthis objectpublic final ImmutableSessionInfo 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)
ImmutableSessionInfo that have equal attribute values.public int hashCode()
createIndex, lockDelay, name, node, checks, behavior, ttl, id.public String toString()
SessionInfo with attribute values.public static ImmutableSessionInfo copyOf(SessionInfo instance)
SessionInfo 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 ImmutableSessionInfo.Builder builder()
ImmutableSessionInfo.
ImmutableSessionInfo.builder()
.createIndex(long) // required createIndex
.lockDelay(Long) // required lockDelay
.name(String) // optional name
.node(String) // required node
.addChecks|addAllChecks(String) // checks elements
.behavior(String) // required behavior
.ttl(String) // optional ttl
.id(String) // required id
.build();
Copyright © 2019. All rights reserved.