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().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BotCredentials.Builderbuilder()Creates a builder forBotCredentials.static BotCredentialscopyOf(BotCredentialsIF instance) Creates an immutable copy of aBotCredentialsIFvalue.booleanThis instance is equal to all instances ofBotCredentialsthat have equal attribute values.inthashCode()Computes a hash code from attributes:botUserId,botAccessToken.toString()Prints the immutable valueBotCredentialswith attribute values.final BotCredentialswithBotAccessToken(String value) Copy the current immutable object by setting a value for thebotAccessTokenattribute.final BotCredentialswithBotUserId(String value) Copy the current immutable object by setting a value for thebotUserIdattribute.
-
Method Details
-
getBotUserId
- Specified by:
getBotUserIdin interfaceBotCredentialsIF- Returns:
- The value of the
botUserIdattribute
-
getBotAccessToken
- Specified by:
getBotAccessTokenin interfaceBotCredentialsIF- Returns:
- The value of the
botAccessTokenattribute
-
withBotUserId
Copy the current immutable object by setting a value for thebotUserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for botUserId- Returns:
- A modified copy or the
thisobject
-
withBotAccessToken
Copy the current immutable object by setting a value for thebotAccessTokenattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for botAccessToken- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofBotCredentialsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:botUserId,botAccessToken. -
toString
Prints the immutable valueBotCredentialswith attribute values. -
copyOf
Creates an immutable copy of aBotCredentialsIFvalue. 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
Creates a builder forBotCredentials.BotCredentials.builder() .setBotUserId(String) // requiredbotUserId.setBotAccessToken(String) // requiredbotAccessToken.build();- Returns:
- A new BotCredentials builder
-