Class TokensRevoked
java.lang.Object
com.hubspot.slack.client.models.events.app.TokensRevoked
- All Implemented Interfaces:
TokensRevokedIF
@Generated(from="TokensRevokedIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class TokensRevoked
extends Object
implements TokensRevokedIF
Immutable implementation of
TokensRevokedIF.
Use the builder to create immutable instances:
TokensRevoked.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TokensRevoked.Builderbuilder()Creates a builder forTokensRevoked.static TokensRevokedcopyOf(TokensRevokedIF instance) Creates an immutable copy of aTokensRevokedIFvalue.booleanThis instance is equal to all instances ofTokensRevokedthat have equal attribute values.getBot()getOauth()inthashCode()Computes a hash code from attributes:oauth,bot.toString()Prints the immutable valueTokensRevokedwith attribute values.final TokensRevokedCopy the current immutable object with elements that replace the content ofbot.final TokensRevokedCopy the current immutable object with elements that replace the content ofbot.final TokensRevokedCopy the current immutable object with elements that replace the content ofoauth.final TokensRevokedCopy the current immutable object with elements that replace the content ofoauth.
-
Method Details
-
getOauth
- Specified by:
getOauthin interfaceTokensRevokedIF- Returns:
- The value of the
oauthattribute
-
getBot
- Specified by:
getBotin interfaceTokensRevokedIF- Returns:
- The value of the
botattribute
-
withOauth
Copy the current immutable object with elements that replace the content ofoauth.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOauth
Copy the current immutable object with elements that replace the content ofoauth. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of oauth elements to set- Returns:
- A modified copy or
thisif not changed
-
withBot
Copy the current immutable object with elements that replace the content ofbot.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBot
Copy the current immutable object with elements that replace the content ofbot. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of bot elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofTokensRevokedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:oauth,bot. -
toString
Prints the immutable valueTokensRevokedwith attribute values. -
copyOf
Creates an immutable copy of aTokensRevokedIFvalue. 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 TokensRevoked instance
-
builder
Creates a builder forTokensRevoked.TokensRevoked.builder() .addOauth|addAllOauth(String) //oauthelements .addBot|addAllBot(String) //botelements .build();- Returns:
- A new TokensRevoked builder
-