Class MessageContainer.Builder

java.lang.Object
com.hubspot.slack.client.models.interaction.MessageContainer.Builder
Enclosing class:
MessageContainer

@Generated(from="MessageContainerIF", generator="Immutables") @NotThreadSafe public static final class MessageContainer.Builder extends Object
Builds instances of type MessageContainer. 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 MessageContainer.Builder from(Container instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.interaction.Container instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

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

      public final MessageContainer.Builder setType(ContainerType type)
      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setMessageTs

      public final MessageContainer.Builder setMessageTs(String messageTs)
      Initializes the value for the messageTs attribute.
      Parameters:
      messageTs - The value for messageTs
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final MessageContainer.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setEphemeral

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

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