@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackTextFileIF"}) @Immutable public final class SlackTextFile extends Object implements SlackTextFileIF
SlackTextFileIF.
Use the builder to create immutable instances:
SlackTextFile.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackTextFile.Builder
Builds instances of type
SlackTextFile. |
| Modifier and Type | Method and Description |
|---|---|
static SlackTextFile.Builder |
builder()
Creates a builder for
SlackTextFile. |
static SlackTextFile |
copyOf(SlackTextFileIF instance)
Creates an immutable copy of a
SlackTextFileIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackTextFile that have equal attribute values. |
List<String> |
getChannelIds() |
int |
getCommentsCount() |
long |
getCreatedEpochSeconds() |
boolean |
getDisplayAsBot() |
String |
getEditLink() |
SlackFileType |
getFiletype() |
List<String> |
getGroupIds() |
String |
getId() |
List<String> |
getImIds() |
String |
getLines() |
String |
getLinesMore() |
String |
getMimetype() |
String |
getMode() |
String |
getName() |
String |
getPermalink() |
Optional<String> |
getPermalinkPublic() |
String |
getPrettyType() |
String |
getPreview() |
String |
getPreviewHighlight() |
long |
getSize() |
long |
getTimestampEpochSeconds() |
String |
getTitle() |
String |
getUrlPrivate() |
Optional<String> |
getUrlPrivateDownload() |
String |
getUserId() |
String |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
filetype, editLink, preview, previewHighlight, lines, linesMore, previewTruncated, 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 |
isEditable() |
boolean |
isExternal() |
boolean |
isPreviewTruncated() |
boolean |
isPublic() |
boolean |
isPublicUrlShared() |
Optional<Boolean> |
isStarred() |
String |
toString()
Prints the immutable value
SlackTextFile with attribute values. |
SlackTextFile |
withChannelIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
channelIds. |
SlackTextFile |
withChannelIds(String... elements)
Copy the current immutable object with elements that replace the content of
channelIds. |
SlackTextFile |
withCommentsCount(int commentsCount)
Copy the current immutable object by setting a value for the
commentsCount attribute. |
SlackTextFile |
withCreatedEpochSeconds(long createdEpochSeconds)
Copy the current immutable object by setting a value for the
createdEpochSeconds attribute. |
SlackTextFile |
withDisplayAsBot(boolean displayAsBot)
Copy the current immutable object by setting a value for the
displayAsBot attribute. |
SlackTextFile |
withEditable(boolean editable)
Copy the current immutable object by setting a value for the
editable attribute. |
SlackTextFile |
withEditLink(String editLink)
Copy the current immutable object by setting a value for the
editLink attribute. |
SlackTextFile |
withExternal(boolean external)
Copy the current immutable object by setting a value for the
external attribute. |
SlackTextFile |
withFiletype(SlackFileType filetype)
Copy the current immutable object by setting a value for the
filetype attribute. |
SlackTextFile |
withGroupIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
groupIds. |
SlackTextFile |
withGroupIds(String... elements)
Copy the current immutable object with elements that replace the content of
groupIds. |
SlackTextFile |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackTextFile |
withImIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
imIds. |
SlackTextFile |
withImIds(String... elements)
Copy the current immutable object with elements that replace the content of
imIds. |
SlackTextFile |
withIsPublic(boolean isPublic)
Copy the current immutable object by setting a value for the
isPublic attribute. |
SlackTextFile |
withLines(String lines)
Copy the current immutable object by setting a value for the
lines attribute. |
SlackTextFile |
withLinesMore(String linesMore)
Copy the current immutable object by setting a value for the
linesMore attribute. |
SlackTextFile |
withMimetype(String mimetype)
Copy the current immutable object by setting a value for the
mimetype attribute. |
SlackTextFile |
withMode(String mode)
Copy the current immutable object by setting a value for the
mode attribute. |
SlackTextFile |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackTextFile |
withPermalink(String permalink)
Copy the current immutable object by setting a value for the
permalink attribute. |
SlackTextFile |
withPermalinkPublic(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
permalinkPublic attribute. |
SlackTextFile |
withPermalinkPublic(String value)
Copy the current immutable object by setting a present value for the optional
permalinkPublic attribute. |
SlackTextFile |
withPrettyType(String prettyType)
Copy the current immutable object by setting a value for the
prettyType attribute. |
SlackTextFile |
withPreview(String preview)
Copy the current immutable object by setting a value for the
preview attribute. |
SlackTextFile |
withPreviewHighlight(String previewHighlight)
Copy the current immutable object by setting a value for the
previewHighlight attribute. |
SlackTextFile |
withPreviewTruncated(boolean previewTruncated)
Copy the current immutable object by setting a value for the
previewTruncated attribute. |
SlackTextFile |
withPublicUrlShared(boolean publicUrlShared)
Copy the current immutable object by setting a value for the
publicUrlShared attribute. |
SlackTextFile |
withSize(long size)
Copy the current immutable object by setting a value for the
size attribute. |
SlackTextFile |
withStarred(Boolean value)
Copy the current immutable object by setting a present value for the optional
starred attribute. |
SlackTextFile |
withStarred(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
starred attribute. |
SlackTextFile |
withTimestampEpochSeconds(long timestampEpochSeconds)
Copy the current immutable object by setting a value for the
timestampEpochSeconds attribute. |
SlackTextFile |
withTitle(String title)
Copy the current immutable object by setting a value for the
title attribute. |
SlackTextFile |
withUrlPrivate(String urlPrivate)
Copy the current immutable object by setting a value for the
urlPrivate attribute. |
SlackTextFile |
withUrlPrivateDownload(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
urlPrivateDownload attribute. |
SlackTextFile |
withUrlPrivateDownload(String value)
Copy the current immutable object by setting a present value for the optional
urlPrivateDownload attribute. |
SlackTextFile |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
SlackTextFile |
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 SlackTextFileIFfiletype attributepublic String getEditLink()
getEditLink in interface SlackTextFileCoreeditLink attributepublic String getPreview()
getPreview in interface SlackTextFileCorepreview attributepublic String getPreviewHighlight()
getPreviewHighlight in interface SlackTextFileCorepreviewHighlight attributepublic String getLines()
getLines in interface SlackTextFileCorelines attributepublic String getLinesMore()
getLinesMore in interface SlackTextFileCorelinesMore attributepublic boolean isPreviewTruncated()
isPreviewTruncated in interface SlackTextFileCorepreviewTruncated 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 SlackTextFile 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 SlackTextFile withEditLink(String editLink)
editLink attribute.
An equals check used to prevent copying of the same value by returning this.editLink - A new value for editLinkthis objectpublic final SlackTextFile withPreview(String preview)
preview attribute.
An equals check used to prevent copying of the same value by returning this.preview - A new value for previewthis objectpublic final SlackTextFile withPreviewHighlight(String previewHighlight)
previewHighlight attribute.
An equals check used to prevent copying of the same value by returning this.previewHighlight - A new value for previewHighlightthis objectpublic final SlackTextFile withLines(String lines)
lines attribute.
An equals check used to prevent copying of the same value by returning this.lines - A new value for linesthis objectpublic final SlackTextFile withLinesMore(String linesMore)
linesMore attribute.
An equals check used to prevent copying of the same value by returning this.linesMore - A new value for linesMorethis objectpublic final SlackTextFile withPreviewTruncated(boolean previewTruncated)
previewTruncated attribute.
A value equality check is used to prevent copying of the same value by returning this.previewTruncated - A new value for previewTruncatedthis objectpublic final SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile 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 SlackTextFile withUrlPrivateDownload(@Nullable String value)
urlPrivateDownload attribute.value - The value for urlPrivateDownload, null is accepted as java.util.Optional.empty()this objectpublic final SlackTextFile 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 SlackTextFile 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 SlackTextFile withPermalinkPublic(@Nullable String value)
permalinkPublic attribute.value - The value for permalinkPublic, null is accepted as java.util.Optional.empty()this objectpublic final SlackTextFile 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 SlackTextFile 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 SlackTextFile withStarred(@Nullable Boolean value)
starred attribute.value - The value for starred, null is accepted as java.util.Optional.empty()this objectpublic final SlackTextFile 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 SlackTextFile withChannelIds(String... elements)
channelIds.elements - The elements to setthis objectpublic final SlackTextFile 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 SlackTextFile withGroupIds(String... elements)
groupIds.elements - The elements to setthis objectpublic final SlackTextFile 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 SlackTextFile withImIds(String... elements)
imIds.elements - The elements to setthis objectpublic final SlackTextFile 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)
SlackTextFile that have equal attribute values.public int hashCode()
filetype, editLink, preview, previewHighlight, lines, linesMore, previewTruncated, 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()
SlackTextFile with attribute values.public static SlackTextFile copyOf(SlackTextFileIF instance)
SlackTextFileIF 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 SlackTextFile.Builder builder()
SlackTextFile.Copyright © 2019. All rights reserved.