Class SlackUnknownFiletype

java.lang.Object
com.hubspot.slack.client.models.files.SlackUnknownFiletype
All Implemented Interfaces:
SlackFile, SlackUnknownFiletypeIF

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

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

  • Method Details

    • getId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public final SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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 SlackUnknownFiletype 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: 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 SlackUnknownFiletype with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static SlackUnknownFiletype copyOf(SlackUnknownFiletypeIF instance)
      Creates an immutable copy of a SlackUnknownFiletypeIF 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 SlackUnknownFiletype instance
    • builder

      public static SlackUnknownFiletype.Builder builder()
      Creates a builder for SlackUnknownFiletype.
       SlackUnknownFiletype.builder()
          .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 SlackUnknownFiletype builder