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