@NotThreadSafe public static final class SlackUnknownFiletype.Builder extends Object
SlackUnknownFiletype.
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 |
|---|---|
SlackUnknownFiletype.Builder |
addAllChannelIds(Iterable<String> elements)
Adds elements to
channelIds list. |
SlackUnknownFiletype.Builder |
addAllGroupIds(Iterable<String> elements)
Adds elements to
groupIds list. |
SlackUnknownFiletype.Builder |
addAllImIds(Iterable<String> elements)
Adds elements to
imIds list. |
SlackUnknownFiletype.Builder |
addChannelIds(String... elements)
Adds elements to
channelIds list. |
SlackUnknownFiletype.Builder |
addChannelIds(String element)
Adds one element to
channelIds list. |
SlackUnknownFiletype.Builder |
addGroupIds(String... elements)
Adds elements to
groupIds list. |
SlackUnknownFiletype.Builder |
addGroupIds(String element)
Adds one element to
groupIds list. |
SlackUnknownFiletype.Builder |
addImIds(String... elements)
Adds elements to
imIds list. |
SlackUnknownFiletype.Builder |
addImIds(String element)
Adds one element to
imIds list. |
SlackUnknownFiletype |
build()
Builds a new
SlackUnknownFiletype. |
SlackUnknownFiletype.Builder |
from(SlackFile instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.files.SlackFile instance. |
SlackUnknownFiletype.Builder |
from(SlackUnknownFiletypeIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.files.SlackUnknownFiletypeIF instance. |
SlackUnknownFiletype.Builder |
setChannelIds(Iterable<String> elements)
Sets or replaces all elements for
channelIds list. |
SlackUnknownFiletype.Builder |
setCommentsCount(int commentsCount)
Initializes the value for the
commentsCount attribute. |
SlackUnknownFiletype.Builder |
setCreatedEpochSeconds(long createdEpochSeconds)
Initializes the value for the
createdEpochSeconds attribute. |
SlackUnknownFiletype.Builder |
setDisplayAsBot(boolean displayAsBot)
Initializes the value for the
displayAsBot attribute. |
SlackUnknownFiletype.Builder |
setEditable(boolean editable)
Initializes the value for the
editable attribute. |
SlackUnknownFiletype.Builder |
setExternal(boolean external)
Initializes the value for the
external attribute. |
SlackUnknownFiletype.Builder |
setFiletype(SlackFileType filetype)
Initializes the value for the
filetype attribute. |
SlackUnknownFiletype.Builder |
setGroupIds(Iterable<String> elements)
Sets or replaces all elements for
groupIds list. |
SlackUnknownFiletype.Builder |
setId(String id)
Initializes the value for the
id attribute. |
SlackUnknownFiletype.Builder |
setImIds(Iterable<String> elements)
Sets or replaces all elements for
imIds list. |
SlackUnknownFiletype.Builder |
setIsPublic(boolean isPublic)
Initializes the value for the
isPublic attribute. |
SlackUnknownFiletype.Builder |
setMimetype(String mimetype)
Initializes the value for the
mimetype attribute. |
SlackUnknownFiletype.Builder |
setMode(String mode)
Initializes the value for the
mode attribute. |
SlackUnknownFiletype.Builder |
setName(String name)
Initializes the value for the
name attribute. |
SlackUnknownFiletype.Builder |
setPermalink(String permalink)
Initializes the value for the
permalink attribute. |
SlackUnknownFiletype.Builder |
setPermalinkPublic(Optional<String> permalinkPublic)
Initializes the optional value
permalinkPublic to permalinkPublic. |
SlackUnknownFiletype.Builder |
setPermalinkPublic(String permalinkPublic)
Initializes the optional value
permalinkPublic to permalinkPublic. |
SlackUnknownFiletype.Builder |
setPrettyType(String prettyType)
Initializes the value for the
prettyType attribute. |
SlackUnknownFiletype.Builder |
setPublicUrlShared(boolean publicUrlShared)
Initializes the value for the
publicUrlShared attribute. |
SlackUnknownFiletype.Builder |
setSize(long size)
Initializes the value for the
size attribute. |
SlackUnknownFiletype.Builder |
setStarred(Boolean starred)
Initializes the optional value
starred to starred. |
SlackUnknownFiletype.Builder |
setStarred(Optional<Boolean> starred)
Initializes the optional value
starred to starred. |
SlackUnknownFiletype.Builder |
setTimestampEpochSeconds(long timestampEpochSeconds)
Initializes the value for the
timestampEpochSeconds attribute. |
SlackUnknownFiletype.Builder |
setTitle(String title)
Initializes the value for the
title attribute. |
SlackUnknownFiletype.Builder |
setUrlPrivate(String urlPrivate)
Initializes the value for the
urlPrivate attribute. |
SlackUnknownFiletype.Builder |
setUrlPrivateDownload(Optional<String> urlPrivateDownload)
Initializes the optional value
urlPrivateDownload to urlPrivateDownload. |
SlackUnknownFiletype.Builder |
setUrlPrivateDownload(String urlPrivateDownload)
Initializes the optional value
urlPrivateDownload to urlPrivateDownload. |
SlackUnknownFiletype.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
SlackUnknownFiletype.Builder |
setUsername(String username)
Initializes the value for the
username attribute. |
public final SlackUnknownFiletype.Builder from(SlackUnknownFiletypeIF instance)
com.hubspot.slack.client.models.files.SlackUnknownFiletypeIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder from(SlackFile instance)
com.hubspot.slack.client.models.files.SlackFile instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setId(String id)
id attribute.
If not set, this attribute will have a default value as returned by the initializer of id.
id - The value for idthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setCreatedEpochSeconds(long createdEpochSeconds)
createdEpochSeconds attribute.
If not set, this attribute will have a default value as returned by the initializer of createdEpochSeconds.
createdEpochSeconds - The value for createdEpochSecondsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setTimestampEpochSeconds(long timestampEpochSeconds)
timestampEpochSeconds attribute.
If not set, this attribute will have a default value as returned by the initializer of timestampEpochSeconds.
timestampEpochSeconds - The value for timestampEpochSecondsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setName(String name)
name attribute.
If not set, this attribute will have a default value as returned by the initializer of name.
name - The value for namethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setTitle(String title)
title attribute.
If not set, this attribute will have a default value as returned by the initializer of title.
title - The value for titlethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setMimetype(String mimetype)
mimetype attribute.
If not set, this attribute will have a default value as returned by the initializer of mimetype.
mimetype - The value for mimetypethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setFiletype(SlackFileType filetype)
filetype attribute.
If not set, this attribute will have a default value as returned by the initializer of filetype.
filetype - The value for filetypethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setPrettyType(String prettyType)
prettyType attribute.
If not set, this attribute will have a default value as returned by the initializer of prettyType.
prettyType - The value for prettyTypethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setUserId(String userId)
userId attribute.
If not set, this attribute will have a default value as returned by the initializer of userId.
userId - The value for userIdthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setEditable(boolean editable)
editable attribute.
If not set, this attribute will have a default value as returned by the initializer of editable.
editable - The value for editablethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setSize(long size)
size attribute.
If not set, this attribute will have a default value as returned by the initializer of size.
size - The value for sizethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setMode(String mode)
mode attribute.
If not set, this attribute will have a default value as returned by the initializer of mode.
mode - The value for modethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setExternal(boolean external)
external attribute.
If not set, this attribute will have a default value as returned by the initializer of external.
external - The value for externalthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setIsPublic(boolean isPublic)
isPublic attribute.
If not set, this attribute will have a default value as returned by the initializer of isPublic.
isPublic - The value for isPublicthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setPublicUrlShared(boolean publicUrlShared)
publicUrlShared attribute.
If not set, this attribute will have a default value as returned by the initializer of publicUrlShared.
publicUrlShared - The value for publicUrlSharedthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setDisplayAsBot(boolean displayAsBot)
displayAsBot attribute.
If not set, this attribute will have a default value as returned by the initializer of displayAsBot.
displayAsBot - The value for displayAsBotthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setUsername(String username)
username attribute.
If not set, this attribute will have a default value as returned by the initializer of username.
username - The value for usernamethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setUrlPrivate(String urlPrivate)
urlPrivate attribute.
If not set, this attribute will have a default value as returned by the initializer of urlPrivate.
urlPrivate - The value for urlPrivatethis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setUrlPrivateDownload(@Nullable String urlPrivateDownload)
urlPrivateDownload to urlPrivateDownload.urlPrivateDownload - The value for urlPrivateDownload, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUnknownFiletype.Builder setUrlPrivateDownload(Optional<String> urlPrivateDownload)
urlPrivateDownload to urlPrivateDownload.urlPrivateDownload - The value for urlPrivateDownloadthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setPermalink(String permalink)
permalink attribute.
If not set, this attribute will have a default value as returned by the initializer of permalink.
permalink - The value for permalinkthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setPermalinkPublic(@Nullable String permalinkPublic)
permalinkPublic to permalinkPublic.permalinkPublic - The value for permalinkPublic, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUnknownFiletype.Builder setPermalinkPublic(Optional<String> permalinkPublic)
permalinkPublic to permalinkPublic.permalinkPublic - The value for permalinkPublicthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setCommentsCount(int commentsCount)
commentsCount attribute.
If not set, this attribute will have a default value as returned by the initializer of commentsCount.
commentsCount - The value for commentsCountthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setStarred(@Nullable Boolean starred)
starred to starred.starred - The value for starred, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackUnknownFiletype.Builder setStarred(Optional<Boolean> starred)
starred to starred.starred - The value for starredthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addChannelIds(String element)
channelIds list.element - A channelIds elementthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addChannelIds(String... elements)
channelIds list.elements - An array of channelIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setChannelIds(Iterable<String> elements)
channelIds list.elements - An iterable of channelIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addAllChannelIds(Iterable<String> elements)
channelIds list.elements - An iterable of channelIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addGroupIds(String element)
groupIds list.element - A groupIds elementthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addGroupIds(String... elements)
groupIds list.elements - An array of groupIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setGroupIds(Iterable<String> elements)
groupIds list.elements - An iterable of groupIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addAllGroupIds(Iterable<String> elements)
groupIds list.elements - An iterable of groupIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addImIds(String element)
imIds list.element - A imIds elementthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addImIds(String... elements)
imIds list.elements - An array of imIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder setImIds(Iterable<String> elements)
imIds list.elements - An iterable of imIds elementsthis builder for use in a chained invocationpublic final SlackUnknownFiletype.Builder addAllImIds(Iterable<String> elements)
imIds list.elements - An iterable of imIds elementsthis builder for use in a chained invocationpublic SlackUnknownFiletype build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackUnknownFiletype.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.