Class SlackTokensRevokedEvent
java.lang.Object
com.hubspot.slack.client.models.events.app.SlackTokensRevokedEvent
- All Implemented Interfaces:
SlackTokensRevokedEventIF,SlackEvent
@Generated(from="SlackTokensRevokedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackTokensRevokedEvent
extends Object
implements SlackTokensRevokedEventIF
Immutable implementation of
SlackTokensRevokedEventIF.
Use the builder to create immutable instances:
SlackTokensRevokedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackTokensRevokedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackTokensRevokedEvent.static SlackTokensRevokedEventcopyOf(SlackTokensRevokedEventIF instance) Creates an immutable copy of aSlackTokensRevokedEventIFvalue.booleanThis instance is equal to all instances ofSlackTokensRevokedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,tokens.toString()Prints the immutable valueSlackTokensRevokedEventwith attribute values.final SlackTokensRevokedEventwithTokens(TokensRevoked value) Copy the current immutable object by setting a value for thetokensattribute.final SlackTokensRevokedEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.events.app.SlackTokensRevokedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getTokens
- Specified by:
getTokensin interfaceSlackTokensRevokedEventIF- Returns:
- The value of the
tokensattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withTokens
Copy the current immutable object by setting a value for thetokensattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tokens- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackTokensRevokedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,tokens. -
toString
Prints the immutable valueSlackTokensRevokedEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackTokensRevokedEventIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SlackTokensRevokedEvent instance
-
builder
Creates a builder forSlackTokensRevokedEvent.SlackTokensRevokedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setTokens(com.hubspot.slack.client.models.events.app.TokensRevoked) // requiredtokens.build();- Returns:
- A new SlackTokensRevokedEvent builder
-