@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","BotCredentialsIF"}) @Immutable public final class BotCredentials extends Object implements BotCredentialsIF
BotCredentialsIF.
Use the builder to create immutable instances:
BotCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
BotCredentials.Builder
Builds instances of type
BotCredentials. |
| Modifier and Type | Method and Description |
|---|---|
static BotCredentials.Builder |
builder()
Creates a builder for
BotCredentials. |
static BotCredentials |
copyOf(BotCredentialsIF instance)
Creates an immutable copy of a
BotCredentialsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
BotCredentials that have equal attribute values. |
String |
getBotAccessToken() |
String |
getBotUserId() |
int |
hashCode()
Computes a hash code from attributes:
botUserId, botAccessToken. |
String |
toString()
Prints the immutable value
BotCredentials with attribute values. |
BotCredentials |
withBotAccessToken(String botAccessToken)
Copy the current immutable object by setting a value for the
botAccessToken attribute. |
BotCredentials |
withBotUserId(String botUserId)
Copy the current immutable object by setting a value for the
botUserId attribute. |
public String getBotUserId()
getBotUserId in interface BotCredentialsIFbotUserId attributepublic String getBotAccessToken()
getBotAccessToken in interface BotCredentialsIFbotAccessToken attributepublic final BotCredentials withBotUserId(String botUserId)
botUserId attribute.
An equals check used to prevent copying of the same value by returning this.botUserId - A new value for botUserIdthis objectpublic final BotCredentials withBotAccessToken(String botAccessToken)
botAccessToken attribute.
An equals check used to prevent copying of the same value by returning this.botAccessToken - A new value for botAccessTokenthis objectpublic boolean equals(@Nullable Object another)
BotCredentials that have equal attribute values.public int hashCode()
botUserId, botAccessToken.public String toString()
BotCredentials with attribute values.public static BotCredentials copyOf(BotCredentialsIF instance)
BotCredentialsIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static BotCredentials.Builder builder()
BotCredentials.Copyright © 2019. All rights reserved.