Class SlackJpgFile.Builder
java.lang.Object
com.hubspot.slack.client.models.files.SlackJpgFile.Builder
- Enclosing class:
SlackJpgFile
@Generated(from="SlackJpgFileIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackJpgFile.Builder
extends Object
Builds instances of type
SlackJpgFile.
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 SlackJpgFile.BuilderaddAllChannelIds(Iterable<String> elements) Adds elements tochannelIdslist.final SlackJpgFile.BuilderaddAllGroupIds(Iterable<String> elements) Adds elements togroupIdslist.final SlackJpgFile.BuilderaddAllImIds(Iterable<String> elements) Adds elements toimIdslist.final SlackJpgFile.BuilderaddChannelIds(String element) Adds one element tochannelIdslist.final SlackJpgFile.BuilderaddChannelIds(String... elements) Adds elements tochannelIdslist.final SlackJpgFile.BuilderaddGroupIds(String element) Adds one element togroupIdslist.final SlackJpgFile.BuilderaddGroupIds(String... elements) Adds elements togroupIdslist.final SlackJpgFile.BuilderAdds one element toimIdslist.final SlackJpgFile.BuilderAdds elements toimIdslist.build()Builds a newSlackJpgFile.final SlackJpgFile.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackFileinstance.final SlackJpgFile.Builderfrom(SlackImageFile instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackImageFileinstance.final SlackJpgFile.Builderfrom(SlackJpgFileIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackJpgFileIFinstance.final SlackJpgFile.BuildersetChannelIds(Iterable<String> elements) Sets or replaces all elements forchannelIdslist.final SlackJpgFile.BuildersetCommentsCount(int commentsCount) Initializes the value for thecommentsCountattribute.final SlackJpgFile.BuildersetCreatedEpochSeconds(long createdEpochSeconds) Initializes the value for thecreatedEpochSecondsattribute.final SlackJpgFile.BuildersetDisplayAsBot(boolean displayAsBot) Initializes the value for thedisplayAsBotattribute.final SlackJpgFile.BuildersetEditable(boolean editable) Initializes the value for theeditableattribute.final SlackJpgFile.BuildersetExternal(boolean external) Initializes the value for theexternalattribute.final SlackJpgFile.BuildersetFiletype(SlackFileType filetype) Initializes the value for thefiletypeattribute.final SlackJpgFile.BuildersetGroupIds(Iterable<String> elements) Sets or replaces all elements forgroupIdslist.final SlackJpgFile.BuildersetHasRichPreview(boolean hasRichPreview) Initializes the value for thehasRichPreviewattribute.final SlackJpgFile.BuilderInitializes the value for theidattribute.final SlackJpgFile.BuildersetImageExifRotation(Integer imageExifRotation) Initializes the optional valueimageExifRotationto imageExifRotation.final SlackJpgFile.BuildersetImageExifRotation(Optional<Integer> imageExifRotation) Initializes the optional valueimageExifRotationto imageExifRotation.final SlackJpgFile.BuilderSets or replaces all elements forimIdslist.final SlackJpgFile.BuildersetMimetype(String mimetype) Initializes the value for themimetypeattribute.final SlackJpgFile.BuilderInitializes the value for themodeattribute.final SlackJpgFile.BuilderInitializes the value for thenameattribute.final SlackJpgFile.BuildersetOriginalHeight(Integer originalHeight) Initializes the optional valueoriginalHeightto originalHeight.final SlackJpgFile.BuildersetOriginalHeight(Optional<Integer> originalHeight) Initializes the optional valueoriginalHeightto originalHeight.final SlackJpgFile.BuildersetOriginalWidth(Integer originalWidth) Initializes the optional valueoriginalWidthto originalWidth.final SlackJpgFile.BuildersetOriginalWidth(Optional<Integer> originalWidth) Initializes the optional valueoriginalWidthto originalWidth.final SlackJpgFile.BuildersetPermalink(String permalink) Initializes the value for thepermalinkattribute.final SlackJpgFile.BuildersetPermalinkPublic(String permalinkPublic) Initializes the optional valuepermalinkPublicto permalinkPublic.final SlackJpgFile.BuildersetPermalinkPublic(Optional<String> permalinkPublic) Initializes the optional valuepermalinkPublicto permalinkPublic.final SlackJpgFile.BuildersetPrettyType(String prettyType) Initializes the value for theprettyTypeattribute.final SlackJpgFile.BuildersetPublic(boolean isPublic) Initializes the value for thepublicattribute.final SlackJpgFile.BuildersetPublicUrlShared(boolean publicUrlShared) Initializes the value for thepublicUrlSharedattribute.final SlackJpgFile.BuildersetSize(long size) Initializes the value for thesizeattribute.final SlackJpgFile.BuildersetStarred(Boolean starred) Initializes the optional valuestarredto starred.final SlackJpgFile.BuildersetStarred(Optional<Boolean> starred) Initializes the optional valuestarredto starred.final SlackJpgFile.BuildersetThumb160Url(String thumb160Url) Initializes the optional valuethumb160Urlto thumb160Url.final SlackJpgFile.BuildersetThumb160Url(Optional<String> thumb160Url) Initializes the optional valuethumb160Urlto thumb160Url.final SlackJpgFile.BuildersetThumb360Height(Integer thumb360Height) Initializes the optional valuethumb360Heightto thumb360Height.final SlackJpgFile.BuildersetThumb360Height(Optional<Integer> thumb360Height) Initializes the optional valuethumb360Heightto thumb360Height.final SlackJpgFile.BuildersetThumb360Url(String thumb360Url) Initializes the optional valuethumb360Urlto thumb360Url.final SlackJpgFile.BuildersetThumb360Url(Optional<String> thumb360Url) Initializes the optional valuethumb360Urlto thumb360Url.final SlackJpgFile.BuildersetThumb360Width(Integer thumb360Width) Initializes the optional valuethumb360Widthto thumb360Width.final SlackJpgFile.BuildersetThumb360Width(Optional<Integer> thumb360Width) Initializes the optional valuethumb360Widthto thumb360Width.final SlackJpgFile.BuildersetThumb480Height(Integer thumb480Height) Initializes the optional valuethumb480Heightto thumb480Height.final SlackJpgFile.BuildersetThumb480Height(Optional<Integer> thumb480Height) Initializes the optional valuethumb480Heightto thumb480Height.final SlackJpgFile.BuildersetThumb480Url(String thumb480Url) Initializes the optional valuethumb480Urlto thumb480Url.final SlackJpgFile.BuildersetThumb480Url(Optional<String> thumb480Url) Initializes the optional valuethumb480Urlto thumb480Url.final SlackJpgFile.BuildersetThumb480Width(Integer thumb480Width) Initializes the optional valuethumb480Widthto thumb480Width.final SlackJpgFile.BuildersetThumb480Width(Optional<Integer> thumb480Width) Initializes the optional valuethumb480Widthto thumb480Width.final SlackJpgFile.BuildersetThumb64Url(String thumb64Url) Initializes the optional valuethumb64Urlto thumb64Url.final SlackJpgFile.BuildersetThumb64Url(Optional<String> thumb64Url) Initializes the optional valuethumb64Urlto thumb64Url.final SlackJpgFile.BuildersetThumb80Url(String thumb80Url) Initializes the optional valuethumb80Urlto thumb80Url.final SlackJpgFile.BuildersetThumb80Url(Optional<String> thumb80Url) Initializes the optional valuethumb80Urlto thumb80Url.final SlackJpgFile.BuildersetTimestampEpochSeconds(long timestampEpochSeconds) Initializes the value for thetimestampEpochSecondsattribute.final SlackJpgFile.BuilderInitializes the value for thetitleattribute.final SlackJpgFile.BuildersetUrlPrivate(String urlPrivate) Initializes the value for theurlPrivateattribute.final SlackJpgFile.BuildersetUrlPrivateDownload(String urlPrivateDownload) Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.final SlackJpgFile.BuildersetUrlPrivateDownload(Optional<String> urlPrivateDownload) Initializes the optional valueurlPrivateDownloadto urlPrivateDownload.final SlackJpgFile.BuilderInitializes the value for theuserIdattribute.final SlackJpgFile.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.SlackJpgFileIFinstance.- 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
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.files.SlackImageFileinstance.- 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
-
setThumb64Url
Initializes the optional valuethumb64Urlto thumb64Url.- Parameters:
thumb64Url- The value for thumb64Url,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb64Url
Initializes the optional valuethumb64Urlto thumb64Url.- Parameters:
thumb64Url- The value for thumb64Url- Returns:
thisbuilder for use in a chained invocation
-
setThumb80Url
Initializes the optional valuethumb80Urlto thumb80Url.- Parameters:
thumb80Url- The value for thumb80Url,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb80Url
Initializes the optional valuethumb80Urlto thumb80Url.- Parameters:
thumb80Url- The value for thumb80Url- Returns:
thisbuilder for use in a chained invocation
-
setThumb160Url
Initializes the optional valuethumb160Urlto thumb160Url.- Parameters:
thumb160Url- The value for thumb160Url,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb160Url
Initializes the optional valuethumb160Urlto thumb160Url.- Parameters:
thumb160Url- The value for thumb160Url- Returns:
thisbuilder for use in a chained invocation
-
setThumb360Url
Initializes the optional valuethumb360Urlto thumb360Url.- Parameters:
thumb360Url- The value for thumb360Url,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb360Url
Initializes the optional valuethumb360Urlto thumb360Url.- Parameters:
thumb360Url- The value for thumb360Url- Returns:
thisbuilder for use in a chained invocation
-
setThumb360Width
Initializes the optional valuethumb360Widthto thumb360Width.- Parameters:
thumb360Width- The value for thumb360Width,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb360Width
Initializes the optional valuethumb360Widthto thumb360Width.- Parameters:
thumb360Width- The value for thumb360Width- Returns:
thisbuilder for use in a chained invocation
-
setThumb360Height
Initializes the optional valuethumb360Heightto thumb360Height.- Parameters:
thumb360Height- The value for thumb360Height,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb360Height
Initializes the optional valuethumb360Heightto thumb360Height.- Parameters:
thumb360Height- The value for thumb360Height- Returns:
thisbuilder for use in a chained invocation
-
setThumb480Url
Initializes the optional valuethumb480Urlto thumb480Url.- Parameters:
thumb480Url- The value for thumb480Url,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb480Url
Initializes the optional valuethumb480Urlto thumb480Url.- Parameters:
thumb480Url- The value for thumb480Url- Returns:
thisbuilder for use in a chained invocation
-
setThumb480Width
Initializes the optional valuethumb480Widthto thumb480Width.- Parameters:
thumb480Width- The value for thumb480Width,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb480Width
Initializes the optional valuethumb480Widthto thumb480Width.- Parameters:
thumb480Width- The value for thumb480Width- Returns:
thisbuilder for use in a chained invocation
-
setThumb480Height
Initializes the optional valuethumb480Heightto thumb480Height.- Parameters:
thumb480Height- The value for thumb480Height,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThumb480Height
Initializes the optional valuethumb480Heightto thumb480Height.- Parameters:
thumb480Height- The value for thumb480Height- Returns:
thisbuilder for use in a chained invocation
-
setImageExifRotation
Initializes the optional valueimageExifRotationto imageExifRotation.- Parameters:
imageExifRotation- The value for imageExifRotation,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setImageExifRotation
Initializes the optional valueimageExifRotationto imageExifRotation.- Parameters:
imageExifRotation- The value for imageExifRotation- Returns:
thisbuilder for use in a chained invocation
-
setOriginalWidth
Initializes the optional valueoriginalWidthto originalWidth.- Parameters:
originalWidth- The value for originalWidth,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setOriginalWidth
Initializes the optional valueoriginalWidthto originalWidth.- Parameters:
originalWidth- The value for originalWidth- Returns:
thisbuilder for use in a chained invocation
-
setOriginalHeight
Initializes the optional valueoriginalHeightto originalHeight.- Parameters:
originalHeight- The value for originalHeight,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setOriginalHeight
Initializes the optional valueoriginalHeightto originalHeight.- Parameters:
originalHeight- The value for originalHeight- Returns:
thisbuilder for use in a chained invocation
-
setHasRichPreview
Initializes the value for thehasRichPreviewattribute.- Parameters:
hasRichPreview- The value for hasRichPreview- 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 newSlackJpgFile.- Returns:
- An immutable instance of SlackJpgFile
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-