@NotThreadSafe public static final class ChannelsListResponse.Builder extends Object
ChannelsListResponse.
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 |
|---|---|
ChannelsListResponse.Builder |
addAllChannels(Iterable<? extends SlackChannel> elements)
Adds elements to
channels list. |
ChannelsListResponse.Builder |
addChannels(SlackChannel... elements)
Adds elements to
channels list. |
ChannelsListResponse.Builder |
addChannels(SlackChannel element)
Adds one element to
channels list. |
ChannelsListResponse |
build()
Builds a new
ChannelsListResponse. |
ChannelsListResponse.Builder |
from(ChannelsListResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.channels.ChannelsListResponseIF instance. |
ChannelsListResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
ChannelsListResponse.Builder |
setChannels(Iterable<? extends SlackChannel> elements)
Sets or replaces all elements for
channels list. |
ChannelsListResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
ChannelsListResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ChannelsListResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
public final ChannelsListResponse.Builder from(ChannelsListResponseIF instance)
com.hubspot.slack.client.models.response.channels.ChannelsListResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsListResponse.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 ChannelsListResponse.Builder addChannels(SlackChannel element)
channels list.element - A channels elementthis builder for use in a chained invocationpublic final ChannelsListResponse.Builder addChannels(SlackChannel... elements)
channels list.elements - An array of channels elementsthis builder for use in a chained invocationpublic final ChannelsListResponse.Builder setChannels(Iterable<? extends SlackChannel> elements)
channels list.elements - An iterable of channels elementsthis builder for use in a chained invocationpublic final ChannelsListResponse.Builder addAllChannels(Iterable<? extends SlackChannel> elements)
channels list.elements - An iterable of channels elementsthis builder for use in a chained invocationpublic final ChannelsListResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final ChannelsListResponse.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 ChannelsListResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic ChannelsListResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelsListResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.