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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeInteractiveLoadOptionsRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forInteractiveLoadOptionsRequest.copyOf(InteractiveLoadOptionsRequestIF instance) Creates an immutable copy of aInteractiveLoadOptionsRequestIFvalue.booleanThis instance is equal to all instances ofInteractiveLoadOptionsRequestthat have equal attribute values.getName()getTeam()getToken()getType()getUser()getValue()inthashCode()Computes a hash code from attributes:name,value,callbackId,team,channel,user,type,actionTs,messageTs,attachmentId,token.toString()Prints the immutable valueInteractiveLoadOptionsRequestwith attribute values.withActionTs(String value) Copy the current immutable object by setting a value for theactionTsattribute.withAttachmentId(String value) Copy the current immutable object by setting a present value for the optionalattachmentIdattribute.withAttachmentId(Optional<String> optional) Copy the current immutable object by setting an optional value for theattachmentIdattribute.withCallbackId(String value) Copy the current immutable object by setting a value for thecallbackIdattribute.withChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.withMessageTs(String value) Copy the current immutable object by setting a present value for the optionalmessageTsattribute.withMessageTs(Optional<String> optional) Copy the current immutable object by setting an optional value for themessageTsattribute.Copy the current immutable object by setting a value for thenameattribute.Copy the current immutable object by setting a value for theteamattribute.Copy the current immutable object by setting a value for thetokenattribute.Copy the current immutable object by setting a value for thetypeattribute.withUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getName
- Specified by:
getNamein interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
nameattribute
-
getValue
- Specified by:
getValuein interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
valueattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
callbackIdattribute
-
getTeam
- Specified by:
getTeamin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
teamattribute
-
getChannel
- Specified by:
getChannelin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
channelattribute
-
getUser
- Specified by:
getUserin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
userattribute
-
getType
- Specified by:
getTypein interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
typeattribute
-
getActionTs
- Specified by:
getActionTsin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
actionTsattribute
-
getMessageTs
- Specified by:
getMessageTsin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
messageTsattribute
-
getAttachmentId
- Specified by:
getAttachmentIdin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
attachmentIdattribute
-
getToken
- Specified by:
getTokenin interfaceInteractiveLoadOptionsRequestIF- Returns:
- The value of the
tokenattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withCallbackId
Copy the current immutable object by setting a value for thecallbackIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for callbackId- Returns:
- A modified copy or the
thisobject
-
withTeam
Copy the current immutable object by setting a value for theteamattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for team- Returns:
- A modified copy or the
thisobject
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
withUser
Copy the current immutable object by setting a value for theuserattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withActionTs
Copy the current immutable object by setting a value for theactionTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionTs- Returns:
- A modified copy or the
thisobject
-
withMessageTs
Copy the current immutable object by setting a present value for the optionalmessageTsattribute.- Parameters:
value- The value for messageTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMessageTs
Copy the current immutable object by setting an optional value for themessageTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for messageTs- Returns:
- A modified copy or
thisif not changed
-
withAttachmentId
Copy the current immutable object by setting a present value for the optionalattachmentIdattribute.- Parameters:
value- The value for attachmentId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAttachmentId
Copy the current immutable object by setting an optional value for theattachmentIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for attachmentId- Returns:
- A modified copy or
thisif not changed
-
withToken
Copy the current immutable object by setting a value for thetokenattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for token- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofInteractiveLoadOptionsRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,value,callbackId,team,channel,user,type,actionTs,messageTs,attachmentId,token. -
toString
Prints the immutable valueInteractiveLoadOptionsRequestwith attribute values. -
copyOf
Creates an immutable copy of aInteractiveLoadOptionsRequestIFvalue. 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
Creates a builder forInteractiveLoadOptionsRequest.InteractiveLoadOptionsRequest.builder() .setName(String) // requiredname.setValue(String) // requiredvalue.setCallbackId(String) // requiredcallbackId.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setType(com.hubspot.slack.client.models.interaction.InteractiveLoadOptionsRequestType) // requiredtype.setActionTs(String) // requiredactionTs.setMessageTs(Optional<String>) // optionalmessageTs.setAttachmentId(Optional<String>) // optionalattachmentId.setToken(String) // requiredtoken.build();- Returns:
- A new InteractiveLoadOptionsRequest builder
-