Class BlocksLoadOptionsRequest

java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsRequest
All Implemented Interfaces:
BlocksLoadOptionsRequestIF

@Generated(from="BlocksLoadOptionsRequestIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class BlocksLoadOptionsRequest extends Object implements BlocksLoadOptionsRequestIF
Immutable implementation of BlocksLoadOptionsRequestIF.

Use the builder to create immutable instances: BlocksLoadOptionsRequest.builder().

  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the type attribute
    • getUser

      public SlackUserLite getUser()
      Specified by:
      getUser in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the user attribute
    • getTeam

      public SlackTeam getTeam()
      Specified by:
      getTeam in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the team attribute
    • getToken

      public String getToken()
      Specified by:
      getToken in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the token attribute
    • getActionId

      public String getActionId()
      Specified by:
      getActionId in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the actionId attribute
    • getBlockId

      public String getBlockId()
      Specified by:
      getBlockId in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the blockId attribute
    • getValue

      public String getValue()
      Specified by:
      getValue in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the value attribute
    • getContainer

      public Container getContainer()
      Specified by:
      getContainer in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the container attribute
    • getView

      public Optional<ViewResponseBase> getView()
      Specified by:
      getView in interface BlocksLoadOptionsRequestIF
      Returns:
      The value of the view attribute
    • withType

      public final BlocksLoadOptionsRequest withType(String value)
      Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withUser

      public final BlocksLoadOptionsRequest withUser(SlackUserLite value)
      Copy the current immutable object by setting a value for the user attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for user
      Returns:
      A modified copy or the this object
    • withTeam

      public final BlocksLoadOptionsRequest withTeam(SlackTeam value)
      Copy the current immutable object by setting a value for the team attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for team
      Returns:
      A modified copy or the this object
    • withToken

      public final BlocksLoadOptionsRequest withToken(String value)
      Copy the current immutable object by setting a value for the token attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for token
      Returns:
      A modified copy or the this object
    • withActionId

      public final BlocksLoadOptionsRequest withActionId(String value)
      Copy the current immutable object by setting a value for the actionId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for actionId
      Returns:
      A modified copy or the this object
    • withBlockId

      public final BlocksLoadOptionsRequest withBlockId(String value)
      Copy the current immutable object by setting a value for the blockId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for blockId
      Returns:
      A modified copy or the this object
    • withValue

      public final BlocksLoadOptionsRequest withValue(String value)
      Copy the current immutable object by setting a value for the value attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for value
      Returns:
      A modified copy or the this object
    • withContainer

      public final BlocksLoadOptionsRequest withContainer(Container value)
      Copy the current immutable object by setting a value for the container attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for container
      Returns:
      A modified copy or the this object
    • withView

      public final BlocksLoadOptionsRequest withView(@Nullable ViewResponseBase value)
      Copy the current immutable object by setting a present value for the optional view attribute.
      Parameters:
      value - The value for view, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withView

      public final BlocksLoadOptionsRequest withView(Optional<? extends ViewResponseBase> optional)
      Copy the current immutable object by setting an optional value for the view attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for view
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of BlocksLoadOptionsRequest that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, user, team, token, actionId, blockId, value, container, view.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value BlocksLoadOptionsRequest with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static BlocksLoadOptionsRequest copyOf(BlocksLoadOptionsRequestIF instance)
      Creates an immutable copy of a BlocksLoadOptionsRequestIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable BlocksLoadOptionsRequest instance
    • builder

      public static BlocksLoadOptionsRequest.Builder builder()
      Creates a builder for BlocksLoadOptionsRequest.
       BlocksLoadOptionsRequest.builder()
          .setType(String) // required type
          .setUser(com.hubspot.slack.client.models.users.SlackUserLite) // required user
          .setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // required team
          .setToken(String) // required token
          .setActionId(String) // required actionId
          .setBlockId(String) // required blockId
          .setValue(String) // required value
          .setContainer(com.hubspot.slack.client.models.interaction.Container) // required container
          .setView(Optional<com.hubspot.slack.client.models.response.views.ViewResponseBase>) // optional view
          .build();
       
      Returns:
      A new BlocksLoadOptionsRequest builder