@NotThreadSafe public static final class ConversationsHistoryResponse.Builder extends Object
ConversationsHistoryResponse.
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 |
|---|---|
ConversationsHistoryResponse.Builder |
addAllMessages(Iterable<? extends LiteMessage> elements)
Adds elements to
messages list. |
ConversationsHistoryResponse.Builder |
addMessages(LiteMessage... elements)
Adds elements to
messages list. |
ConversationsHistoryResponse.Builder |
addMessages(LiteMessage element)
Adds one element to
messages list. |
ConversationsHistoryResponse |
build()
Builds a new
ConversationsHistoryResponse. |
ConversationsHistoryResponse.Builder |
from(ConversationsHistoryResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.conversations.ConversationsHistoryResponseIF instance. |
ConversationsHistoryResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
ConversationsHistoryResponse.Builder |
setHasMore(boolean hasMore)
Initializes the value for the
hasMore attribute. |
ConversationsHistoryResponse.Builder |
setMessages(Iterable<? extends LiteMessage> elements)
Sets or replaces all elements for
messages list. |
ConversationsHistoryResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
ConversationsHistoryResponse.Builder |
setPinCount(int pinCount)
Initializes the value for the
pinCount attribute. |
ConversationsHistoryResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ConversationsHistoryResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
public final ConversationsHistoryResponse.Builder from(ConversationsHistoryResponseIF instance)
com.hubspot.slack.client.models.response.conversations.ConversationsHistoryResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder from(SlackResponse instance)
com.hubspot.slack.client.models.response.SlackResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder addMessages(LiteMessage element)
messages list.element - A messages elementthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder addMessages(LiteMessage... elements)
messages list.elements - An array of messages elementsthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder setMessages(Iterable<? extends LiteMessage> elements)
messages list.elements - An iterable of messages elementsthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder addAllMessages(Iterable<? extends LiteMessage> elements)
messages list.elements - An iterable of messages elementsthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder setHasMore(boolean hasMore)
hasMore attribute.hasMore - The value for hasMorethis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder setPinCount(int pinCount)
pinCount attribute.pinCount - The value for pinCountthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final ConversationsHistoryResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ConversationsHistoryResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic ConversationsHistoryResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ConversationsHistoryResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.