Class SlackGifFile

java.lang.Object
com.hubspot.slack.client.models.files.SlackGifFile
All Implemented Interfaces:
SlackFile, SlackGifFileIF, SlackImageFile

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

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

  • Method Details

    • getId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Optional<String> getThumb64Url()
      Specified by:
      getThumb64Url in interface SlackImageFile
      Returns:
      The value of the thumb64Url attribute
    • getThumb80Url

      public Optional<String> getThumb80Url()
      Specified by:
      getThumb80Url in interface SlackImageFile
      Returns:
      The value of the thumb80Url attribute
    • getThumb160Url

      public Optional<String> getThumb160Url()
      Specified by:
      getThumb160Url in interface SlackImageFile
      Returns:
      The value of the thumb160Url attribute
    • getThumb360Url

      public Optional<String> getThumb360Url()
      Specified by:
      getThumb360Url in interface SlackImageFile
      Returns:
      The value of the thumb360Url attribute
    • getThumb360Width

      public Optional<Integer> getThumb360Width()
      Specified by:
      getThumb360Width in interface SlackImageFile
      Returns:
      The value of the thumb360Width attribute
    • getThumb360Height

      public Optional<Integer> getThumb360Height()
      Specified by:
      getThumb360Height in interface SlackImageFile
      Returns:
      The value of the thumb360Height attribute
    • getThumb480Url

      public Optional<String> getThumb480Url()
      Specified by:
      getThumb480Url in interface SlackImageFile
      Returns:
      The value of the thumb480Url attribute
    • getThumb480Width

      public Optional<Integer> getThumb480Width()
      Specified by:
      getThumb480Width in interface SlackImageFile
      Returns:
      The value of the thumb480Width attribute
    • getThumb480Height

      public Optional<Integer> getThumb480Height()
      Specified by:
      getThumb480Height in interface SlackImageFile
      Returns:
      The value of the thumb480Height attribute
    • getImageExifRotation

      public Optional<Integer> getImageExifRotation()
      Specified by:
      getImageExifRotation in interface SlackImageFile
      Returns:
      The value of the imageExifRotation attribute
    • getOriginalWidth

      public Optional<Integer> getOriginalWidth()
      Specified by:
      getOriginalWidth in interface SlackImageFile
      Returns:
      The value of the originalWidth attribute
    • getOriginalHeight

      public Optional<Integer> getOriginalHeight()
      Specified by:
      getOriginalHeight in interface SlackImageFile
      Returns:
      The value of the originalHeight attribute
    • hasRichPreview

      public boolean hasRichPreview()
      Specified by:
      hasRichPreview in interface SlackImageFile
      Returns:
      The value of the hasRichPreview attribute
    • getFiletype

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

      public final SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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
    • withPrettyType

      public final SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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 SlackGifFile 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
    • withThumb64Url

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

      public final SlackGifFile withThumb64Url(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the thumb64Url 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 thumb64Url
      Returns:
      A modified copy or this if not changed
    • withThumb80Url

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

      public final SlackGifFile withThumb80Url(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the thumb80Url 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 thumb80Url
      Returns:
      A modified copy or this if not changed
    • withThumb160Url

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

      public final SlackGifFile withThumb160Url(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the thumb160Url 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 thumb160Url
      Returns:
      A modified copy or this if not changed
    • withThumb360Url

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

      public final SlackGifFile withThumb360Url(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the thumb360Url 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 thumb360Url
      Returns:
      A modified copy or this if not changed
    • withThumb360Width

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

      public final SlackGifFile withThumb360Width(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the thumb360Width 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 thumb360Width
      Returns:
      A modified copy or this if not changed
    • withThumb360Height

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

      public final SlackGifFile withThumb360Height(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the thumb360Height 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 thumb360Height
      Returns:
      A modified copy or this if not changed
    • withThumb480Url

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

      public final SlackGifFile withThumb480Url(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the thumb480Url 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 thumb480Url
      Returns:
      A modified copy or this if not changed
    • withThumb480Width

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

      public final SlackGifFile withThumb480Width(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the thumb480Width 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 thumb480Width
      Returns:
      A modified copy or this if not changed
    • withThumb480Height

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

      public final SlackGifFile withThumb480Height(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the thumb480Height 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 thumb480Height
      Returns:
      A modified copy or this if not changed
    • withImageExifRotation

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

      public final SlackGifFile withImageExifRotation(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the imageExifRotation 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 imageExifRotation
      Returns:
      A modified copy or this if not changed
    • withOriginalWidth

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

      public final SlackGifFile withOriginalWidth(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the originalWidth 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 originalWidth
      Returns:
      A modified copy or this if not changed
    • withOriginalHeight

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

      public final SlackGifFile withOriginalHeight(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the originalHeight 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 originalHeight
      Returns:
      A modified copy or this if not changed
    • withHasRichPreview

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

      public final SlackGifFile 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
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SlackGifFile 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, prettyType, userId, editable, size, mode, external, isPublic, publicUrlShared, displayAsBot, username, urlPrivate, urlPrivateDownload, permalink, permalinkPublic, commentsCount, starred, channelIds, groupIds, imIds, thumb64Url, thumb80Url, thumb160Url, thumb360Url, thumb360Width, thumb360Height, thumb480Url, thumb480Width, thumb480Height, imageExifRotation, originalWidth, originalHeight, hasRichPreview, filetype.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static SlackGifFile.Builder builder()
      Creates a builder for SlackGifFile.
       SlackGifFile.builder()
          .setId(String) // required id
          .setCreatedEpochSeconds(long) // required createdEpochSeconds
          .setTimestampEpochSeconds(long) // required timestampEpochSeconds
          .setName(String) // required name
          .setTitle(String) // required title
          .setMimetype(String) // required mimetype
          .setPrettyType(String) // required prettyType
          .setUserId(String) // required userId
          .setEditable(boolean) // required editable
          .setSize(long) // required size
          .setMode(String) // required mode
          .setExternal(boolean) // required external
          .setPublic(boolean) // required public
          .setPublicUrlShared(boolean) // required publicUrlShared
          .setDisplayAsBot(boolean) // required displayAsBot
          .setUsername(String) // required username
          .setUrlPrivate(String) // required urlPrivate
          .setUrlPrivateDownload(Optional<String>) // optional urlPrivateDownload
          .setPermalink(String) // required 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
          .setThumb64Url(Optional<String>) // optional thumb64Url
          .setThumb80Url(Optional<String>) // optional thumb80Url
          .setThumb160Url(Optional<String>) // optional thumb160Url
          .setThumb360Url(Optional<String>) // optional thumb360Url
          .setThumb360Width(Optional<Integer>) // optional thumb360Width
          .setThumb360Height(Optional<Integer>) // optional thumb360Height
          .setThumb480Url(Optional<String>) // optional thumb480Url
          .setThumb480Width(Optional<Integer>) // optional thumb480Width
          .setThumb480Height(Optional<Integer>) // optional thumb480Height
          .setImageExifRotation(Optional<Integer>) // optional imageExifRotation
          .setOriginalWidth(Optional<Integer>) // optional originalWidth
          .setOriginalHeight(Optional<Integer>) // optional originalHeight
          .setHasRichPreview(boolean) // required hasRichPreview
          .setFiletype(com.hubspot.slack.client.models.files.SlackFileType) // optional filetype
          .build();
       
      Returns:
      A new SlackGifFile builder