@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackClientRuntimeConfigIF"}) @Immutable public final class SlackClientRuntimeConfig extends Object implements SlackClientRuntimeConfigIF
SlackClientRuntimeConfigIF.
Use the builder to create immutable instances:
SlackClientRuntimeConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackClientRuntimeConfig.Builder
Builds instances of type
SlackClientRuntimeConfig. |
| Modifier and Type | Method and Description |
|---|---|
static SlackClientRuntimeConfig.Builder |
builder()
Creates a builder for
SlackClientRuntimeConfig. |
static SlackClientRuntimeConfig |
copyOf(SlackClientRuntimeConfigIF instance)
Creates an immutable copy of a
SlackClientRuntimeConfigIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackClientRuntimeConfig that have equal attribute values. |
Supplier<Integer> |
getChannelsHistoryMessageBatchSize() |
Supplier<Integer> |
getChannelsListBatchSize() |
Supplier<Integer> |
getConversationMembersBatchSize() |
Supplier<Integer> |
getConversationsHistoryMessageBatchSize() |
Optional<NioHttpClient> |
getHttpClient() |
Optional<com.hubspot.horizon.HttpConfig> |
getHttpConfig() |
Optional<SlackMethodAcceptor> |
getMethodFilter() |
Optional<RequestDebugger> |
getRequestDebugger() |
Optional<ResponseDebugger> |
getResponseDebugger() |
Supplier<String> |
getSlackApiBasePath() |
Optional<SlackRateLimiter> |
getSlackRateLimiter() |
Supplier<String> |
getTokenSupplier() |
Supplier<Integer> |
getUsersListBatchSize() |
int |
hashCode()
Computes a hash code from attributes:
tokenSupplier, slackApiBasePath, usersListBatchSize, channelsListBatchSize, channelsHistoryMessageBatchSize, conversationsHistoryMessageBatchSize, conversationMembersBatchSize, slackRateLimiter, httpConfig, httpClient, methodFilter, requestDebugger, responseDebugger. |
String |
toString()
Prints the immutable value
SlackClientRuntimeConfig with attribute values. |
SlackClientRuntimeConfig |
withChannelsHistoryMessageBatchSize(Supplier<Integer> channelsHistoryMessageBatchSize)
Copy the current immutable object by setting a value for the
channelsHistoryMessageBatchSize attribute. |
SlackClientRuntimeConfig |
withChannelsListBatchSize(Supplier<Integer> channelsListBatchSize)
Copy the current immutable object by setting a value for the
channelsListBatchSize attribute. |
SlackClientRuntimeConfig |
withConversationMembersBatchSize(Supplier<Integer> conversationMembersBatchSize)
Copy the current immutable object by setting a value for the
conversationMembersBatchSize attribute. |
SlackClientRuntimeConfig |
withConversationsHistoryMessageBatchSize(Supplier<Integer> conversationsHistoryMessageBatchSize)
Copy the current immutable object by setting a value for the
conversationsHistoryMessageBatchSize attribute. |
SlackClientRuntimeConfig |
withHttpClient(NioHttpClient value)
Copy the current immutable object by setting a present value for the optional
httpClient attribute. |
SlackClientRuntimeConfig |
withHttpClient(Optional<NioHttpClient> optional)
Copy the current immutable object by setting an optional value for the
httpClient attribute. |
SlackClientRuntimeConfig |
withHttpConfig(com.hubspot.horizon.HttpConfig value)
Copy the current immutable object by setting a present value for the optional
httpConfig attribute. |
SlackClientRuntimeConfig |
withHttpConfig(Optional<com.hubspot.horizon.HttpConfig> optional)
Copy the current immutable object by setting an optional value for the
httpConfig attribute. |
SlackClientRuntimeConfig |
withMethodFilter(Optional<SlackMethodAcceptor> optional)
Copy the current immutable object by setting an optional value for the
methodFilter attribute. |
SlackClientRuntimeConfig |
withMethodFilter(SlackMethodAcceptor value)
Copy the current immutable object by setting a present value for the optional
methodFilter attribute. |
SlackClientRuntimeConfig |
withRequestDebugger(Optional<RequestDebugger> optional)
Copy the current immutable object by setting an optional value for the
requestDebugger attribute. |
SlackClientRuntimeConfig |
withRequestDebugger(RequestDebugger value)
Copy the current immutable object by setting a present value for the optional
requestDebugger attribute. |
SlackClientRuntimeConfig |
withResponseDebugger(Optional<ResponseDebugger> optional)
Copy the current immutable object by setting an optional value for the
responseDebugger attribute. |
SlackClientRuntimeConfig |
withResponseDebugger(ResponseDebugger value)
Copy the current immutable object by setting a present value for the optional
responseDebugger attribute. |
SlackClientRuntimeConfig |
withSlackApiBasePath(Supplier<String> slackApiBasePath)
Copy the current immutable object by setting a value for the
slackApiBasePath attribute. |
SlackClientRuntimeConfig |
withSlackRateLimiter(Optional<SlackRateLimiter> optional)
Copy the current immutable object by setting an optional value for the
slackRateLimiter attribute. |
SlackClientRuntimeConfig |
withSlackRateLimiter(SlackRateLimiter value)
Copy the current immutable object by setting a present value for the optional
slackRateLimiter attribute. |
SlackClientRuntimeConfig |
withTokenSupplier(Supplier<String> tokenSupplier)
Copy the current immutable object by setting a value for the
tokenSupplier attribute. |
SlackClientRuntimeConfig |
withUsersListBatchSize(Supplier<Integer> usersListBatchSize)
Copy the current immutable object by setting a value for the
usersListBatchSize attribute. |
public Supplier<String> getTokenSupplier()
getTokenSupplier in interface SlackClientRuntimeConfigIFtokenSupplier attributepublic Supplier<String> getSlackApiBasePath()
getSlackApiBasePath in interface SlackClientRuntimeConfigIFslackApiBasePath attributepublic Supplier<Integer> getUsersListBatchSize()
getUsersListBatchSize in interface SlackClientRuntimeConfigIFusersListBatchSize attributepublic Supplier<Integer> getChannelsListBatchSize()
getChannelsListBatchSize in interface SlackClientRuntimeConfigIFchannelsListBatchSize attributepublic Supplier<Integer> getChannelsHistoryMessageBatchSize()
getChannelsHistoryMessageBatchSize in interface SlackClientRuntimeConfigIFchannelsHistoryMessageBatchSize attributepublic Supplier<Integer> getConversationsHistoryMessageBatchSize()
getConversationsHistoryMessageBatchSize in interface SlackClientRuntimeConfigIFconversationsHistoryMessageBatchSize attributepublic Supplier<Integer> getConversationMembersBatchSize()
getConversationMembersBatchSize in interface SlackClientRuntimeConfigIFconversationMembersBatchSize attributepublic Optional<SlackRateLimiter> getSlackRateLimiter()
getSlackRateLimiter in interface SlackClientRuntimeConfigIFslackRateLimiter attributepublic Optional<com.hubspot.horizon.HttpConfig> getHttpConfig()
getHttpConfig in interface SlackClientRuntimeConfigIFhttpConfig attributepublic Optional<NioHttpClient> getHttpClient()
getHttpClient in interface SlackClientRuntimeConfigIFhttpClient attributepublic Optional<SlackMethodAcceptor> getMethodFilter()
getMethodFilter in interface SlackClientRuntimeConfigIFmethodFilter attributepublic Optional<RequestDebugger> getRequestDebugger()
getRequestDebugger in interface SlackClientRuntimeConfigIFrequestDebugger attributepublic Optional<ResponseDebugger> getResponseDebugger()
getResponseDebugger in interface SlackClientRuntimeConfigIFresponseDebugger attributepublic final SlackClientRuntimeConfig withTokenSupplier(Supplier<String> tokenSupplier)
tokenSupplier attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.tokenSupplier - A new value for tokenSupplierthis objectpublic final SlackClientRuntimeConfig withSlackApiBasePath(Supplier<String> slackApiBasePath)
slackApiBasePath attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.slackApiBasePath - A new value for slackApiBasePaththis objectpublic final SlackClientRuntimeConfig withUsersListBatchSize(Supplier<Integer> usersListBatchSize)
usersListBatchSize attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.usersListBatchSize - A new value for usersListBatchSizethis objectpublic final SlackClientRuntimeConfig withChannelsListBatchSize(Supplier<Integer> channelsListBatchSize)
channelsListBatchSize attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.channelsListBatchSize - A new value for channelsListBatchSizethis objectpublic final SlackClientRuntimeConfig withChannelsHistoryMessageBatchSize(Supplier<Integer> channelsHistoryMessageBatchSize)
channelsHistoryMessageBatchSize attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.channelsHistoryMessageBatchSize - A new value for channelsHistoryMessageBatchSizethis objectpublic final SlackClientRuntimeConfig withConversationsHistoryMessageBatchSize(Supplier<Integer> conversationsHistoryMessageBatchSize)
conversationsHistoryMessageBatchSize attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.conversationsHistoryMessageBatchSize - A new value for conversationsHistoryMessageBatchSizethis objectpublic final SlackClientRuntimeConfig withConversationMembersBatchSize(Supplier<Integer> conversationMembersBatchSize)
conversationMembersBatchSize attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.conversationMembersBatchSize - A new value for conversationMembersBatchSizethis objectpublic final SlackClientRuntimeConfig withSlackRateLimiter(@Nullable SlackRateLimiter value)
slackRateLimiter attribute.value - The value for slackRateLimiter, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withSlackRateLimiter(Optional<SlackRateLimiter> optional)
slackRateLimiter attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for slackRateLimiterthis objectpublic final SlackClientRuntimeConfig withHttpConfig(@Nullable com.hubspot.horizon.HttpConfig value)
httpConfig attribute.value - The value for httpConfig, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withHttpConfig(Optional<com.hubspot.horizon.HttpConfig> optional)
httpConfig attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for httpConfigthis objectpublic final SlackClientRuntimeConfig withHttpClient(@Nullable NioHttpClient value)
httpClient attribute.value - The value for httpClient, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withHttpClient(Optional<NioHttpClient> optional)
httpClient attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for httpClientthis objectpublic final SlackClientRuntimeConfig withMethodFilter(@Nullable SlackMethodAcceptor value)
methodFilter attribute.value - The value for methodFilter, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withMethodFilter(Optional<SlackMethodAcceptor> optional)
methodFilter attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for methodFilterthis objectpublic final SlackClientRuntimeConfig withRequestDebugger(@Nullable RequestDebugger value)
requestDebugger attribute.value - The value for requestDebugger, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withRequestDebugger(Optional<RequestDebugger> optional)
requestDebugger attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for requestDebuggerthis objectpublic final SlackClientRuntimeConfig withResponseDebugger(@Nullable ResponseDebugger value)
responseDebugger attribute.value - The value for responseDebugger, null is accepted as java.util.Optional.empty()this objectpublic final SlackClientRuntimeConfig withResponseDebugger(Optional<ResponseDebugger> optional)
responseDebugger attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for responseDebuggerthis objectpublic boolean equals(@Nullable Object another)
SlackClientRuntimeConfig that have equal attribute values.public int hashCode()
tokenSupplier, slackApiBasePath, usersListBatchSize, channelsListBatchSize, channelsHistoryMessageBatchSize, conversationsHistoryMessageBatchSize, conversationMembersBatchSize, slackRateLimiter, httpConfig, httpClient, methodFilter, requestDebugger, responseDebugger.public String toString()
SlackClientRuntimeConfig with attribute values.public static SlackClientRuntimeConfig copyOf(SlackClientRuntimeConfigIF instance)
SlackClientRuntimeConfigIF 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 SlackClientRuntimeConfig.Builder builder()
SlackClientRuntimeConfig.Copyright © 2020. All rights reserved.