@NotThreadSafe public static final class SlackClientRuntimeConfig.Builder extends Object
SlackClientRuntimeConfig.
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.
public final SlackClientRuntimeConfig.Builder from(SlackClientRuntimeConfigIF instance)
SlackClientRuntimeConfigIF 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 SlackClientRuntimeConfig.Builder setTokenSupplier(Supplier<String> tokenSupplier)
tokenSupplier attribute.tokenSupplier - The value for tokenSupplierthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setSlackApiBasePath(Supplier<String> slackApiBasePath)
slackApiBasePath attribute.
If not set, this attribute will have a default value as returned by the initializer of slackApiBasePath.
slackApiBasePath - The value for slackApiBasePaththis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setUsersListBatchSize(Supplier<Integer> usersListBatchSize)
usersListBatchSize attribute.
If not set, this attribute will have a default value as returned by the initializer of usersListBatchSize.
usersListBatchSize - The value for usersListBatchSizethis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setChannelsListBatchSize(Supplier<Integer> channelsListBatchSize)
channelsListBatchSize attribute.
If not set, this attribute will have a default value as returned by the initializer of channelsListBatchSize.
channelsListBatchSize - The value for channelsListBatchSizethis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setChannelsHistoryMessageBatchSize(Supplier<Integer> channelsHistoryMessageBatchSize)
channelsHistoryMessageBatchSize attribute.
If not set, this attribute will have a default value as returned by the initializer of channelsHistoryMessageBatchSize.
channelsHistoryMessageBatchSize - The value for channelsHistoryMessageBatchSizethis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setConversationsHistoryMessageBatchSize(Supplier<Integer> conversationsHistoryMessageBatchSize)
conversationsHistoryMessageBatchSize attribute.
If not set, this attribute will have a default value as returned by the initializer of conversationsHistoryMessageBatchSize.
conversationsHistoryMessageBatchSize - The value for conversationsHistoryMessageBatchSizethis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setConversationMembersBatchSize(Supplier<Integer> conversationMembersBatchSize)
conversationMembersBatchSize attribute.
If not set, this attribute will have a default value as returned by the initializer of conversationMembersBatchSize.
conversationMembersBatchSize - The value for conversationMembersBatchSizethis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setSlackRateLimiter(@Nullable SlackRateLimiter slackRateLimiter)
slackRateLimiter to slackRateLimiter.slackRateLimiter - The value for slackRateLimiter, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setSlackRateLimiter(Optional<SlackRateLimiter> slackRateLimiter)
slackRateLimiter to slackRateLimiter.slackRateLimiter - The value for slackRateLimiterthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setHttpConfig(@Nullable com.hubspot.horizon.HttpConfig httpConfig)
httpConfig to httpConfig.httpConfig - The value for httpConfig, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setHttpConfig(Optional<com.hubspot.horizon.HttpConfig> httpConfig)
httpConfig to httpConfig.httpConfig - The value for httpConfigthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setHttpClient(@Nullable NioHttpClient httpClient)
httpClient to httpClient.httpClient - The value for httpClient, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setHttpClient(Optional<NioHttpClient> httpClient)
httpClient to httpClient.httpClient - The value for httpClientthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setMethodFilter(@Nullable SlackMethodAcceptor methodFilter)
methodFilter to methodFilter.methodFilter - The value for methodFilter, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setMethodFilter(Optional<SlackMethodAcceptor> methodFilter)
methodFilter to methodFilter.methodFilter - The value for methodFilterthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setRequestDebugger(@Nullable RequestDebugger requestDebugger)
requestDebugger to requestDebugger.requestDebugger - The value for requestDebugger, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setRequestDebugger(Optional<RequestDebugger> requestDebugger)
requestDebugger to requestDebugger.requestDebugger - The value for requestDebuggerthis builder for use in a chained invocationpublic final SlackClientRuntimeConfig.Builder setResponseDebugger(@Nullable ResponseDebugger responseDebugger)
responseDebugger to responseDebugger.responseDebugger - The value for responseDebugger, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackClientRuntimeConfig.Builder setResponseDebugger(Optional<ResponseDebugger> responseDebugger)
responseDebugger to responseDebugger.responseDebugger - The value for responseDebuggerthis builder for use in a chained invocationpublic SlackClientRuntimeConfig build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackClientRuntimeConfig.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.