Class InteractiveLoadOptionsRequest

java.lang.Object
com.hubspot.slack.client.models.interaction.InteractiveLoadOptionsRequest
All Implemented Interfaces:
InteractiveLoadOptionsRequestIF

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

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

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the name attribute
    • getValue

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

      public String getCallbackId()
      Specified by:
      getCallbackId in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the callbackId attribute
    • getTeam

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

      public SlackChannel getChannel()
      Specified by:
      getChannel in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the channel attribute
    • getUser

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

      Specified by:
      getType in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the type attribute
    • getActionTs

      public String getActionTs()
      Specified by:
      getActionTs in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the actionTs attribute
    • getMessageTs

      public Optional<String> getMessageTs()
      Specified by:
      getMessageTs in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the messageTs attribute
    • getAttachmentId

      public Optional<String> getAttachmentId()
      Specified by:
      getAttachmentId in interface InteractiveLoadOptionsRequestIF
      Returns:
      The value of the attachmentId attribute
    • getToken

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

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

      public final InteractiveLoadOptionsRequest 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
    • withCallbackId

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

      public final InteractiveLoadOptionsRequest 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
    • withChannel

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

      public final InteractiveLoadOptionsRequest 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
    • withType

      Copy the current immutable object by setting a value for the type attribute. A value equality check is 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
    • withActionTs

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

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

      public final InteractiveLoadOptionsRequest withMessageTs(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the messageTs attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for messageTs
      Returns:
      A modified copy or this if not changed
    • withAttachmentId

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

      public final InteractiveLoadOptionsRequest withAttachmentId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the attachmentId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for attachmentId
      Returns:
      A modified copy or this if not changed
    • withToken

      public final InteractiveLoadOptionsRequest 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
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of InteractiveLoadOptionsRequest 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: name, value, callbackId, team, channel, user, type, actionTs, messageTs, attachmentId, token.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a InteractiveLoadOptionsRequestIF 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 InteractiveLoadOptionsRequest instance
    • builder

      public static InteractiveLoadOptionsRequest.Builder builder()
      Creates a builder for InteractiveLoadOptionsRequest.
       InteractiveLoadOptionsRequest.builder()
          .setName(String) // required name
          .setValue(String) // required value
          .setCallbackId(String) // required callbackId
          .setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // required team
          .setChannel(com.hubspot.slack.client.models.SlackChannel) // required channel
          .setUser(com.hubspot.slack.client.models.users.SlackUserLite) // required user
          .setType(com.hubspot.slack.client.models.interaction.InteractiveLoadOptionsRequestType) // required type
          .setActionTs(String) // required actionTs
          .setMessageTs(Optional<String>) // optional messageTs
          .setAttachmentId(Optional<String>) // optional attachmentId
          .setToken(String) // required token
          .build();
       
      Returns:
      A new InteractiveLoadOptionsRequest builder