@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackPngFileIF"}) @Immutable public final class SlackPngFile extends Object implements SlackPngFileIF
SlackPngFileIF.
Use the builder to create immutable instances:
SlackPngFile.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackPngFile.Builder
Builds instances of type
SlackPngFile. |
| Modifier and Type | Method and Description |
|---|---|
static SlackPngFile.Builder |
builder()
Creates a builder for
SlackPngFile. |
static SlackPngFile |
copyOf(SlackPngFileIF instance)
Creates an immutable copy of a
SlackPngFileIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackPngFile that have equal attribute values. |
List<String> |
getChannelIds() |
int |
getCommentsCount() |
long |
getCreatedEpochSeconds() |
boolean |
getDisplayAsBot() |
SlackFileType |
getFiletype() |
List<String> |
getGroupIds() |
String |
getId() |
Optional<Integer> |
getImageExifRotation() |
List<String> |
getImIds() |
String |
getMimetype() |
String |
getMode() |
String |
getName() |
Optional<Integer> |
getOriginalHeight() |
Optional<Integer> |
getOriginalWidth() |
String |
getPermalink() |
Optional<String> |
getPermalinkPublic() |
String |
getPrettyType() |
long |
getSize() |
Optional<String> |
getThumb160Url() |
Optional<Integer> |
getThumb360Height() |
Optional<String> |
getThumb360Url() |
Optional<Integer> |
getThumb360Width() |
Optional<Integer> |
getThumb480Height() |
Optional<String> |
getThumb480Url() |
Optional<Integer> |
getThumb480Width() |
Optional<String> |
getThumb64Url() |
Optional<String> |
getThumb80Url() |
long |
getTimestampEpochSeconds() |
String |
getTitle() |
String |
getUrlPrivate() |
Optional<String> |
getUrlPrivateDownload() |
String |
getUserId() |
String |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
filetype, thumb64Url, thumb80Url, thumb160Url, thumb360Url, thumb360Width, thumb360Height, thumb480Url, thumb480Width, thumb480Height, imageExifRotation, originalWidth, originalHeight, hasRichPreview, 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. |
boolean |
hasRichPreview() |
boolean |
isEditable() |
boolean |
isExternal() |
boolean |
isPublic() |
boolean |
isPublicUrlShared() |
Optional<Boolean> |
isStarred() |
String |
toString()
Prints the immutable value
SlackPngFile with attribute values. |
SlackPngFile |
withChannelIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
channelIds. |
SlackPngFile |
withChannelIds(String... elements)
Copy the current immutable object with elements that replace the content of
channelIds. |
SlackPngFile |
withCommentsCount(int commentsCount)
Copy the current immutable object by setting a value for the
commentsCount attribute. |
SlackPngFile |
withCreatedEpochSeconds(long createdEpochSeconds)
Copy the current immutable object by setting a value for the
createdEpochSeconds attribute. |
SlackPngFile |
withDisplayAsBot(boolean displayAsBot)
Copy the current immutable object by setting a value for the
displayAsBot attribute. |
SlackPngFile |
withEditable(boolean editable)
Copy the current immutable object by setting a value for the
editable attribute. |
SlackPngFile |
withExternal(boolean external)
Copy the current immutable object by setting a value for the
external attribute. |
SlackPngFile |
withFiletype(SlackFileType filetype)
Copy the current immutable object by setting a value for the
filetype attribute. |
SlackPngFile |
withGroupIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
groupIds. |
SlackPngFile |
withGroupIds(String... elements)
Copy the current immutable object with elements that replace the content of
groupIds. |
SlackPngFile |
withHasRichPreview(boolean hasRichPreview)
Copy the current immutable object by setting a value for the
hasRichPreview attribute. |
SlackPngFile |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackPngFile |
withImageExifRotation(Integer value)
Copy the current immutable object by setting a present value for the optional
imageExifRotation attribute. |
SlackPngFile |
withImageExifRotation(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
imageExifRotation attribute. |
SlackPngFile |
withImIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
imIds. |
SlackPngFile |
withImIds(String... elements)
Copy the current immutable object with elements that replace the content of
imIds. |
SlackPngFile |
withIsPublic(boolean isPublic)
Copy the current immutable object by setting a value for the
isPublic attribute. |
SlackPngFile |
withMimetype(String mimetype)
Copy the current immutable object by setting a value for the
mimetype attribute. |
SlackPngFile |
withMode(String mode)
Copy the current immutable object by setting a value for the
mode attribute. |
SlackPngFile |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackPngFile |
withOriginalHeight(Integer value)
Copy the current immutable object by setting a present value for the optional
originalHeight attribute. |
SlackPngFile |
withOriginalHeight(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
originalHeight attribute. |
SlackPngFile |
withOriginalWidth(Integer value)
Copy the current immutable object by setting a present value for the optional
originalWidth attribute. |
SlackPngFile |
withOriginalWidth(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
originalWidth attribute. |
SlackPngFile |
withPermalink(String permalink)
Copy the current immutable object by setting a value for the
permalink attribute. |
SlackPngFile |
withPermalinkPublic(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
permalinkPublic attribute. |
SlackPngFile |
withPermalinkPublic(String value)
Copy the current immutable object by setting a present value for the optional
permalinkPublic attribute. |
SlackPngFile |
withPrettyType(String prettyType)
Copy the current immutable object by setting a value for the
prettyType attribute. |
SlackPngFile |
withPublicUrlShared(boolean publicUrlShared)
Copy the current immutable object by setting a value for the
publicUrlShared attribute. |
SlackPngFile |
withSize(long size)
Copy the current immutable object by setting a value for the
size attribute. |
SlackPngFile |
withStarred(Boolean value)
Copy the current immutable object by setting a present value for the optional
starred attribute. |
SlackPngFile |
withStarred(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
starred attribute. |
SlackPngFile |
withThumb160Url(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumb160Url attribute. |
SlackPngFile |
withThumb160Url(String value)
Copy the current immutable object by setting a present value for the optional
thumb160Url attribute. |
SlackPngFile |
withThumb360Height(Integer value)
Copy the current immutable object by setting a present value for the optional
thumb360Height attribute. |
SlackPngFile |
withThumb360Height(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
thumb360Height attribute. |
SlackPngFile |
withThumb360Url(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumb360Url attribute. |
SlackPngFile |
withThumb360Url(String value)
Copy the current immutable object by setting a present value for the optional
thumb360Url attribute. |
SlackPngFile |
withThumb360Width(Integer value)
Copy the current immutable object by setting a present value for the optional
thumb360Width attribute. |
SlackPngFile |
withThumb360Width(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
thumb360Width attribute. |
SlackPngFile |
withThumb480Height(Integer value)
Copy the current immutable object by setting a present value for the optional
thumb480Height attribute. |
SlackPngFile |
withThumb480Height(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
thumb480Height attribute. |
SlackPngFile |
withThumb480Url(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumb480Url attribute. |
SlackPngFile |
withThumb480Url(String value)
Copy the current immutable object by setting a present value for the optional
thumb480Url attribute. |
SlackPngFile |
withThumb480Width(Integer value)
Copy the current immutable object by setting a present value for the optional
thumb480Width attribute. |
SlackPngFile |
withThumb480Width(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
thumb480Width attribute. |
SlackPngFile |
withThumb64Url(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumb64Url attribute. |
SlackPngFile |
withThumb64Url(String value)
Copy the current immutable object by setting a present value for the optional
thumb64Url attribute. |
SlackPngFile |
withThumb80Url(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumb80Url attribute. |
SlackPngFile |
withThumb80Url(String value)
Copy the current immutable object by setting a present value for the optional
thumb80Url attribute. |
SlackPngFile |
withTimestampEpochSeconds(long timestampEpochSeconds)
Copy the current immutable object by setting a value for the
timestampEpochSeconds attribute. |
SlackPngFile |
withTitle(String title)
Copy the current immutable object by setting a value for the
title attribute. |
SlackPngFile |
withUrlPrivate(String urlPrivate)
Copy the current immutable object by setting a value for the
urlPrivate attribute. |
SlackPngFile |
withUrlPrivateDownload(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
urlPrivateDownload attribute. |
SlackPngFile |
withUrlPrivateDownload(String value)
Copy the current immutable object by setting a present value for the optional
urlPrivateDownload attribute. |
SlackPngFile |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
SlackPngFile |
withUsername(String username)
Copy the current immutable object by setting a value for the
username attribute. |
public SlackFileType getFiletype()
getFiletype in interface SlackFilegetFiletype in interface SlackPngFileIFfiletype attributepublic Optional<String> getThumb64Url()
getThumb64Url in interface SlackImageFilethumb64Url attributepublic Optional<String> getThumb80Url()
getThumb80Url in interface SlackImageFilethumb80Url attributepublic Optional<String> getThumb160Url()
getThumb160Url in interface SlackImageFilethumb160Url attributepublic Optional<String> getThumb360Url()
getThumb360Url in interface SlackImageFilethumb360Url attributepublic Optional<Integer> getThumb360Width()
getThumb360Width in interface SlackImageFilethumb360Width attributepublic Optional<Integer> getThumb360Height()
getThumb360Height in interface SlackImageFilethumb360Height attributepublic Optional<String> getThumb480Url()
getThumb480Url in interface SlackImageFilethumb480Url attributepublic Optional<Integer> getThumb480Width()
getThumb480Width in interface SlackImageFilethumb480Width attributepublic Optional<Integer> getThumb480Height()
getThumb480Height in interface SlackImageFilethumb480Height attributepublic Optional<Integer> getImageExifRotation()
getImageExifRotation in interface SlackImageFileimageExifRotation attributepublic Optional<Integer> getOriginalWidth()
getOriginalWidth in interface SlackImageFileoriginalWidth attributepublic Optional<Integer> getOriginalHeight()
getOriginalHeight in interface SlackImageFileoriginalHeight attributepublic boolean hasRichPreview()
hasRichPreview in interface SlackImageFilehasRichPreview attributepublic String getId()
public long getCreatedEpochSeconds()
getCreatedEpochSeconds in interface SlackFilecreatedEpochSeconds attributepublic long getTimestampEpochSeconds()
getTimestampEpochSeconds in interface SlackFiletimestampEpochSeconds attributepublic String getName()
public String getTitle()
public String getMimetype()
getMimetype in interface SlackFilemimetype attributepublic String getPrettyType()
getPrettyType in interface SlackFileprettyType attributepublic String getUserId()
public boolean isEditable()
isEditable in interface SlackFileeditable attributepublic long getSize()
public String getMode()
public boolean isExternal()
isExternal in interface SlackFileexternal attributepublic boolean isPublic()
public boolean isPublicUrlShared()
isPublicUrlShared in interface SlackFilepublicUrlShared attributepublic boolean getDisplayAsBot()
getDisplayAsBot in interface SlackFiledisplayAsBot attributepublic String getUsername()
getUsername in interface SlackFileusername attributepublic String getUrlPrivate()
getUrlPrivate in interface SlackFileurlPrivate attributepublic Optional<String> getUrlPrivateDownload()
getUrlPrivateDownload in interface SlackFileurlPrivateDownload attributepublic String getPermalink()
getPermalink in interface SlackFilepermalink attributepublic Optional<String> getPermalinkPublic()
getPermalinkPublic in interface SlackFilepermalinkPublic attributepublic int getCommentsCount()
getCommentsCount in interface SlackFilecommentsCount attributepublic List<String> getChannelIds()
getChannelIds in interface SlackFilechannelIds attributepublic List<String> getGroupIds()
getGroupIds in interface SlackFilegroupIds attributepublic final SlackPngFile withFiletype(SlackFileType filetype)
filetype attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.filetype - A new value for filetypethis objectpublic final SlackPngFile withThumb64Url(@Nullable String value)
thumb64Url attribute.value - The value for thumb64Url, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb64Url(Optional<String> optional)
thumb64Url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb64Urlthis objectpublic final SlackPngFile withThumb80Url(@Nullable String value)
thumb80Url attribute.value - The value for thumb80Url, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb80Url(Optional<String> optional)
thumb80Url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb80Urlthis objectpublic final SlackPngFile withThumb160Url(@Nullable String value)
thumb160Url attribute.value - The value for thumb160Url, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb160Url(Optional<String> optional)
thumb160Url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb160Urlthis objectpublic final SlackPngFile withThumb360Url(@Nullable String value)
thumb360Url attribute.value - The value for thumb360Url, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb360Url(Optional<String> optional)
thumb360Url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb360Urlthis objectpublic final SlackPngFile withThumb360Width(@Nullable Integer value)
thumb360Width attribute.value - The value for thumb360Width, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb360Width(Optional<Integer> optional)
thumb360Width attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb360Widththis objectpublic final SlackPngFile withThumb360Height(@Nullable Integer value)
thumb360Height attribute.value - The value for thumb360Height, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb360Height(Optional<Integer> optional)
thumb360Height attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb360Heightthis objectpublic final SlackPngFile withThumb480Url(@Nullable String value)
thumb480Url attribute.value - The value for thumb480Url, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb480Url(Optional<String> optional)
thumb480Url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb480Urlthis objectpublic final SlackPngFile withThumb480Width(@Nullable Integer value)
thumb480Width attribute.value - The value for thumb480Width, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb480Width(Optional<Integer> optional)
thumb480Width attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb480Widththis objectpublic final SlackPngFile withThumb480Height(@Nullable Integer value)
thumb480Height attribute.value - The value for thumb480Height, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withThumb480Height(Optional<Integer> optional)
thumb480Height attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumb480Heightthis objectpublic final SlackPngFile withImageExifRotation(@Nullable Integer value)
imageExifRotation attribute.value - The value for imageExifRotation, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withImageExifRotation(Optional<Integer> optional)
imageExifRotation attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for imageExifRotationthis objectpublic final SlackPngFile withOriginalWidth(@Nullable Integer value)
originalWidth attribute.value - The value for originalWidth, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withOriginalWidth(Optional<Integer> optional)
originalWidth attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for originalWidththis objectpublic final SlackPngFile withOriginalHeight(@Nullable Integer value)
originalHeight attribute.value - The value for originalHeight, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withOriginalHeight(Optional<Integer> optional)
originalHeight attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for originalHeightthis objectpublic final SlackPngFile withHasRichPreview(boolean hasRichPreview)
hasRichPreview attribute.
A value equality check is used to prevent copying of the same value by returning this.hasRichPreview - A new value for hasRichPreviewthis objectpublic final SlackPngFile withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackPngFile withCreatedEpochSeconds(long createdEpochSeconds)
createdEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.createdEpochSeconds - A new value for createdEpochSecondsthis objectpublic final SlackPngFile withTimestampEpochSeconds(long timestampEpochSeconds)
timestampEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.timestampEpochSeconds - A new value for timestampEpochSecondsthis objectpublic final SlackPngFile withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final SlackPngFile withTitle(String title)
title attribute.
An equals check used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final SlackPngFile withMimetype(String mimetype)
mimetype attribute.
An equals check used to prevent copying of the same value by returning this.mimetype - A new value for mimetypethis objectpublic final SlackPngFile withPrettyType(String prettyType)
prettyType attribute.
An equals check used to prevent copying of the same value by returning this.prettyType - A new value for prettyTypethis objectpublic final SlackPngFile withUserId(String userId)
userId attribute.
An equals check used to prevent copying of the same value by returning this.userId - A new value for userIdthis objectpublic final SlackPngFile withEditable(boolean editable)
editable attribute.
A value equality check is used to prevent copying of the same value by returning this.editable - A new value for editablethis objectpublic final SlackPngFile withSize(long size)
size attribute.
A value equality check is used to prevent copying of the same value by returning this.size - A new value for sizethis objectpublic final SlackPngFile withMode(String mode)
mode attribute.
An equals check used to prevent copying of the same value by returning this.mode - A new value for modethis objectpublic final SlackPngFile withExternal(boolean external)
external attribute.
A value equality check is used to prevent copying of the same value by returning this.external - A new value for externalthis objectpublic final SlackPngFile withIsPublic(boolean isPublic)
isPublic attribute.
A value equality check is used to prevent copying of the same value by returning this.isPublic - A new value for isPublicthis objectpublic final SlackPngFile withPublicUrlShared(boolean publicUrlShared)
publicUrlShared attribute.
A value equality check is used to prevent copying of the same value by returning this.publicUrlShared - A new value for publicUrlSharedthis objectpublic final SlackPngFile withDisplayAsBot(boolean displayAsBot)
displayAsBot attribute.
A value equality check is used to prevent copying of the same value by returning this.displayAsBot - A new value for displayAsBotthis objectpublic final SlackPngFile withUsername(String username)
username attribute.
An equals check used to prevent copying of the same value by returning this.username - A new value for usernamethis objectpublic final SlackPngFile withUrlPrivate(String urlPrivate)
urlPrivate attribute.
An equals check used to prevent copying of the same value by returning this.urlPrivate - A new value for urlPrivatethis objectpublic final SlackPngFile withUrlPrivateDownload(@Nullable String value)
urlPrivateDownload attribute.value - The value for urlPrivateDownload, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withUrlPrivateDownload(Optional<String> optional)
urlPrivateDownload attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for urlPrivateDownloadthis objectpublic final SlackPngFile withPermalink(String permalink)
permalink attribute.
An equals check used to prevent copying of the same value by returning this.permalink - A new value for permalinkthis objectpublic final SlackPngFile withPermalinkPublic(@Nullable String value)
permalinkPublic attribute.value - The value for permalinkPublic, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withPermalinkPublic(Optional<String> optional)
permalinkPublic attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for permalinkPublicthis objectpublic final SlackPngFile withCommentsCount(int commentsCount)
commentsCount attribute.
A value equality check is used to prevent copying of the same value by returning this.commentsCount - A new value for commentsCountthis objectpublic final SlackPngFile withStarred(@Nullable Boolean value)
starred attribute.value - The value for starred, null is accepted as java.util.Optional.empty()this objectpublic final SlackPngFile withStarred(Optional<Boolean> optional)
starred attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for starredthis objectpublic final SlackPngFile withChannelIds(String... elements)
channelIds.elements - The elements to setthis objectpublic final SlackPngFile withChannelIds(Iterable<String> elements)
channelIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of channelIds elements to setthis objectpublic final SlackPngFile withGroupIds(String... elements)
groupIds.elements - The elements to setthis objectpublic final SlackPngFile withGroupIds(Iterable<String> elements)
groupIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of groupIds elements to setthis objectpublic final SlackPngFile withImIds(String... elements)
imIds.elements - The elements to setthis objectpublic final SlackPngFile withImIds(Iterable<String> elements)
imIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of imIds elements to setthis objectpublic boolean equals(@Nullable Object another)
SlackPngFile that have equal attribute values.public int hashCode()
filetype, thumb64Url, thumb80Url, thumb160Url, thumb360Url, thumb360Width, thumb360Height, thumb480Url, thumb480Width, thumb480Height, imageExifRotation, originalWidth, originalHeight, hasRichPreview, 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.public String toString()
SlackPngFile with attribute values.public static SlackPngFile copyOf(SlackPngFileIF instance)
SlackPngFileIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackPngFile.Builder builder()
SlackPngFile.Copyright © 2019. All rights reserved.