Class ViewClosed.Builder

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

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

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

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

      public final ViewClosed.Builder setCallbackId(String callbackId)
      Initializes the value for the callbackId attribute.
      Parameters:
      callbackId - The value for callbackId
      Returns:
      this builder for use in a chained invocation
    • setActionTs

      public final ViewClosed.Builder setActionTs(String actionTs)
      Initializes the value for the actionTs attribute.
      Parameters:
      actionTs - The value for actionTs
      Returns:
      this builder for use in a chained invocation
    • setToken

      public final ViewClosed.Builder setToken(String token)
      Initializes the value for the token attribute.
      Parameters:
      token - The value for token
      Returns:
      this builder for use in a chained invocation
    • setTeam

      public final ViewClosed.Builder setTeam(SlackTeam team)
      Initializes the value for the team attribute.
      Parameters:
      team - The value for team
      Returns:
      this builder for use in a chained invocation
    • setUser

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

      public final ViewClosed.Builder setChannel(SlackChannel channel)
      Initializes the value for the channel attribute.
      Parameters:
      channel - The value for channel
      Returns:
      this builder for use in a chained invocation
    • setView

      public final ViewClosed.Builder setView(ViewPayloadBase view)
      Initializes the value for the view attribute.
      Parameters:
      view - The value for view
      Returns:
      this builder for use in a chained invocation
    • setIsCleared

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

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