Class ImChannel.Builder

java.lang.Object
com.hubspot.slack.client.models.channel.ImChannel.Builder
Enclosing class:
ImChannel

@Generated(from="ImChannelIF", generator="Immutables") @NotThreadSafe public static final class ImChannel.Builder extends Object
Builds instances of type ImChannel. 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 ImChannel.Builder from(ImChannelIF instance)
      Fill a builder with attribute values from the provided ImChannelIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setId

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

      public final ImChannel.Builder setCreated(int created)
      Initializes the value for the created attribute.
      Parameters:
      created - The value for created
      Returns:
      this builder for use in a chained invocation
    • setIsIm

      public final ImChannel.Builder setIsIm(boolean isIm)
      Initializes the value for the isIm attribute.
      Parameters:
      isIm - The value for isIm
      Returns:
      this builder for use in a chained invocation
    • setIsOrgShared

      public final ImChannel.Builder setIsOrgShared(boolean isOrgShared)
      Initializes the value for the isOrgShared attribute.
      Parameters:
      isOrgShared - The value for isOrgShared
      Returns:
      this builder for use in a chained invocation
    • setUser

      public final ImChannel.Builder setUser(String user)
      Initializes the value for the user attribute.
      Parameters:
      user - The value for user
      Returns:
      this builder for use in a chained invocation
    • setIsOpen

      public final ImChannel.Builder setIsOpen(boolean isOpen)
      Initializes the value for the isOpen attribute.
      Parameters:
      isOpen - The value for isOpen
      Returns:
      this builder for use in a chained invocation
    • build

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