@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","DialogSubmissionIF"}) @Immutable public final class DialogSubmission extends Object implements DialogSubmissionIF
DialogSubmissionIF.
Use the builder to create immutable instances:
DialogSubmission.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogSubmission.Builder
Builds instances of type
DialogSubmission. |
| Modifier and Type | Method and Description |
|---|---|
static DialogSubmission.Builder |
builder()
Creates a builder for
DialogSubmission. |
static DialogSubmission |
copyOf(DialogSubmissionIF instance)
Creates an immutable copy of a
DialogSubmissionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
DialogSubmission that have equal attribute values. |
String |
getActionTs() |
String |
getCallbackId() |
SlackChannel |
getChannel() |
Optional<String> |
getState()
This state is passed from the dialog creation and is echoed back from the user submission.
|
Map<String,Optional<String>> |
getSubmission()
This map is a key:value mapping of the values the user submitted to the dialog,
where the keys are the field names used when creating the dialog.
|
SlackTeam |
getTeam() |
String |
getToken() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
submission, state, type, callbackId, actionTs, token, team, channel, user. |
String |
toString()
Prints the immutable value
DialogSubmission with attribute values. |
DialogSubmission |
withActionTs(String actionTs)
Copy the current immutable object by setting a value for the
actionTs attribute. |
DialogSubmission |
withCallbackId(String callbackId)
Copy the current immutable object by setting a value for the
callbackId attribute. |
DialogSubmission |
withChannel(SlackChannel channel)
Copy the current immutable object by setting a value for the
channel attribute. |
DialogSubmission |
withState(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
state attribute. |
DialogSubmission |
withState(String value)
Copy the current immutable object by setting a present value for the optional
state attribute. |
DialogSubmission |
withSubmission(Map<String,? extends Optional<String>> submission)
Copy the current immutable object by replacing the
submission map with the specified map. |
DialogSubmission |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
DialogSubmission |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
DialogSubmission |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
DialogSubmission |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
public Map<String,Optional<String>> getSubmission()
getSubmission in interface DialogSubmissionIFpublic Optional<String> getState()
getState in interface DialogSubmissionIFpublic InteractiveCallbackType getType()
getType in interface SlackInteractiveCallbacktype attributepublic String getCallbackId()
getCallbackId in interface SlackInteractiveCallbackcallbackId attributepublic String getActionTs()
getActionTs in interface SlackInteractiveCallbackactionTs attributepublic String getToken()
getToken in interface SlackInteractiveCallbacktoken attributepublic SlackTeam getTeam()
getTeam in interface SlackInteractiveCallbackteam attributepublic SlackChannel getChannel()
getChannel in interface SlackInteractiveCallbackchannel attributepublic SlackUserLite getUser()
getUser in interface SlackInteractiveCallbackuser attributepublic final DialogSubmission withSubmission(Map<String,? extends Optional<String>> submission)
submission map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.submission - The entries to be added to the submission mapthis objectpublic final DialogSubmission withState(@Nullable String value)
state attribute.value - The value for state, null is accepted as java.util.Optional.empty()this objectpublic final DialogSubmission withState(Optional<String> optional)
state attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for statethis objectpublic final DialogSubmission withType(InteractiveCallbackType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final DialogSubmission withCallbackId(String callbackId)
callbackId attribute.
An equals check used to prevent copying of the same value by returning this.callbackId - A new value for callbackIdthis objectpublic final DialogSubmission withActionTs(String actionTs)
actionTs attribute.
An equals check used to prevent copying of the same value by returning this.actionTs - A new value for actionTsthis objectpublic final DialogSubmission withToken(String token)
token attribute.
An equals check used to prevent copying of the same value by returning this.token - A new value for tokenthis objectpublic final DialogSubmission withTeam(SlackTeam team)
team attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.team - A new value for teamthis objectpublic final DialogSubmission withChannel(SlackChannel channel)
channel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.channel - A new value for channelthis objectpublic final DialogSubmission withUser(SlackUserLite user)
user attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.user - A new value for userthis objectpublic boolean equals(@Nullable Object another)
DialogSubmission that have equal attribute values.public int hashCode()
submission, state, type, callbackId, actionTs, token, team, channel, user.public String toString()
DialogSubmission with attribute values.public static DialogSubmission copyOf(DialogSubmissionIF instance)
DialogSubmissionIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static DialogSubmission.Builder builder()
DialogSubmission.Copyright © 2019. All rights reserved.