Class SlackFileNotFoundFile

java.lang.Object
com.hubspot.slack.client.models.files.SlackFileNotFoundFile
All Implemented Interfaces:
SlackFile, SlackFileError, SlackFileNotFoundFileIF

@Generated(from="SlackFileNotFoundFileIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class SlackFileNotFoundFile extends Object implements SlackFileNotFoundFileIF
Immutable implementation of SlackFileNotFoundFileIF.

Use the builder to create immutable instances: SlackFileNotFoundFile.builder().

  • Method Details

    • getFileAccess

      public String getFileAccess()
      Specified by:
      getFileAccess in interface SlackFileError
      Returns:
      The value of the fileAccess attribute
    • getId

      public String getId()
      Specified by:
      getId in interface SlackFile
      Specified by:
      getId in interface SlackFileError
      Returns:
      The value of the id attribute
    • getCreatedEpochSeconds

      public long getCreatedEpochSeconds()
      Specified by:
      getCreatedEpochSeconds in interface SlackFile
      Specified by:
      getCreatedEpochSeconds in interface SlackFileError
      Returns:
      The value of the createdEpochSeconds attribute
    • getTimestampEpochSeconds

      public long getTimestampEpochSeconds()
      Specified by:
      getTimestampEpochSeconds in interface SlackFile
      Specified by:
      getTimestampEpochSeconds in interface SlackFileError
      Returns:
      The value of the timestampEpochSeconds attribute
    • getName

      public String getName()
      Specified by:
      getName in interface SlackFile
      Specified by:
      getName in interface SlackFileError
      Returns:
      The value of the name attribute
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface SlackFile
      Specified by:
      getTitle in interface SlackFileError
      Returns:
      The value of the title attribute
    • getMimetype

      public String getMimetype()
      Specified by:
      getMimetype in interface SlackFile
      Specified by:
      getMimetype in interface SlackFileError
      Returns:
      The value of the mimetype attribute
    • getFiletype

      public SlackFileType getFiletype()
      Specified by:
      getFiletype in interface SlackFile
      Specified by:
      getFiletype in interface SlackFileError
      Returns:
      The value of the filetype attribute
    • getPrettyType

      public String getPrettyType()
      Specified by:
      getPrettyType in interface SlackFile
      Specified by:
      getPrettyType in interface SlackFileError
      Returns:
      The value of the prettyType attribute
    • getUserId

      public String getUserId()
      Specified by:
      getUserId in interface SlackFile
      Specified by:
      getUserId in interface SlackFileError
      Returns:
      The value of the userId attribute
    • isEditable

      public boolean isEditable()
      Specified by:
      isEditable in interface SlackFile
      Specified by:
      isEditable in interface SlackFileError
      Returns:
      The value of the editable attribute
    • getSize

      public long getSize()
      Specified by:
      getSize in interface SlackFile
      Specified by:
      getSize in interface SlackFileError
      Returns:
      The value of the size attribute
    • getMode

      public String getMode()
      Specified by:
      getMode in interface SlackFile
      Specified by:
      getMode in interface SlackFileError
      Returns:
      The value of the mode attribute
    • isExternal

      public boolean isExternal()
      Specified by:
      isExternal in interface SlackFile
      Specified by:
      isExternal in interface SlackFileError
      Returns:
      The value of the external attribute
    • isPublic

      public boolean isPublic()
      Specified by:
      isPublic in interface SlackFile
      Specified by:
      isPublic in interface SlackFileError
      Returns:
      The value of the isPublic attribute
    • isPublicUrlShared

      public boolean isPublicUrlShared()
      Specified by:
      isPublicUrlShared in interface SlackFile
      Specified by:
      isPublicUrlShared in interface SlackFileError
      Returns:
      The value of the publicUrlShared attribute
    • getDisplayAsBot

      public boolean getDisplayAsBot()
      Specified by:
      getDisplayAsBot in interface SlackFile
      Specified by:
      getDisplayAsBot in interface SlackFileError
      Returns:
      The value of the displayAsBot attribute
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface SlackFile
      Specified by:
      getUsername in interface SlackFileError
      Returns:
      The value of the username attribute
    • getUrlPrivate

      public String getUrlPrivate()
      Specified by:
      getUrlPrivate in interface SlackFile
      Specified by:
      getUrlPrivate in interface SlackFileError
      Returns:
      The value of the urlPrivate attribute
    • getUrlPrivateDownload

      public Optional<String> getUrlPrivateDownload()
      Specified by:
      getUrlPrivateDownload in interface SlackFile
      Specified by:
      getUrlPrivateDownload in interface SlackFileError
      Returns:
      The value of the urlPrivateDownload attribute
    • getPermalink

      public String getPermalink()
      Specified by:
      getPermalink in interface SlackFile
      Specified by:
      getPermalink in interface SlackFileError
      Returns:
      The value of the permalink attribute
    • getPermalinkPublic

      public Optional<String> getPermalinkPublic()
      Specified by:
      getPermalinkPublic in interface SlackFile
      Specified by:
      getPermalinkPublic in interface SlackFileError
      Returns:
      The value of the permalinkPublic attribute
    • getCommentsCount

      public int getCommentsCount()
      Specified by:
      getCommentsCount in interface SlackFile
      Specified by:
      getCommentsCount in interface SlackFileError
      Returns:
      The value of the commentsCount attribute
    • isStarred

      public Optional<Boolean> isStarred()
      Specified by:
      isStarred in interface SlackFile
      Specified by:
      isStarred in interface SlackFileError
      Returns:
      The value of the starred attribute
    • getChannelIds

      public List<String> getChannelIds()
      Specified by:
      getChannelIds in interface SlackFile
      Specified by:
      getChannelIds in interface SlackFileError
      Returns:
      The value of the channelIds attribute
    • getGroupIds

      public List<String> getGroupIds()
      Specified by:
      getGroupIds in interface SlackFile
      Specified by:
      getGroupIds in interface SlackFileError
      Returns:
      The value of the groupIds attribute
    • getImIds

      public List<String> getImIds()
      Specified by:
      getImIds in interface SlackFile
      Specified by:
      getImIds in interface SlackFileError
      Returns:
      The value of the imIds attribute
    • withFileAccess

      public final SlackFileNotFoundFile withFileAccess(String value)
      Copy the current immutable object by setting a value for the fileAccess attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for fileAccess
      Returns:
      A modified copy or the this object
    • withId

      public final SlackFileNotFoundFile withId(String value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy or the this object
    • withCreatedEpochSeconds

      public final SlackFileNotFoundFile withCreatedEpochSeconds(long value)
      Copy the current immutable object by setting a value for the createdEpochSeconds attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for createdEpochSeconds
      Returns:
      A modified copy or the this object
    • withTimestampEpochSeconds

      public final SlackFileNotFoundFile withTimestampEpochSeconds(long value)
      Copy the current immutable object by setting a value for the timestampEpochSeconds attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for timestampEpochSeconds
      Returns:
      A modified copy or the this object
    • withName

      public final SlackFileNotFoundFile withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy or the this object
    • withTitle

      public final SlackFileNotFoundFile withTitle(String value)
      Copy the current immutable object by setting a value for the title attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for title
      Returns:
      A modified copy or the this object
    • withMimetype

      public final SlackFileNotFoundFile withMimetype(String value)
      Copy the current immutable object by setting a value for the mimetype attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for mimetype
      Returns:
      A modified copy or the this object
    • withFiletype

      public final SlackFileNotFoundFile withFiletype(SlackFileType value)
      Copy the current immutable object by setting a value for the filetype attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for filetype
      Returns:
      A modified copy or the this object
    • withPrettyType

      public final SlackFileNotFoundFile withPrettyType(String value)
      Copy the current immutable object by setting a value for the prettyType attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for prettyType
      Returns:
      A modified copy or the this object
    • withUserId

      public final SlackFileNotFoundFile withUserId(String value)
      Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userId
      Returns:
      A modified copy or the this object
    • withEditable

      public final SlackFileNotFoundFile withEditable(boolean value)
      Copy the current immutable object by setting a value for the editable attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for editable
      Returns:
      A modified copy or the this object
    • withSize

      public final SlackFileNotFoundFile withSize(long value)
      Copy the current immutable object by setting a value for the size attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for size
      Returns:
      A modified copy or the this object
    • withMode

      public final SlackFileNotFoundFile withMode(String value)
      Copy the current immutable object by setting a value for the mode attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for mode
      Returns:
      A modified copy or the this object
    • withExternal

      public final SlackFileNotFoundFile withExternal(boolean value)
      Copy the current immutable object by setting a value for the external attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for external
      Returns:
      A modified copy or the this object
    • withPublic

      public final SlackFileNotFoundFile withPublic(boolean value)
      Copy the current immutable object by setting a value for the public attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isPublic
      Returns:
      A modified copy or the this object
    • withPublicUrlShared

      public final SlackFileNotFoundFile withPublicUrlShared(boolean value)
      Copy the current immutable object by setting a value for the publicUrlShared attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for publicUrlShared
      Returns:
      A modified copy or the this object
    • withDisplayAsBot

      public final SlackFileNotFoundFile withDisplayAsBot(boolean value)
      Copy the current immutable object by setting a value for the displayAsBot attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for displayAsBot
      Returns:
      A modified copy or the this object
    • withUsername

      public final SlackFileNotFoundFile withUsername(String value)
      Copy the current immutable object by setting a value for the username attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for username
      Returns:
      A modified copy or the this object
    • withUrlPrivate

      public final SlackFileNotFoundFile withUrlPrivate(String value)
      Copy the current immutable object by setting a value for the urlPrivate attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for urlPrivate
      Returns:
      A modified copy or the this object
    • withUrlPrivateDownload

      public final SlackFileNotFoundFile withUrlPrivateDownload(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional urlPrivateDownload attribute.
      Parameters:
      value - The value for urlPrivateDownload, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withUrlPrivateDownload

      public final SlackFileNotFoundFile withUrlPrivateDownload(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the urlPrivateDownload attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for urlPrivateDownload
      Returns:
      A modified copy or this if not changed
    • withPermalink

      public final SlackFileNotFoundFile withPermalink(String value)
      Copy the current immutable object by setting a value for the permalink attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for permalink
      Returns:
      A modified copy or the this object
    • withPermalinkPublic

      public final SlackFileNotFoundFile withPermalinkPublic(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional permalinkPublic attribute.
      Parameters:
      value - The value for permalinkPublic, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withPermalinkPublic

      public final SlackFileNotFoundFile withPermalinkPublic(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the permalinkPublic attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for permalinkPublic
      Returns:
      A modified copy or this if not changed
    • withCommentsCount

      public final SlackFileNotFoundFile withCommentsCount(int value)
      Copy the current immutable object by setting a value for the commentsCount attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for commentsCount
      Returns:
      A modified copy or the this object
    • withStarred

      public final SlackFileNotFoundFile withStarred(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional starred attribute.
      Parameters:
      value - The value for starred, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withStarred

      public final SlackFileNotFoundFile withStarred(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the starred attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for starred
      Returns:
      A modified copy or this if not changed
    • withChannelIds

      public final SlackFileNotFoundFile withChannelIds(String... elements)
      Copy the current immutable object with elements that replace the content of channelIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withChannelIds

      public final SlackFileNotFoundFile withChannelIds(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of channelIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of channelIds elements to set
      Returns:
      A modified copy or this if not changed
    • withGroupIds

      public final SlackFileNotFoundFile withGroupIds(String... elements)
      Copy the current immutable object with elements that replace the content of groupIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withGroupIds

      public final SlackFileNotFoundFile withGroupIds(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of groupIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of groupIds elements to set
      Returns:
      A modified copy or this if not changed
    • withImIds

      public final SlackFileNotFoundFile withImIds(String... elements)
      Copy the current immutable object with elements that replace the content of imIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withImIds

      public final SlackFileNotFoundFile withImIds(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of imIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of imIds elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SlackFileNotFoundFile that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • 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.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SlackFileNotFoundFile with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static SlackFileNotFoundFile copyOf(SlackFileNotFoundFileIF instance)
      Creates an immutable copy of a SlackFileNotFoundFileIF value. 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 SlackFileNotFoundFile instance
    • builder

      public static SlackFileNotFoundFile.Builder builder()
      Creates a builder for SlackFileNotFoundFile.
       SlackFileNotFoundFile.builder()
          .setFileAccess(String) // required fileAccess
          .setId(String) // optional id
          .setCreatedEpochSeconds(long) // optional createdEpochSeconds
          .setTimestampEpochSeconds(long) // optional timestampEpochSeconds
          .setName(String) // optional name
          .setTitle(String) // optional title
          .setMimetype(String) // optional mimetype
          .setFiletype(com.hubspot.slack.client.models.files.SlackFileType) // optional filetype
          .setPrettyType(String) // optional prettyType
          .setUserId(String) // optional userId
          .setEditable(boolean) // optional editable
          .setSize(long) // optional size
          .setMode(String) // optional mode
          .setExternal(boolean) // optional external
          .setPublic(boolean) // optional public
          .setPublicUrlShared(boolean) // optional publicUrlShared
          .setDisplayAsBot(boolean) // optional displayAsBot
          .setUsername(String) // optional username
          .setUrlPrivate(String) // optional urlPrivate
          .setUrlPrivateDownload(Optional<String>) // optional urlPrivateDownload
          .setPermalink(String) // optional permalink
          .setPermalinkPublic(Optional<String>) // optional permalinkPublic
          .setCommentsCount(int) // optional commentsCount
          .setStarred(Optional<Boolean>) // optional starred
          .addChannelIds|addAllChannelIds(String) // channelIds elements
          .addGroupIds|addAllGroupIds(String) // groupIds elements
          .addImIds|addAllImIds(String) // imIds elements
          .build();
       
      Returns:
      A new SlackFileNotFoundFile builder