Class SlackAccessDeniedFile
java.lang.Object
com.hubspot.slack.client.models.files.SlackAccessDeniedFile
- All Implemented Interfaces:
SlackAccessDeniedFileIF,SlackFile,SlackFileError
@Generated(from="SlackAccessDeniedFileIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackAccessDeniedFile
extends Object
implements SlackAccessDeniedFileIF
Immutable implementation of
SlackAccessDeniedFileIF.
Use the builder to create immutable instances:
SlackAccessDeniedFile.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackAccessDeniedFile. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackAccessDeniedFile.static SlackAccessDeniedFilecopyOf(SlackAccessDeniedFileIF instance) Creates an immutable copy of aSlackAccessDeniedFileIFvalue.booleanThis instance is equal to all instances ofSlackAccessDeniedFilethat have equal attribute values.intlongbooleangetId()getImIds()getMode()getName()longgetSize()longgetTitle()inthashCode()Computes a hash code from attributes:fileAccess,id,createdEpochSeconds,timestampEpochSeconds,name,title,mimetype,filetype,prettyType,userId,editable,size,mode,external,isPublic,publicUrlShared,displayAsBot,username,urlPrivate,urlPrivateDownload,permalink,permalinkPublic,commentsCount,starred,channelIds,groupIds,imIds.booleanbooleanbooleanisPublic()booleantoString()Prints the immutable valueSlackAccessDeniedFilewith attribute values.final SlackAccessDeniedFilewithChannelIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchannelIds.final SlackAccessDeniedFilewithChannelIds(String... elements) Copy the current immutable object with elements that replace the content ofchannelIds.final SlackAccessDeniedFilewithCommentsCount(int value) Copy the current immutable object by setting a value for thecommentsCountattribute.final SlackAccessDeniedFilewithCreatedEpochSeconds(long value) Copy the current immutable object by setting a value for thecreatedEpochSecondsattribute.final SlackAccessDeniedFilewithDisplayAsBot(boolean value) Copy the current immutable object by setting a value for thedisplayAsBotattribute.final SlackAccessDeniedFilewithEditable(boolean value) Copy the current immutable object by setting a value for theeditableattribute.final SlackAccessDeniedFilewithExternal(boolean value) Copy the current immutable object by setting a value for theexternalattribute.final SlackAccessDeniedFilewithFileAccess(String value) Copy the current immutable object by setting a value for thefileAccessattribute.final SlackAccessDeniedFilewithFiletype(SlackFileType value) Copy the current immutable object by setting a value for thefiletypeattribute.final SlackAccessDeniedFilewithGroupIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofgroupIds.final SlackAccessDeniedFilewithGroupIds(String... elements) Copy the current immutable object with elements that replace the content ofgroupIds.final SlackAccessDeniedFileCopy the current immutable object by setting a value for theidattribute.final SlackAccessDeniedFileCopy the current immutable object with elements that replace the content ofimIds.final SlackAccessDeniedFileCopy the current immutable object with elements that replace the content ofimIds.final SlackAccessDeniedFilewithMimetype(String value) Copy the current immutable object by setting a value for themimetypeattribute.final SlackAccessDeniedFileCopy the current immutable object by setting a value for themodeattribute.final SlackAccessDeniedFileCopy the current immutable object by setting a value for thenameattribute.final SlackAccessDeniedFilewithPermalink(String value) Copy the current immutable object by setting a value for thepermalinkattribute.final SlackAccessDeniedFilewithPermalinkPublic(String value) Copy the current immutable object by setting a present value for the optionalpermalinkPublicattribute.final SlackAccessDeniedFilewithPermalinkPublic(Optional<String> optional) Copy the current immutable object by setting an optional value for thepermalinkPublicattribute.final SlackAccessDeniedFilewithPrettyType(String value) Copy the current immutable object by setting a value for theprettyTypeattribute.final SlackAccessDeniedFilewithPublic(boolean value) Copy the current immutable object by setting a value for thepublicattribute.final SlackAccessDeniedFilewithPublicUrlShared(boolean value) Copy the current immutable object by setting a value for thepublicUrlSharedattribute.final SlackAccessDeniedFilewithSize(long value) Copy the current immutable object by setting a value for thesizeattribute.final SlackAccessDeniedFilewithStarred(Boolean value) Copy the current immutable object by setting a present value for the optionalstarredattribute.final SlackAccessDeniedFilewithStarred(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thestarredattribute.final SlackAccessDeniedFilewithTimestampEpochSeconds(long value) Copy the current immutable object by setting a value for thetimestampEpochSecondsattribute.final SlackAccessDeniedFileCopy the current immutable object by setting a value for thetitleattribute.final SlackAccessDeniedFilewithUrlPrivate(String value) Copy the current immutable object by setting a value for theurlPrivateattribute.final SlackAccessDeniedFilewithUrlPrivateDownload(String value) Copy the current immutable object by setting a present value for the optionalurlPrivateDownloadattribute.final SlackAccessDeniedFilewithUrlPrivateDownload(Optional<String> optional) Copy the current immutable object by setting an optional value for theurlPrivateDownloadattribute.final SlackAccessDeniedFilewithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final SlackAccessDeniedFilewithUsername(String value) Copy the current immutable object by setting a value for theusernameattribute.
-
Method Details
-
getFileAccess
- Specified by:
getFileAccessin interfaceSlackFileError- Returns:
- The value of the
fileAccessattribute
-
getId
- Specified by:
getIdin interfaceSlackFile- Specified by:
getIdin interfaceSlackFileError- Returns:
- The value of the
idattribute
-
getCreatedEpochSeconds
public long getCreatedEpochSeconds()- Specified by:
getCreatedEpochSecondsin interfaceSlackFile- Specified by:
getCreatedEpochSecondsin interfaceSlackFileError- Returns:
- The value of the
createdEpochSecondsattribute
-
getTimestampEpochSeconds
public long getTimestampEpochSeconds()- Specified by:
getTimestampEpochSecondsin interfaceSlackFile- Specified by:
getTimestampEpochSecondsin interfaceSlackFileError- Returns:
- The value of the
timestampEpochSecondsattribute
-
getName
- Specified by:
getNamein interfaceSlackFile- Specified by:
getNamein interfaceSlackFileError- Returns:
- The value of the
nameattribute
-
getTitle
- Specified by:
getTitlein interfaceSlackFile- Specified by:
getTitlein interfaceSlackFileError- Returns:
- The value of the
titleattribute
-
getMimetype
- Specified by:
getMimetypein interfaceSlackFile- Specified by:
getMimetypein interfaceSlackFileError- Returns:
- The value of the
mimetypeattribute
-
getFiletype
- Specified by:
getFiletypein interfaceSlackFile- Specified by:
getFiletypein interfaceSlackFileError- Returns:
- The value of the
filetypeattribute
-
getPrettyType
- Specified by:
getPrettyTypein interfaceSlackFile- Specified by:
getPrettyTypein interfaceSlackFileError- Returns:
- The value of the
prettyTypeattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlackFile- Specified by:
getUserIdin interfaceSlackFileError- Returns:
- The value of the
userIdattribute
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceSlackFile- Specified by:
isEditablein interfaceSlackFileError- Returns:
- The value of the
editableattribute
-
getSize
public long getSize()- Specified by:
getSizein interfaceSlackFile- Specified by:
getSizein interfaceSlackFileError- Returns:
- The value of the
sizeattribute
-
getMode
- Specified by:
getModein interfaceSlackFile- Specified by:
getModein interfaceSlackFileError- Returns:
- The value of the
modeattribute
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceSlackFile- Specified by:
isExternalin interfaceSlackFileError- Returns:
- The value of the
externalattribute
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceSlackFile- Specified by:
isPublicin interfaceSlackFileError- Returns:
- The value of the
isPublicattribute
-
getDisplayAsBot
public boolean getDisplayAsBot()- Specified by:
getDisplayAsBotin interfaceSlackFile- Specified by:
getDisplayAsBotin interfaceSlackFileError- Returns:
- The value of the
displayAsBotattribute
-
getUsername
- Specified by:
getUsernamein interfaceSlackFile- Specified by:
getUsernamein interfaceSlackFileError- Returns:
- The value of the
usernameattribute
-
getUrlPrivate
- Specified by:
getUrlPrivatein interfaceSlackFile- Specified by:
getUrlPrivatein interfaceSlackFileError- Returns:
- The value of the
urlPrivateattribute
-
getUrlPrivateDownload
- Specified by:
getUrlPrivateDownloadin interfaceSlackFile- Specified by:
getUrlPrivateDownloadin interfaceSlackFileError- Returns:
- The value of the
urlPrivateDownloadattribute
-
getPermalink
- Specified by:
getPermalinkin interfaceSlackFile- Specified by:
getPermalinkin interfaceSlackFileError- Returns:
- The value of the
permalinkattribute
-
getPermalinkPublic
- Specified by:
getPermalinkPublicin interfaceSlackFile- Specified by:
getPermalinkPublicin interfaceSlackFileError- Returns:
- The value of the
permalinkPublicattribute
-
getCommentsCount
public int getCommentsCount()- Specified by:
getCommentsCountin interfaceSlackFile- Specified by:
getCommentsCountin interfaceSlackFileError- Returns:
- The value of the
commentsCountattribute
-
isStarred
- Specified by:
isStarredin interfaceSlackFile- Specified by:
isStarredin interfaceSlackFileError- Returns:
- The value of the
starredattribute
-
getChannelIds
- Specified by:
getChannelIdsin interfaceSlackFile- Specified by:
getChannelIdsin interfaceSlackFileError- Returns:
- The value of the
channelIdsattribute
-
getGroupIds
- Specified by:
getGroupIdsin interfaceSlackFile- Specified by:
getGroupIdsin interfaceSlackFileError- Returns:
- The value of the
groupIdsattribute
-
getImIds
- Specified by:
getImIdsin interfaceSlackFile- Specified by:
getImIdsin interfaceSlackFileError- Returns:
- The value of the
imIdsattribute
-
withFileAccess
Copy the current immutable object by setting a value for thefileAccessattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fileAccess- Returns:
- A modified copy or the
thisobject
-
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
-
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
-
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
-
equals
This instance is equal to all instances ofSlackAccessDeniedFilethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:fileAccess,id,createdEpochSeconds,timestampEpochSeconds,name,title,mimetype,filetype,prettyType,userId,editable,size,mode,external,isPublic,publicUrlShared,displayAsBot,username,urlPrivate,urlPrivateDownload,permalink,permalinkPublic,commentsCount,starred,channelIds,groupIds,imIds. -
toString
Prints the immutable valueSlackAccessDeniedFilewith attribute values. -
copyOf
Creates an immutable copy of aSlackAccessDeniedFileIFvalue. 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 SlackAccessDeniedFile instance
-
builder
Creates a builder forSlackAccessDeniedFile.SlackAccessDeniedFile.builder() .setFileAccess(String) // requiredfileAccess.setId(String) // optionalid.setCreatedEpochSeconds(long) // optionalcreatedEpochSeconds.setTimestampEpochSeconds(long) // optionaltimestampEpochSeconds.setName(String) // optionalname.setTitle(String) // optionaltitle.setMimetype(String) // optionalmimetype.setFiletype(com.hubspot.slack.client.models.files.SlackFileType) // optionalfiletype.setPrettyType(String) // optionalprettyType.setUserId(String) // optionaluserId.setEditable(boolean) // optionaleditable.setSize(long) // optionalsize.setMode(String) // optionalmode.setExternal(boolean) // optionalexternal.setPublic(boolean) // optionalpublic.setPublicUrlShared(boolean) // optionalpublicUrlShared.setDisplayAsBot(boolean) // optionaldisplayAsBot.setUsername(String) // optionalusername.setUrlPrivate(String) // optionalurlPrivate.setUrlPrivateDownload(Optional<String>) // optionalurlPrivateDownload.setPermalink(String) // optionalpermalink.setPermalinkPublic(Optional<String>) // optionalpermalinkPublic.setCommentsCount(int) // optionalcommentsCount.setStarred(Optional<Boolean>) // optionalstarred.addChannelIds|addAllChannelIds(String) //channelIdselements .addGroupIds|addAllGroupIds(String) //groupIdselements .addImIds|addAllImIds(String) //imIdselements .build();- Returns:
- A new SlackAccessDeniedFile builder
-