Class SlackJpgFile
java.lang.Object
com.hubspot.slack.client.models.files.SlackJpgFile
- All Implemented Interfaces:
SlackFile,SlackImageFile,SlackJpgFileIF
@Generated(from="SlackJpgFileIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackJpgFile
extends Object
implements SlackJpgFileIF
Immutable implementation of
SlackJpgFileIF.
Use the builder to create immutable instances:
SlackJpgFile.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackJpgFile.Builderbuilder()Creates a builder forSlackJpgFile.static SlackJpgFilecopyOf(SlackJpgFileIF instance) Creates an immutable copy of aSlackJpgFileIFvalue.booleanThis instance is equal to all instances ofSlackJpgFilethat have equal attribute values.intlongbooleangetId()getImIds()getMode()getName()longgetSize()longgetTitle()inthashCode()Computes a hash code from attributes:id,createdEpochSeconds,timestampEpochSeconds,name,title,mimetype,prettyType,userId,editable,size,mode,external,isPublic,publicUrlShared,displayAsBot,username,urlPrivate,urlPrivateDownload,permalink,permalinkPublic,commentsCount,starred,channelIds,groupIds,imIds,thumb64Url,thumb80Url,thumb160Url,thumb360Url,thumb360Width,thumb360Height,thumb480Url,thumb480Width,thumb480Height,imageExifRotation,originalWidth,originalHeight,hasRichPreview,filetype.booleanbooleanbooleanbooleanisPublic()booleantoString()Prints the immutable valueSlackJpgFilewith attribute values.final SlackJpgFilewithChannelIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchannelIds.final SlackJpgFilewithChannelIds(String... elements) Copy the current immutable object with elements that replace the content ofchannelIds.final SlackJpgFilewithCommentsCount(int value) Copy the current immutable object by setting a value for thecommentsCountattribute.final SlackJpgFilewithCreatedEpochSeconds(long value) Copy the current immutable object by setting a value for thecreatedEpochSecondsattribute.final SlackJpgFilewithDisplayAsBot(boolean value) Copy the current immutable object by setting a value for thedisplayAsBotattribute.final SlackJpgFilewithEditable(boolean value) Copy the current immutable object by setting a value for theeditableattribute.final SlackJpgFilewithExternal(boolean value) Copy the current immutable object by setting a value for theexternalattribute.final SlackJpgFilewithFiletype(SlackFileType value) Copy the current immutable object by setting a value for thefiletypeattribute.final SlackJpgFilewithGroupIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofgroupIds.final SlackJpgFilewithGroupIds(String... elements) Copy the current immutable object with elements that replace the content ofgroupIds.final SlackJpgFilewithHasRichPreview(boolean value) Copy the current immutable object by setting a value for thehasRichPreviewattribute.final SlackJpgFileCopy the current immutable object by setting a value for theidattribute.final SlackJpgFilewithImageExifRotation(Integer value) Copy the current immutable object by setting a present value for the optionalimageExifRotationattribute.final SlackJpgFilewithImageExifRotation(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theimageExifRotationattribute.final SlackJpgFileCopy the current immutable object with elements that replace the content ofimIds.final SlackJpgFileCopy the current immutable object with elements that replace the content ofimIds.final SlackJpgFilewithMimetype(String value) Copy the current immutable object by setting a value for themimetypeattribute.final SlackJpgFileCopy the current immutable object by setting a value for themodeattribute.final SlackJpgFileCopy the current immutable object by setting a value for thenameattribute.final SlackJpgFilewithOriginalHeight(Integer value) Copy the current immutable object by setting a present value for the optionaloriginalHeightattribute.final SlackJpgFilewithOriginalHeight(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theoriginalHeightattribute.final SlackJpgFilewithOriginalWidth(Integer value) Copy the current immutable object by setting a present value for the optionaloriginalWidthattribute.final SlackJpgFilewithOriginalWidth(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theoriginalWidthattribute.final SlackJpgFilewithPermalink(String value) Copy the current immutable object by setting a value for thepermalinkattribute.final SlackJpgFilewithPermalinkPublic(String value) Copy the current immutable object by setting a present value for the optionalpermalinkPublicattribute.final SlackJpgFilewithPermalinkPublic(Optional<String> optional) Copy the current immutable object by setting an optional value for thepermalinkPublicattribute.final SlackJpgFilewithPrettyType(String value) Copy the current immutable object by setting a value for theprettyTypeattribute.final SlackJpgFilewithPublic(boolean value) Copy the current immutable object by setting a value for thepublicattribute.final SlackJpgFilewithPublicUrlShared(boolean value) Copy the current immutable object by setting a value for thepublicUrlSharedattribute.final SlackJpgFilewithSize(long value) Copy the current immutable object by setting a value for thesizeattribute.final SlackJpgFilewithStarred(Boolean value) Copy the current immutable object by setting a present value for the optionalstarredattribute.final SlackJpgFilewithStarred(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thestarredattribute.final SlackJpgFilewithThumb160Url(String value) Copy the current immutable object by setting a present value for the optionalthumb160Urlattribute.final SlackJpgFilewithThumb160Url(Optional<String> optional) Copy the current immutable object by setting an optional value for thethumb160Urlattribute.final SlackJpgFilewithThumb360Height(Integer value) Copy the current immutable object by setting a present value for the optionalthumb360Heightattribute.final SlackJpgFilewithThumb360Height(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thethumb360Heightattribute.final SlackJpgFilewithThumb360Url(String value) Copy the current immutable object by setting a present value for the optionalthumb360Urlattribute.final SlackJpgFilewithThumb360Url(Optional<String> optional) Copy the current immutable object by setting an optional value for thethumb360Urlattribute.final SlackJpgFilewithThumb360Width(Integer value) Copy the current immutable object by setting a present value for the optionalthumb360Widthattribute.final SlackJpgFilewithThumb360Width(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thethumb360Widthattribute.final SlackJpgFilewithThumb480Height(Integer value) Copy the current immutable object by setting a present value for the optionalthumb480Heightattribute.final SlackJpgFilewithThumb480Height(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thethumb480Heightattribute.final SlackJpgFilewithThumb480Url(String value) Copy the current immutable object by setting a present value for the optionalthumb480Urlattribute.final SlackJpgFilewithThumb480Url(Optional<String> optional) Copy the current immutable object by setting an optional value for thethumb480Urlattribute.final SlackJpgFilewithThumb480Width(Integer value) Copy the current immutable object by setting a present value for the optionalthumb480Widthattribute.final SlackJpgFilewithThumb480Width(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thethumb480Widthattribute.final SlackJpgFilewithThumb64Url(String value) Copy the current immutable object by setting a present value for the optionalthumb64Urlattribute.final SlackJpgFilewithThumb64Url(Optional<String> optional) Copy the current immutable object by setting an optional value for thethumb64Urlattribute.final SlackJpgFilewithThumb80Url(String value) Copy the current immutable object by setting a present value for the optionalthumb80Urlattribute.final SlackJpgFilewithThumb80Url(Optional<String> optional) Copy the current immutable object by setting an optional value for thethumb80Urlattribute.final SlackJpgFilewithTimestampEpochSeconds(long value) Copy the current immutable object by setting a value for thetimestampEpochSecondsattribute.final SlackJpgFileCopy the current immutable object by setting a value for thetitleattribute.final SlackJpgFilewithUrlPrivate(String value) Copy the current immutable object by setting a value for theurlPrivateattribute.final SlackJpgFilewithUrlPrivateDownload(String value) Copy the current immutable object by setting a present value for the optionalurlPrivateDownloadattribute.final SlackJpgFilewithUrlPrivateDownload(Optional<String> optional) Copy the current immutable object by setting an optional value for theurlPrivateDownloadattribute.final SlackJpgFilewithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final SlackJpgFilewithUsername(String value) Copy the current immutable object by setting a value for theusernameattribute.
-
Method Details
-
getId
-
getCreatedEpochSeconds
public long getCreatedEpochSeconds()- Specified by:
getCreatedEpochSecondsin interfaceSlackFile- Returns:
- The value of the
createdEpochSecondsattribute
-
getTimestampEpochSeconds
public long getTimestampEpochSeconds()- Specified by:
getTimestampEpochSecondsin interfaceSlackFile- Returns:
- The value of the
timestampEpochSecondsattribute
-
getName
-
getTitle
-
getMimetype
- Specified by:
getMimetypein interfaceSlackFile- Returns:
- The value of the
mimetypeattribute
-
getPrettyType
- Specified by:
getPrettyTypein interfaceSlackFile- Returns:
- The value of the
prettyTypeattribute
-
getUserId
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceSlackFile- Returns:
- The value of the
editableattribute
-
getSize
public long getSize() -
getMode
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceSlackFile- Returns:
- The value of the
externalattribute
-
isPublic
public boolean isPublic() -
getDisplayAsBot
public boolean getDisplayAsBot()- Specified by:
getDisplayAsBotin interfaceSlackFile- Returns:
- The value of the
displayAsBotattribute
-
getUsername
- Specified by:
getUsernamein interfaceSlackFile- Returns:
- The value of the
usernameattribute
-
getUrlPrivate
- Specified by:
getUrlPrivatein interfaceSlackFile- Returns:
- The value of the
urlPrivateattribute
-
getUrlPrivateDownload
- Specified by:
getUrlPrivateDownloadin interfaceSlackFile- Returns:
- The value of the
urlPrivateDownloadattribute
-
getPermalink
- Specified by:
getPermalinkin interfaceSlackFile- Returns:
- The value of the
permalinkattribute
-
getPermalinkPublic
- Specified by:
getPermalinkPublicin interfaceSlackFile- Returns:
- The value of the
permalinkPublicattribute
-
getCommentsCount
public int getCommentsCount()- Specified by:
getCommentsCountin interfaceSlackFile- Returns:
- The value of the
commentsCountattribute
-
isStarred
-
getChannelIds
- Specified by:
getChannelIdsin interfaceSlackFile- Returns:
- The value of the
channelIdsattribute
-
getGroupIds
- Specified by:
getGroupIdsin interfaceSlackFile- Returns:
- The value of the
groupIdsattribute
-
getImIds
-
getThumb64Url
- Specified by:
getThumb64Urlin interfaceSlackImageFile- Returns:
- The value of the
thumb64Urlattribute
-
getThumb80Url
- Specified by:
getThumb80Urlin interfaceSlackImageFile- Returns:
- The value of the
thumb80Urlattribute
-
getThumb160Url
- Specified by:
getThumb160Urlin interfaceSlackImageFile- Returns:
- The value of the
thumb160Urlattribute
-
getThumb360Url
- Specified by:
getThumb360Urlin interfaceSlackImageFile- Returns:
- The value of the
thumb360Urlattribute
-
getThumb360Width
- Specified by:
getThumb360Widthin interfaceSlackImageFile- Returns:
- The value of the
thumb360Widthattribute
-
getThumb360Height
- Specified by:
getThumb360Heightin interfaceSlackImageFile- Returns:
- The value of the
thumb360Heightattribute
-
getThumb480Url
- Specified by:
getThumb480Urlin interfaceSlackImageFile- Returns:
- The value of the
thumb480Urlattribute
-
getThumb480Width
- Specified by:
getThumb480Widthin interfaceSlackImageFile- Returns:
- The value of the
thumb480Widthattribute
-
getThumb480Height
- Specified by:
getThumb480Heightin interfaceSlackImageFile- Returns:
- The value of the
thumb480Heightattribute
-
getImageExifRotation
- Specified by:
getImageExifRotationin interfaceSlackImageFile- Returns:
- The value of the
imageExifRotationattribute
-
getOriginalWidth
- Specified by:
getOriginalWidthin interfaceSlackImageFile- Returns:
- The value of the
originalWidthattribute
-
getOriginalHeight
- Specified by:
getOriginalHeightin interfaceSlackImageFile- Returns:
- The value of the
originalHeightattribute
-
hasRichPreview
public boolean hasRichPreview()- Specified by:
hasRichPreviewin interfaceSlackImageFile- Returns:
- The value of the
hasRichPreviewattribute
-
getFiletype
- Specified by:
getFiletypein interfaceSlackFile- Specified by:
getFiletypein interfaceSlackJpgFileIF- Returns:
- The value of the
filetypeattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withCreatedEpochSeconds
Copy the current immutable object by setting a value for thecreatedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withTimestampEpochSeconds
Copy the current immutable object by setting a value for thetimestampEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for timestampEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withMimetype
Copy the current immutable object by setting a value for themimetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mimetype- Returns:
- A modified copy or the
thisobject
-
withPrettyType
Copy the current immutable object by setting a value for theprettyTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for prettyType- Returns:
- A modified copy or the
thisobject
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withEditable
Copy the current immutable object by setting a value for theeditableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for editable- Returns:
- A modified copy or the
thisobject
-
withSize
Copy the current immutable object by setting a value for thesizeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for size- Returns:
- A modified copy or the
thisobject
-
withMode
Copy the current immutable object by setting a value for themodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mode- Returns:
- A modified copy or the
thisobject
-
withExternal
Copy the current immutable object by setting a value for theexternalattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for external- Returns:
- A modified copy or the
thisobject
-
withPublic
Copy the current immutable object by setting a value for thepublicattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isPublic- Returns:
- A modified copy or the
thisobject
-
withDisplayAsBot
Copy the current immutable object by setting a value for thedisplayAsBotattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for displayAsBot- Returns:
- A modified copy or the
thisobject
-
withUsername
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username- Returns:
- A modified copy or the
thisobject
-
withUrlPrivate
Copy the current immutable object by setting a value for theurlPrivateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for urlPrivate- Returns:
- A modified copy or the
thisobject
-
withUrlPrivateDownload
Copy the current immutable object by setting a present value for the optionalurlPrivateDownloadattribute.- Parameters:
value- The value for urlPrivateDownload,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUrlPrivateDownload
Copy the current immutable object by setting an optional value for theurlPrivateDownloadattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for urlPrivateDownload- Returns:
- A modified copy or
thisif not changed
-
withPermalink
Copy the current immutable object by setting a value for thepermalinkattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for permalink- Returns:
- A modified copy or the
thisobject
-
withPermalinkPublic
Copy the current immutable object by setting a present value for the optionalpermalinkPublicattribute.- Parameters:
value- The value for permalinkPublic,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPermalinkPublic
Copy the current immutable object by setting an optional value for thepermalinkPublicattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for permalinkPublic- Returns:
- A modified copy or
thisif not changed
-
withCommentsCount
Copy the current immutable object by setting a value for thecommentsCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commentsCount- Returns:
- A modified copy or the
thisobject
-
withStarred
Copy the current immutable object by setting a present value for the optionalstarredattribute.- Parameters:
value- The value for starred,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStarred
Copy the current immutable object by setting an optional value for thestarredattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for starred- Returns:
- A modified copy or
thisif not changed
-
withChannelIds
Copy the current immutable object with elements that replace the content ofchannelIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChannelIds
Copy the current immutable object with elements that replace the content ofchannelIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of channelIds elements to set- Returns:
- A modified copy or
thisif not changed
-
withGroupIds
Copy the current immutable object with elements that replace the content ofgroupIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGroupIds
Copy the current immutable object with elements that replace the content ofgroupIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of groupIds elements to set- Returns:
- A modified copy or
thisif not changed
-
withImIds
Copy the current immutable object with elements that replace the content ofimIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withImIds
Copy the current immutable object with elements that replace the content ofimIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of imIds elements to set- Returns:
- A modified copy or
thisif not changed
-
withThumb64Url
Copy the current immutable object by setting a present value for the optionalthumb64Urlattribute.- Parameters:
value- The value for thumb64Url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb64Url
Copy the current immutable object by setting an optional value for thethumb64Urlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb64Url- Returns:
- A modified copy or
thisif not changed
-
withThumb80Url
Copy the current immutable object by setting a present value for the optionalthumb80Urlattribute.- Parameters:
value- The value for thumb80Url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb80Url
Copy the current immutable object by setting an optional value for thethumb80Urlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb80Url- Returns:
- A modified copy or
thisif not changed
-
withThumb160Url
Copy the current immutable object by setting a present value for the optionalthumb160Urlattribute.- Parameters:
value- The value for thumb160Url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb160Url
Copy the current immutable object by setting an optional value for thethumb160Urlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb160Url- Returns:
- A modified copy or
thisif not changed
-
withThumb360Url
Copy the current immutable object by setting a present value for the optionalthumb360Urlattribute.- Parameters:
value- The value for thumb360Url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb360Url
Copy the current immutable object by setting an optional value for thethumb360Urlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb360Url- Returns:
- A modified copy or
thisif not changed
-
withThumb360Width
Copy the current immutable object by setting a present value for the optionalthumb360Widthattribute.- Parameters:
value- The value for thumb360Width,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb360Width
Copy the current immutable object by setting an optional value for thethumb360Widthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb360Width- Returns:
- A modified copy or
thisif not changed
-
withThumb360Height
Copy the current immutable object by setting a present value for the optionalthumb360Heightattribute.- Parameters:
value- The value for thumb360Height,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb360Height
Copy the current immutable object by setting an optional value for thethumb360Heightattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb360Height- Returns:
- A modified copy or
thisif not changed
-
withThumb480Url
Copy the current immutable object by setting a present value for the optionalthumb480Urlattribute.- Parameters:
value- The value for thumb480Url,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb480Url
Copy the current immutable object by setting an optional value for thethumb480Urlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb480Url- Returns:
- A modified copy or
thisif not changed
-
withThumb480Width
Copy the current immutable object by setting a present value for the optionalthumb480Widthattribute.- Parameters:
value- The value for thumb480Width,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb480Width
Copy the current immutable object by setting an optional value for thethumb480Widthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb480Width- Returns:
- A modified copy or
thisif not changed
-
withThumb480Height
Copy the current immutable object by setting a present value for the optionalthumb480Heightattribute.- Parameters:
value- The value for thumb480Height,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThumb480Height
Copy the current immutable object by setting an optional value for thethumb480Heightattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for thumb480Height- Returns:
- A modified copy or
thisif not changed
-
withImageExifRotation
Copy the current immutable object by setting a present value for the optionalimageExifRotationattribute.- Parameters:
value- The value for imageExifRotation,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImageExifRotation
Copy the current immutable object by setting an optional value for theimageExifRotationattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for imageExifRotation- Returns:
- A modified copy or
thisif not changed
-
withOriginalWidth
Copy the current immutable object by setting a present value for the optionaloriginalWidthattribute.- Parameters:
value- The value for originalWidth,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOriginalWidth
Copy the current immutable object by setting an optional value for theoriginalWidthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for originalWidth- Returns:
- A modified copy or
thisif not changed
-
withOriginalHeight
Copy the current immutable object by setting a present value for the optionaloriginalHeightattribute.- Parameters:
value- The value for originalHeight,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOriginalHeight
Copy the current immutable object by setting an optional value for theoriginalHeightattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for originalHeight- Returns:
- A modified copy or
thisif not changed
-
withHasRichPreview
Copy the current immutable object by setting a value for thehasRichPreviewattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasRichPreview- Returns:
- A modified copy or the
thisobject
-
withFiletype
Copy the current immutable object by setting a value for thefiletypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for filetype- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackJpgFilethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,createdEpochSeconds,timestampEpochSeconds,name,title,mimetype,prettyType,userId,editable,size,mode,external,isPublic,publicUrlShared,displayAsBot,username,urlPrivate,urlPrivateDownload,permalink,permalinkPublic,commentsCount,starred,channelIds,groupIds,imIds,thumb64Url,thumb80Url,thumb160Url,thumb360Url,thumb360Width,thumb360Height,thumb480Url,thumb480Width,thumb480Height,imageExifRotation,originalWidth,originalHeight,hasRichPreview,filetype. -
toString
Prints the immutable valueSlackJpgFilewith attribute values. -
copyOf
Creates an immutable copy of aSlackJpgFileIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SlackJpgFile instance
-
builder
Creates a builder forSlackJpgFile.SlackJpgFile.builder() .setId(String) // requiredid.setCreatedEpochSeconds(long) // requiredcreatedEpochSeconds.setTimestampEpochSeconds(long) // requiredtimestampEpochSeconds.setName(String) // requiredname.setTitle(String) // requiredtitle.setMimetype(String) // requiredmimetype.setPrettyType(String) // requiredprettyType.setUserId(String) // requireduserId.setEditable(boolean) // requirededitable.setSize(long) // requiredsize.setMode(String) // requiredmode.setExternal(boolean) // requiredexternal.setPublic(boolean) // requiredpublic.setPublicUrlShared(boolean) // requiredpublicUrlShared.setDisplayAsBot(boolean) // requireddisplayAsBot.setUsername(String) // requiredusername.setUrlPrivate(String) // requiredurlPrivate.setUrlPrivateDownload(Optional<String>) // optionalurlPrivateDownload.setPermalink(String) // requiredpermalink.setPermalinkPublic(Optional<String>) // optionalpermalinkPublic.setCommentsCount(int) // optionalcommentsCount.setStarred(Optional<Boolean>) // optionalstarred.addChannelIds|addAllChannelIds(String) //channelIdselements .addGroupIds|addAllGroupIds(String) //groupIdselements .addImIds|addAllImIds(String) //imIdselements .setThumb64Url(Optional<String>) // optionalthumb64Url.setThumb80Url(Optional<String>) // optionalthumb80Url.setThumb160Url(Optional<String>) // optionalthumb160Url.setThumb360Url(Optional<String>) // optionalthumb360Url.setThumb360Width(Optional<Integer>) // optionalthumb360Width.setThumb360Height(Optional<Integer>) // optionalthumb360Height.setThumb480Url(Optional<String>) // optionalthumb480Url.setThumb480Width(Optional<Integer>) // optionalthumb480Width.setThumb480Height(Optional<Integer>) // optionalthumb480Height.setImageExifRotation(Optional<Integer>) // optionalimageExifRotation.setOriginalWidth(Optional<Integer>) // optionaloriginalWidth.setOriginalHeight(Optional<Integer>) // optionaloriginalHeight.setHasRichPreview(boolean) // requiredhasRichPreview.setFiletype(com.hubspot.slack.client.models.files.SlackFileType) // optionalfiletype.build();- Returns:
- A new SlackJpgFile builder
-