@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackUserChangeEventIF"}) @Immutable public final class SlackUserChangeEvent extends Object implements SlackUserChangeEventIF
SlackUserChangeEventIF.
Use the builder to create immutable instances:
SlackUserChangeEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackUserChangeEvent.Builder
Builds instances of type
SlackUserChangeEvent. |
| Modifier and Type | Method and Description |
|---|---|
static SlackUserChangeEvent.Builder |
builder()
Creates a builder for
SlackUserChangeEvent. |
static SlackUserChangeEvent |
copyOf(SlackUserChangeEventIF instance)
Creates an immutable copy of a
SlackUserChangeEventIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackUserChangeEvent that have equal attribute values. |
SlackEventType |
getType() |
SlackUser |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
user, type. |
String |
toString()
Prints the immutable value
SlackUserChangeEvent with attribute values. |
SlackUserChangeEvent |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackUserChangeEvent |
withUser(SlackUser user)
Copy the current immutable object by setting a value for the
user attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTstoDetailedEventpublic SlackUser getUser()
getUser in interface SlackUserChangeEventIFuser attributepublic SlackEventType getType()
getType in interface SlackEventtype attributepublic final SlackUserChangeEvent withUser(SlackUser user)
user attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.user - A new value for userthis objectpublic final SlackUserChangeEvent withType(SlackEventType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
SlackUserChangeEvent that have equal attribute values.public int hashCode()
user, type.public String toString()
SlackUserChangeEvent with attribute values.public static SlackUserChangeEvent copyOf(SlackUserChangeEventIF instance)
SlackUserChangeEventIF 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 SlackUserChangeEvent.Builder builder()
SlackUserChangeEvent.Copyright © 2019. All rights reserved.