Class SlackCsvFile.Builder
java.lang.Object
com.hubspot.slack.client.models.files.SlackCsvFile.Builder
- Enclosing class:
SlackCsvFile
@Generated(from="SlackCsvFileIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackCsvFile.Builder
extends Object
Builds instances of type
SlackCsvFile.
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.
-
Method Summary
Modifier and TypeMethodDescriptionfinal SlackCsvFile.BuilderaddAllChannelIds(Iterable<String> elements) Adds elements tochannelIdslist.final SlackCsvFile.BuilderaddAllGroupIds(Iterable<String> elements) Adds elements togroupIdslist.final SlackCsvFile.BuilderaddAllImIds(Iterable<String> elements) Adds elements toimIdslist.final SlackCsvFile.BuilderaddChannelIds(String element) Adds one element tochannelIdslist.final SlackCsvFile.BuilderaddChannelIds(String... elements) Adds elements tochannelIdslist.final SlackCsvFile.BuilderaddGroupIds(String element) Adds one element togroupIdslist.final SlackCsvFile.BuilderaddGroupIds(String... elements) Adds elements togroupIdslist.final SlackCsvFile.BuilderAdds one element toimIdslist.final SlackCsvFile.BuilderAdds elements toimIdslist.build()Builds a newSlackCsvFile.final SlackCsvFile.Builderfrom(SlackCsvFileIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackCsvFileIFinstance.final SlackCsvFile.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackFileinstance.final SlackCsvFile.Builderfrom(SlackTextFileCore instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackTextFileCoreinstance.final SlackCsvFile.BuildersetChannelIds(Iterable<String> elements) Sets or replaces all elements forchannelIdslist.final SlackCsvFile.BuildersetCommentsCount(int commentsCount) Initializes the value for thecommentsCountattribute.final SlackCsvFile.BuildersetCreatedEpochSeconds(long createdEpochSeconds) Initializes the value for thecreatedEpochSecondsattribute.final SlackCsvFile.BuildersetDisplayAsBot(boolean displayAsBot) Initializes the value for thedisplayAsBotattribute.final SlackCsvFile.BuildersetEditable(boolean editable) Initializes the value for theeditableattribute.final SlackCsvFile.BuildersetEditLink(String editLink) Initializes the optional valueeditLinkto editLink.final SlackCsvFile.BuildersetEditLink(Optional<String> editLink) Initializes the optional valueeditLinkto editLink.final SlackCsvFile.BuildersetExternal(boolean external) Initializes the value for theexternalattribute.final SlackCsvFile.BuildersetFiletype(SlackFileType filetype) Initializes the value for thefiletypeattribute.final SlackCsvFile.BuildersetGroupIds(Iterable<String> elements) Sets or replaces all elements forgroupIdslist.final SlackCsvFile.BuilderInitializes the value for theidattribute.final SlackCsvFile.BuilderSets or replaces all elements forimIdslist.final SlackCsvFile.BuilderInitializes the optional valuelinesto lines.final SlackCsvFile.BuilderInitializes the optional valuelinesto lines.final SlackCsvFile.BuildersetLinesMore(String linesMore) Initializes the optional valuelinesMoreto linesMore.final SlackCsvFile.BuildersetLinesMore(Optional<String> linesMore) Initializes the optional valuelinesMoreto linesMore.final SlackCsvFile.BuildersetMimetype(String mimetype) Initializes the value for themimetypeattribute.final SlackCsvFile.BuilderInitializes the value for themodeattribute.final SlackCsvFile.BuilderInitializes the value for thenameattribute.final SlackCsvFile.BuildersetPermalink(String permalink) Initializes the value for thepermalinkattribute.final SlackCsvFile.BuildersetPermalinkPublic(String permalinkPublic) Initializes the optional valuepermalinkPublicto permalinkPublic.final SlackCsvFile.BuildersetPermalinkPublic(Optional<String> permalinkPublic) Initializes the optional valuepermalinkPublicto permalinkPublic.final SlackCsvFile.BuildersetPrettyType(String prettyType) Initializes the value for theprettyTypeattribute.final SlackCsvFile.BuildersetPreview(String preview) Initializes the optional valuepreviewto preview.final SlackCsvFile.BuildersetPreview(Optional<String> preview) Initializes the optional valuepreviewto preview.final SlackCsvFile.BuildersetPreviewHighlight(String previewHighlight) Initializes the optional valuepreviewHighlightto previewHighlight.final SlackCsvFile.BuildersetPreviewHighlight(Optional<String> previewHighlight) Initializes the optional valuepreviewHighlightto previewHighlight.final SlackCsvFile.BuildersetPreviewTruncated(Boolean previewTruncated) Initializes the optional valuepreviewTruncatedto previewTruncated.final SlackCsvFile.BuildersetPreviewTruncated(Optional<Boolean> previewTruncated) Initializes the optional valuepreviewTruncatedto previewTruncated.final SlackCsvFile.BuildersetPublic(boolean isPublic) Initializes the value for thepublicattribute.final SlackCsvFile.BuildersetPublicUrlShared(boolean publicUrlShared) Initializes the value for thepublicUrlSharedattribute.final SlackCsvFile.BuildersetSize(long size) Initializes the value for thesizeattribute.final SlackCsvFile.BuildersetStarred(Boolean starred) Initializes the optional valuestarredto starred.final SlackCsvFile.BuildersetStarred(Optional<Boolean> starred) Initializes the optional valuestarredto starred.final SlackCsvFile.BuildersetTimestampEpochSeconds(long timestampEpochSeconds) Initializes the value for thetimestampEpochSecondsattribute.final SlackCsvFile.BuilderInitializes the value for thetitleattribute.final SlackCsvFile.BuildersetUrlPrivate(String urlPrivate) Initializes the value for theurlPrivateattribute.final SlackCsvFile.BuildersetUrlPrivateDownload(String urlPrivateDownload) Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.final SlackCsvFile.BuildersetUrlPrivateDownload(Optional<String> urlPrivateDownload) Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.final SlackCsvFile.BuilderInitializes the value for theuserIdattribute.final SlackCsvFile.BuildersetUsername(String username) Initializes the value for theusernameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackTextFileCoreinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackCsvFileIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackFileinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setCreatedEpochSeconds
Initializes the value for thecreatedEpochSecondsattribute.- Parameters:
createdEpochSeconds- The value for createdEpochSeconds- Returns:
thisbuilder for use in a chained invocation
-
setTimestampEpochSeconds
Initializes the value for thetimestampEpochSecondsattribute.- Parameters:
timestampEpochSeconds- The value for timestampEpochSeconds- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setMimetype
Initializes the value for themimetypeattribute.- Parameters:
mimetype- The value for mimetype- Returns:
thisbuilder for use in a chained invocation
-
setPrettyType
Initializes the value for theprettyTypeattribute.- Parameters:
prettyType- The value for prettyType- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setEditable
Initializes the value for theeditableattribute.- Parameters:
editable- The value for editable- Returns:
thisbuilder for use in a chained invocation
-
setSize
Initializes the value for thesizeattribute.- Parameters:
size- The value for size- Returns:
thisbuilder for use in a chained invocation
-
setMode
Initializes the value for themodeattribute.- Parameters:
mode- The value for mode- Returns:
thisbuilder for use in a chained invocation
-
setExternal
Initializes the value for theexternalattribute.- Parameters:
external- The value for external- Returns:
thisbuilder for use in a chained invocation
-
setPublic
Initializes the value for thepublicattribute.- Parameters:
isPublic- The value for isPublic- Returns:
thisbuilder for use in a chained invocation
-
setDisplayAsBot
Initializes the value for thedisplayAsBotattribute.- Parameters:
displayAsBot- The value for displayAsBot- Returns:
thisbuilder for use in a chained invocation
-
setUsername
Initializes the value for theusernameattribute.- Parameters:
username- The value for username- Returns:
thisbuilder for use in a chained invocation
-
setUrlPrivate
Initializes the value for theurlPrivateattribute.- Parameters:
urlPrivate- The value for urlPrivate- Returns:
thisbuilder for use in a chained invocation
-
setUrlPrivateDownload
Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.- Parameters:
urlPrivateDownload- The value for urlPrivateDownload,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUrlPrivateDownload
Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.- Parameters:
urlPrivateDownload- The value for urlPrivateDownload- Returns:
thisbuilder for use in a chained invocation
-
setPermalink
Initializes the value for thepermalinkattribute.- Parameters:
permalink- The value for permalink- Returns:
thisbuilder for use in a chained invocation
-
setPermalinkPublic
Initializes the optional valuepermalinkPublicto permalinkPublic.- Parameters:
permalinkPublic- The value for permalinkPublic,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPermalinkPublic
Initializes the optional valuepermalinkPublicto permalinkPublic.- Parameters:
permalinkPublic- The value for permalinkPublic- Returns:
thisbuilder for use in a chained invocation
-
setCommentsCount
Initializes the value for thecommentsCountattribute.If not set, this attribute will have a default value as returned by the initializer of
commentsCount.- Parameters:
commentsCount- The value for commentsCount- Returns:
thisbuilder for use in a chained invocation
-
setStarred
Initializes the optional valuestarredto starred.- Parameters:
starred- The value for starred,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStarred
Initializes the optional valuestarredto starred.- Parameters:
starred- The value for starred- Returns:
thisbuilder for use in a chained invocation
-
addChannelIds
Adds one element tochannelIdslist.- Parameters:
element- A channelIds element- Returns:
thisbuilder for use in a chained invocation
-
addChannelIds
Adds elements tochannelIdslist.- Parameters:
elements- An array of channelIds elements- Returns:
thisbuilder for use in a chained invocation
-
setChannelIds
Sets or replaces all elements forchannelIdslist.- Parameters:
elements- An iterable of channelIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllChannelIds
Adds elements tochannelIdslist.- Parameters:
elements- An iterable of channelIds elements- Returns:
thisbuilder for use in a chained invocation
-
addGroupIds
Adds one element togroupIdslist.- Parameters:
element- A groupIds element- Returns:
thisbuilder for use in a chained invocation
-
addGroupIds
Adds elements togroupIdslist.- Parameters:
elements- An array of groupIds elements- Returns:
thisbuilder for use in a chained invocation
-
setGroupIds
Sets or replaces all elements forgroupIdslist.- Parameters:
elements- An iterable of groupIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllGroupIds
Adds elements togroupIdslist.- Parameters:
elements- An iterable of groupIds elements- Returns:
thisbuilder for use in a chained invocation
-
addImIds
Adds one element toimIdslist.- Parameters:
element- A imIds element- Returns:
thisbuilder for use in a chained invocation
-
addImIds
Adds elements toimIdslist.- Parameters:
elements- An array of imIds elements- Returns:
thisbuilder for use in a chained invocation
-
setImIds
Sets or replaces all elements forimIdslist.- Parameters:
elements- An iterable of imIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllImIds
Adds elements toimIdslist.- Parameters:
elements- An iterable of imIds elements- Returns:
thisbuilder for use in a chained invocation
-
setEditLink
Initializes the optional valueeditLinkto editLink.- Parameters:
editLink- The value for editLink,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEditLink
Initializes the optional valueeditLinkto editLink.- Parameters:
editLink- The value for editLink- Returns:
thisbuilder for use in a chained invocation
-
setPreview
Initializes the optional valuepreviewto preview.- Parameters:
preview- The value for preview,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPreview
Initializes the optional valuepreviewto preview.- Parameters:
preview- The value for preview- Returns:
thisbuilder for use in a chained invocation
-
setPreviewHighlight
Initializes the optional valuepreviewHighlightto previewHighlight.- Parameters:
previewHighlight- The value for previewHighlight,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPreviewHighlight
Initializes the optional valuepreviewHighlightto previewHighlight.- Parameters:
previewHighlight- The value for previewHighlight- Returns:
thisbuilder for use in a chained invocation
-
setLines
Initializes the optional valuelinesto lines.- Parameters:
lines- The value for lines,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLines
Initializes the optional valuelinesto lines.- Parameters:
lines- The value for lines- Returns:
thisbuilder for use in a chained invocation
-
setLinesMore
Initializes the optional valuelinesMoreto linesMore.- Parameters:
linesMore- The value for linesMore,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLinesMore
Initializes the optional valuelinesMoreto linesMore.- Parameters:
linesMore- The value for linesMore- Returns:
thisbuilder for use in a chained invocation
-
setPreviewTruncated
Initializes the optional valuepreviewTruncatedto previewTruncated.- Parameters:
previewTruncated- The value for previewTruncated,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPreviewTruncated
Initializes the optional valuepreviewTruncatedto previewTruncated.- Parameters:
previewTruncated- The value for previewTruncated- Returns:
thisbuilder for use in a chained invocation
-
setFiletype
Initializes the value for thefiletypeattribute.If not set, this attribute will have a default value as returned by the initializer of
filetype.- Parameters:
filetype- The value for filetype- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSlackCsvFile.- Returns:
- An immutable instance of SlackCsvFile
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-