Class BlocksLoadOptionsRequest.Builder

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

@Generated(from="BlocksLoadOptionsRequestIF", generator="Immutables") @NotThreadSafe public static final class BlocksLoadOptionsRequest.Builder extends Object
Builds instances of type BlocksLoadOptionsRequest. 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

      Fill a builder with attribute values from the provided BlocksLoadOptionsRequestIF 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
    • setType

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

      public final BlocksLoadOptionsRequest.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
    • setTeam

      public final BlocksLoadOptionsRequest.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
    • setToken

      public final BlocksLoadOptionsRequest.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
    • setActionId

      public final BlocksLoadOptionsRequest.Builder setActionId(String actionId)
      Initializes the value for the actionId attribute.
      Parameters:
      actionId - The value for actionId
      Returns:
      this builder for use in a chained invocation
    • setBlockId

      public final BlocksLoadOptionsRequest.Builder setBlockId(String blockId)
      Initializes the value for the blockId attribute.
      Parameters:
      blockId - The value for blockId
      Returns:
      this builder for use in a chained invocation
    • setValue

      public final BlocksLoadOptionsRequest.Builder setValue(String value)
      Initializes the value for the value attribute.
      Parameters:
      value - The value for value
      Returns:
      this builder for use in a chained invocation
    • setContainer

      public final BlocksLoadOptionsRequest.Builder setContainer(Container container)
      Initializes the value for the container attribute.
      Parameters:
      container - The value for container
      Returns:
      this builder for use in a chained invocation
    • setView

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

      public final BlocksLoadOptionsRequest.Builder setView(Optional<? extends ViewResponseBase> view)
      Initializes the optional value view to view.
      Parameters:
      view - The value for view
      Returns:
      this builder for use in a chained invocation
    • build

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