@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Session"}) @Immutable public final class ImmutableSession extends Session
Session.
Use the builder to create immutable instances:
ImmutableSession.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSession.Builder
Builds instances of type
ImmutableSession. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSession.Builder |
builder()
Creates a builder for
ImmutableSession. |
static ImmutableSession |
copyOf(Session instance)
Creates an immutable copy of a
Session value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSession that have equal attribute values. |
Optional<String> |
getBehavior() |
com.google.common.collect.ImmutableList<String> |
getChecks() |
Optional<String> |
getLockDelay() |
Optional<String> |
getName() |
Optional<String> |
getNode() |
Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
lockDelay, name, node, checks, behavior, ttl. |
String |
toString()
Prints the immutable value
Session with attribute values. |
ImmutableSession |
withBehavior(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
behavior attribute. |
ImmutableSession |
withBehavior(String value)
Copy the current immutable object by setting a present value for the optional
behavior attribute. |
ImmutableSession |
withChecks(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableSession |
withChecks(String... elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableSession |
withLockDelay(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
lockDelay attribute. |
ImmutableSession |
withLockDelay(String value)
Copy the current immutable object by setting a present value for the optional
lockDelay attribute. |
ImmutableSession |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableSession |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableSession |
withNode(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
node attribute. |
ImmutableSession |
withNode(String value)
Copy the current immutable object by setting a present value for the optional
node attribute. |
ImmutableSession |
withTtl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
ttl attribute. |
ImmutableSession |
withTtl(String value)
Copy the current immutable object by setting a present value for the optional
ttl attribute. |
public Optional<String> getLockDelay()
getLockDelay in class SessionlockDelay attributepublic com.google.common.collect.ImmutableList<String> getChecks()
public Optional<String> getBehavior()
getBehavior in class Sessionbehavior attributepublic final ImmutableSession withLockDelay(String value)
lockDelay attribute.value - The value for lockDelaythis objectpublic final ImmutableSession withLockDelay(Optional<String> optional)
lockDelay attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for lockDelaythis objectpublic final ImmutableSession withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableSession 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 ImmutableSession withNode(String value)
node attribute.value - The value for nodethis objectpublic final ImmutableSession withNode(Optional<String> optional)
node attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for nodethis objectpublic final ImmutableSession withChecks(String... elements)
checks.elements - The elements to setthis objectpublic final ImmutableSession 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 ImmutableSession withBehavior(String value)
behavior attribute.value - The value for behaviorthis objectpublic final ImmutableSession withBehavior(Optional<String> optional)
behavior attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for behaviorthis objectpublic final ImmutableSession withTtl(String value)
ttl attribute.value - The value for ttlthis objectpublic final ImmutableSession 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 boolean equals(@Nullable Object another)
ImmutableSession that have equal attribute values.public int hashCode()
lockDelay, name, node, checks, behavior, ttl.public String toString()
Session with attribute values.public static ImmutableSession copyOf(Session instance)
Session 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 ImmutableSession.Builder builder()
ImmutableSession.Copyright © 2018. All rights reserved.