@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackEventWrapperIF<T>"}) @Immutable public final class SlackEventWrapper<T extends SlackEvent> extends Object implements SlackEventWrapperIF<T>
SlackEventWrapperIF.
Use the builder to create immutable instances:
SlackEventWrapper.<T>builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventWrapper.Builder<T extends SlackEvent>
Builds instances of type
SlackEventWrapper. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends SlackEvent> |
builder()
Creates a builder for
SlackEventWrapper. |
static <T extends SlackEvent> |
copyOf(SlackEventWrapperIF<T> instance)
Creates an immutable copy of a
SlackEventWrapperIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventWrapper that have equal attribute values. |
List<String> |
getAuthedUsers() |
T |
getEvent() |
String |
getEventId() |
String |
getEventTime() |
String |
getTeamId() |
String |
getToken() |
SlackEventType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
token, teamId, type, authedUsers, eventId, eventTime, event. |
String |
toString()
Prints the immutable value
SlackEventWrapper with attribute values. |
SlackEventWrapper<T> |
withAuthedUsers(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
authedUsers. |
SlackEventWrapper<T> |
withAuthedUsers(String... elements)
Copy the current immutable object with elements that replace the content of
authedUsers. |
SlackEventWrapper<T> |
withEvent(T event)
Copy the current immutable object by setting a value for the
event attribute. |
SlackEventWrapper<T> |
withEventId(String eventId)
Copy the current immutable object by setting a value for the
eventId attribute. |
SlackEventWrapper<T> |
withEventTime(String eventTime)
Copy the current immutable object by setting a value for the
eventTime attribute. |
SlackEventWrapper<T> |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
SlackEventWrapper<T> |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
SlackEventWrapper<T> |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
public String getToken()
getToken in interface SlackEventWrapperIF<T extends SlackEvent>token attributepublic String getTeamId()
getTeamId in interface SlackEventWrapperIF<T extends SlackEvent>teamId attributepublic SlackEventType getType()
getType in interface SlackEventWrapperIF<T extends SlackEvent>type attributepublic List<String> getAuthedUsers()
getAuthedUsers in interface SlackEventWrapperIF<T extends SlackEvent>authedUsers attributepublic String getEventId()
getEventId in interface SlackEventWrapperIF<T extends SlackEvent>eventId attributepublic String getEventTime()
getEventTime in interface SlackEventWrapperIF<T extends SlackEvent>eventTime attributepublic T getEvent()
getEvent in interface SlackEventWrapperIF<T extends SlackEvent>event attributepublic final SlackEventWrapper<T> withToken(String token)
token attribute.
An equals check used to prevent copying of the same value by returning this.token - A new value for tokenthis objectpublic final SlackEventWrapper<T> withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final SlackEventWrapper<T> 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 final SlackEventWrapper<T> withAuthedUsers(String... elements)
authedUsers.elements - The elements to setthis objectpublic final SlackEventWrapper<T> withAuthedUsers(Iterable<String> elements)
authedUsers.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of authedUsers elements to setthis objectpublic final SlackEventWrapper<T> withEventId(String eventId)
eventId attribute.
An equals check used to prevent copying of the same value by returning this.eventId - A new value for eventIdthis objectpublic final SlackEventWrapper<T> withEventTime(String eventTime)
eventTime attribute.
An equals check used to prevent copying of the same value by returning this.eventTime - A new value for eventTimethis objectpublic final SlackEventWrapper<T> withEvent(T event)
event attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.event - A new value for eventthis objectpublic boolean equals(@Nullable Object another)
SlackEventWrapper that have equal attribute values.public int hashCode()
token, teamId, type, authedUsers, eventId, eventTime, event.public String toString()
SlackEventWrapper with attribute values.public static <T extends SlackEvent> SlackEventWrapper<T> copyOf(SlackEventWrapperIF<T> instance)
SlackEventWrapperIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T extends SlackEvent> SlackEventWrapper.Builder<T> builder()
SlackEventWrapper.T - generic parameter TCopyright © 2019. All rights reserved.