@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackUserLiteIF"}) @Immutable public final class SlackUserLite extends Object implements SlackUserLiteIF
SlackUserLiteIF.
Use the builder to create immutable instances:
SlackUserLite.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackUserLite.Builder
Builds instances of type
SlackUserLite. |
| Modifier and Type | Method and Description |
|---|---|
static SlackUserLite.Builder |
builder()
Creates a builder for
SlackUserLite. |
static SlackUserLite |
copyOf(SlackUserLiteIF instance)
Creates an immutable copy of a
SlackUserLiteIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackUserLite that have equal attribute values. |
String |
getId() |
Optional<String> |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
id, username. |
String |
toString()
Prints the immutable value
SlackUserLite with attribute values. |
SlackUserLite |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackUserLite |
withUsername(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
username attribute. |
SlackUserLite |
withUsername(String value)
Copy the current immutable object by setting a present value for the optional
username attribute. |
public String getId()
getId in interface SlackUserCoreid attributepublic Optional<String> getUsername()
getUsername in interface SlackUserCoreusername attributepublic final SlackUserLite withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackUserLite withUsername(@Nullable String value)
username attribute.value - The value for username, null is accepted as java.util.Optional.empty()this objectpublic final SlackUserLite withUsername(Optional<String> optional)
username attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for usernamethis objectpublic boolean equals(@Nullable Object another)
SlackUserLite that have equal attribute values.public int hashCode()
id, username.public String toString()
SlackUserLite with attribute values.public static SlackUserLite copyOf(SlackUserLiteIF instance)
SlackUserLiteIF 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 SlackUserLite.Builder builder()
SlackUserLite.Copyright © 2019. All rights reserved.