Class BotCredentials

java.lang.Object
com.hubspot.slack.client.models.auth.BotCredentials
All Implemented Interfaces:
BotCredentialsIF

@Generated(from="BotCredentialsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class BotCredentials extends Object implements BotCredentialsIF
Immutable implementation of BotCredentialsIF.

Use the builder to create immutable instances: BotCredentials.builder().

  • Method Details

    • getBotUserId

      public String getBotUserId()
      Specified by:
      getBotUserId in interface BotCredentialsIF
      Returns:
      The value of the botUserId attribute
    • getBotAccessToken

      public String getBotAccessToken()
      Specified by:
      getBotAccessToken in interface BotCredentialsIF
      Returns:
      The value of the botAccessToken attribute
    • withBotUserId

      public final BotCredentials withBotUserId(String value)
      Copy the current immutable object by setting a value for the botUserId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for botUserId
      Returns:
      A modified copy or the this object
    • withBotAccessToken

      public final BotCredentials withBotAccessToken(String value)
      Copy the current immutable object by setting a value for the botAccessToken attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for botAccessToken
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of BotCredentials 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: botUserId, botAccessToken.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static BotCredentials copyOf(BotCredentialsIF instance)
      Creates an immutable copy of a BotCredentialsIF 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 BotCredentials instance
    • builder

      public static BotCredentials.Builder builder()
      Creates a builder for BotCredentials.
       BotCredentials.builder()
          .setBotUserId(String) // required botUserId
          .setBotAccessToken(String) // required botAccessToken
          .build();
       
      Returns:
      A new BotCredentials builder