Class SlackFileNotFoundFile.Builder

java.lang.Object
com.hubspot.slack.client.models.files.SlackFileNotFoundFile.Builder
Enclosing class:
SlackFileNotFoundFile

@Generated(from="SlackFileNotFoundFileIF", generator="Immutables") @NotThreadSafe public static final class SlackFileNotFoundFile.Builder extends Object
Builds instances of type SlackFileNotFoundFile. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final SlackFileNotFoundFile.Builder from(SlackFileError instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.files.SlackFileError instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.files.SlackFileNotFoundFileIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final SlackFileNotFoundFile.Builder from(SlackFile instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.files.SlackFile instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setFileAccess

      public final SlackFileNotFoundFile.Builder setFileAccess(String fileAccess)
      Initializes the value for the fileAccess attribute.
      Parameters:
      fileAccess - The value for fileAccess
      Returns:
      this builder for use in a chained invocation
    • setId

      public final SlackFileNotFoundFile.Builder setId(String id)
      Initializes the value for the id attribute.

      If not set, this attribute will have a default value as returned by the initializer of id.

      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • setCreatedEpochSeconds

      public final SlackFileNotFoundFile.Builder setCreatedEpochSeconds(long createdEpochSeconds)
      Initializes the value for the createdEpochSeconds attribute.

      If not set, this attribute will have a default value as returned by the initializer of createdEpochSeconds.

      Parameters:
      createdEpochSeconds - The value for createdEpochSeconds
      Returns:
      this builder for use in a chained invocation
    • setTimestampEpochSeconds

      public final SlackFileNotFoundFile.Builder setTimestampEpochSeconds(long timestampEpochSeconds)
      Initializes the value for the timestampEpochSeconds attribute.

      If not set, this attribute will have a default value as returned by the initializer of timestampEpochSeconds.

      Parameters:
      timestampEpochSeconds - The value for timestampEpochSeconds
      Returns:
      this builder for use in a chained invocation
    • setName

      public final SlackFileNotFoundFile.Builder setName(String name)
      Initializes the value for the name attribute.

      If not set, this attribute will have a default value as returned by the initializer of name.

      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setTitle

      public final SlackFileNotFoundFile.Builder setTitle(String title)
      Initializes the value for the title attribute.

      If not set, this attribute will have a default value as returned by the initializer of title.

      Parameters:
      title - The value for title
      Returns:
      this builder for use in a chained invocation
    • setMimetype

      public final SlackFileNotFoundFile.Builder setMimetype(String mimetype)
      Initializes the value for the mimetype attribute.

      If not set, this attribute will have a default value as returned by the initializer of mimetype.

      Parameters:
      mimetype - The value for mimetype
      Returns:
      this builder for use in a chained invocation
    • setFiletype

      public final SlackFileNotFoundFile.Builder setFiletype(SlackFileType filetype)
      Initializes the value for the filetype attribute.

      If not set, this attribute will have a default value as returned by the initializer of filetype.

      Parameters:
      filetype - The value for filetype
      Returns:
      this builder for use in a chained invocation
    • setPrettyType

      public final SlackFileNotFoundFile.Builder setPrettyType(String prettyType)
      Initializes the value for the prettyType attribute.

      If not set, this attribute will have a default value as returned by the initializer of prettyType.

      Parameters:
      prettyType - The value for prettyType
      Returns:
      this builder for use in a chained invocation
    • setUserId

      public final SlackFileNotFoundFile.Builder setUserId(String userId)
      Initializes the value for the userId attribute.

      If not set, this attribute will have a default value as returned by the initializer of userId.

      Parameters:
      userId - The value for userId
      Returns:
      this builder for use in a chained invocation
    • setEditable

      public final SlackFileNotFoundFile.Builder setEditable(boolean editable)
      Initializes the value for the editable attribute.

      If not set, this attribute will have a default value as returned by the initializer of editable.

      Parameters:
      editable - The value for editable
      Returns:
      this builder for use in a chained invocation
    • setSize

      public final SlackFileNotFoundFile.Builder setSize(long size)
      Initializes the value for the size attribute.

      If not set, this attribute will have a default value as returned by the initializer of size.

      Parameters:
      size - The value for size
      Returns:
      this builder for use in a chained invocation
    • setMode

      public final SlackFileNotFoundFile.Builder setMode(String mode)
      Initializes the value for the mode attribute.

      If not set, this attribute will have a default value as returned by the initializer of mode.

      Parameters:
      mode - The value for mode
      Returns:
      this builder for use in a chained invocation
    • setExternal

      public final SlackFileNotFoundFile.Builder setExternal(boolean external)
      Initializes the value for the external attribute.

      If not set, this attribute will have a default value as returned by the initializer of external.

      Parameters:
      external - The value for external
      Returns:
      this builder for use in a chained invocation
    • setPublic

      public final SlackFileNotFoundFile.Builder setPublic(boolean isPublic)
      Initializes the value for the public attribute.

      If not set, this attribute will have a default value as returned by the initializer of public.

      Parameters:
      isPublic - The value for isPublic
      Returns:
      this builder for use in a chained invocation
    • setPublicUrlShared

      public final SlackFileNotFoundFile.Builder setPublicUrlShared(boolean publicUrlShared)
      Initializes the value for the publicUrlShared attribute.

      If not set, this attribute will have a default value as returned by the initializer of publicUrlShared.

      Parameters:
      publicUrlShared - The value for publicUrlShared
      Returns:
      this builder for use in a chained invocation
    • setDisplayAsBot

      public final SlackFileNotFoundFile.Builder setDisplayAsBot(boolean displayAsBot)
      Initializes the value for the displayAsBot attribute.

      If not set, this attribute will have a default value as returned by the initializer of displayAsBot.

      Parameters:
      displayAsBot - The value for displayAsBot
      Returns:
      this builder for use in a chained invocation
    • setUsername

      public final SlackFileNotFoundFile.Builder setUsername(String username)
      Initializes the value for the username attribute.

      If not set, this attribute will have a default value as returned by the initializer of username.

      Parameters:
      username - The value for username
      Returns:
      this builder for use in a chained invocation
    • setUrlPrivate

      public final SlackFileNotFoundFile.Builder setUrlPrivate(String urlPrivate)
      Initializes the value for the urlPrivate attribute.

      If not set, this attribute will have a default value as returned by the initializer of urlPrivate.

      Parameters:
      urlPrivate - The value for urlPrivate
      Returns:
      this builder for use in a chained invocation
    • setUrlPrivateDownload

      public final SlackFileNotFoundFile.Builder setUrlPrivateDownload(@Nullable String urlPrivateDownload)
      Initializes the optional value urlPrivateDownload to urlPrivateDownload.
      Parameters:
      urlPrivateDownload - The value for urlPrivateDownload, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setUrlPrivateDownload

      public final SlackFileNotFoundFile.Builder setUrlPrivateDownload(Optional<String> urlPrivateDownload)
      Initializes the optional value urlPrivateDownload to urlPrivateDownload.
      Parameters:
      urlPrivateDownload - The value for urlPrivateDownload
      Returns:
      this builder for use in a chained invocation
    • setPermalink

      public final SlackFileNotFoundFile.Builder setPermalink(String permalink)
      Initializes the value for the permalink attribute.

      If not set, this attribute will have a default value as returned by the initializer of permalink.

      Parameters:
      permalink - The value for permalink
      Returns:
      this builder for use in a chained invocation
    • setPermalinkPublic

      public final SlackFileNotFoundFile.Builder setPermalinkPublic(@Nullable String permalinkPublic)
      Initializes the optional value permalinkPublic to permalinkPublic.
      Parameters:
      permalinkPublic - The value for permalinkPublic, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setPermalinkPublic

      public final SlackFileNotFoundFile.Builder setPermalinkPublic(Optional<String> permalinkPublic)
      Initializes the optional value permalinkPublic to permalinkPublic.
      Parameters:
      permalinkPublic - The value for permalinkPublic
      Returns:
      this builder for use in a chained invocation
    • setCommentsCount

      public final SlackFileNotFoundFile.Builder setCommentsCount(int commentsCount)
      Initializes the value for the commentsCount attribute.

      If not set, this attribute will have a default value as returned by the initializer of commentsCount.

      Parameters:
      commentsCount - The value for commentsCount
      Returns:
      this builder for use in a chained invocation
    • setStarred

      public final SlackFileNotFoundFile.Builder setStarred(@Nullable Boolean starred)
      Initializes the optional value starred to starred.
      Parameters:
      starred - The value for starred, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setStarred

      public final SlackFileNotFoundFile.Builder setStarred(Optional<Boolean> starred)
      Initializes the optional value starred to starred.
      Parameters:
      starred - The value for starred
      Returns:
      this builder for use in a chained invocation
    • addChannelIds

      public final SlackFileNotFoundFile.Builder addChannelIds(String element)
      Adds one element to channelIds list.
      Parameters:
      element - A channelIds element
      Returns:
      this builder for use in a chained invocation
    • addChannelIds

      public final SlackFileNotFoundFile.Builder addChannelIds(String... elements)
      Adds elements to channelIds list.
      Parameters:
      elements - An array of channelIds elements
      Returns:
      this builder for use in a chained invocation
    • setChannelIds

      public final SlackFileNotFoundFile.Builder setChannelIds(Iterable<String> elements)
      Sets or replaces all elements for channelIds list.
      Parameters:
      elements - An iterable of channelIds elements
      Returns:
      this builder for use in a chained invocation
    • addAllChannelIds

      public final SlackFileNotFoundFile.Builder addAllChannelIds(Iterable<String> elements)
      Adds elements to channelIds list.
      Parameters:
      elements - An iterable of channelIds elements
      Returns:
      this builder for use in a chained invocation
    • addGroupIds

      public final SlackFileNotFoundFile.Builder addGroupIds(String element)
      Adds one element to groupIds list.
      Parameters:
      element - A groupIds element
      Returns:
      this builder for use in a chained invocation
    • addGroupIds

      public final SlackFileNotFoundFile.Builder addGroupIds(String... elements)
      Adds elements to groupIds list.
      Parameters:
      elements - An array of groupIds elements
      Returns:
      this builder for use in a chained invocation
    • setGroupIds

      public final SlackFileNotFoundFile.Builder setGroupIds(Iterable<String> elements)
      Sets or replaces all elements for groupIds list.
      Parameters:
      elements - An iterable of groupIds elements
      Returns:
      this builder for use in a chained invocation
    • addAllGroupIds

      public final SlackFileNotFoundFile.Builder addAllGroupIds(Iterable<String> elements)
      Adds elements to groupIds list.
      Parameters:
      elements - An iterable of groupIds elements
      Returns:
      this builder for use in a chained invocation
    • addImIds

      public final SlackFileNotFoundFile.Builder addImIds(String element)
      Adds one element to imIds list.
      Parameters:
      element - A imIds element
      Returns:
      this builder for use in a chained invocation
    • addImIds

      public final SlackFileNotFoundFile.Builder addImIds(String... elements)
      Adds elements to imIds list.
      Parameters:
      elements - An array of imIds elements
      Returns:
      this builder for use in a chained invocation
    • setImIds

      public final SlackFileNotFoundFile.Builder setImIds(Iterable<String> elements)
      Sets or replaces all elements for imIds list.
      Parameters:
      elements - An iterable of imIds elements
      Returns:
      this builder for use in a chained invocation
    • addAllImIds

      public final SlackFileNotFoundFile.Builder addAllImIds(Iterable<String> elements)
      Adds elements to imIds list.
      Parameters:
      elements - An iterable of imIds elements
      Returns:
      this builder for use in a chained invocation
    • build

      public SlackFileNotFoundFile build()
      Builds a new SlackFileNotFoundFile.
      Returns:
      An immutable instance of SlackFileNotFoundFile
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing