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().

  • Method Details

    • getOauth

      public List<String> getOauth()
      Specified by:
      getOauth in interface TokensRevokedIF
      Returns:
      The value of the oauth attribute
    • getBot

      public List<String> getBot()
      Specified by:
      getBot in interface TokensRevokedIF
      Returns:
      The value of the bot attribute
    • withOauth

      public final TokensRevoked withOauth(String... elements)
      Copy the current immutable object with elements that replace the content of oauth.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withOauth

      public final TokensRevoked withOauth(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of oauth. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of oauth elements to set
      Returns:
      A modified copy or this if not changed
    • withBot

      public final TokensRevoked withBot(String... elements)
      Copy the current immutable object with elements that replace the content of bot.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withBot

      public final TokensRevoked withBot(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of bot. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of bot elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of TokensRevoked that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: oauth, bot.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value TokensRevoked with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static TokensRevoked copyOf(TokensRevokedIF instance)
      Creates an immutable copy of a TokensRevokedIF value. 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

      public static TokensRevoked.Builder builder()
      Creates a builder for TokensRevoked.
       TokensRevoked.builder()
          .addOauth|addAllOauth(String) // oauth elements
          .addBot|addAllBot(String) // bot elements
          .build();
       
      Returns:
      A new TokensRevoked builder