@NotThreadSafe public static final class BotCredentials.Builder extends Object
BotCredentials.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
BotCredentials |
build()
Builds a new
BotCredentials. |
BotCredentials.Builder |
from(BotCredentialsIF instance)
Fill a builder with attribute values from the provided
BotCredentialsIF instance. |
BotCredentials.Builder |
setBotAccessToken(String botAccessToken)
Initializes the value for the
botAccessToken attribute. |
BotCredentials.Builder |
setBotUserId(String botUserId)
Initializes the value for the
botUserId attribute. |
public final BotCredentials.Builder from(BotCredentialsIF instance)
BotCredentialsIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BotCredentials.Builder setBotUserId(String botUserId)
botUserId attribute.botUserId - The value for botUserIdthis builder for use in a chained invocationpublic final BotCredentials.Builder setBotAccessToken(String botAccessToken)
botAccessToken attribute.botAccessToken - The value for botAccessTokenthis builder for use in a chained invocationpublic BotCredentials build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
BotCredentials.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.