@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlashCommandSubmissionIF"}) @Immutable public final class SlashCommandSubmission extends Object implements SlashCommandSubmissionIF
SlashCommandSubmissionIF.
Use the builder to create immutable instances:
SlashCommandSubmission.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlashCommandSubmission.Builder
Builds instances of type
SlashCommandSubmission. |
| Modifier and Type | Method and Description |
|---|---|
static SlashCommandSubmission.Builder |
builder()
Creates a builder for
SlashCommandSubmission. |
static SlashCommandSubmission |
copyOf(SlashCommandSubmissionIF instance)
Creates an immutable copy of a
SlashCommandSubmissionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlashCommandSubmission that have equal attribute values. |
String |
getChannelId() |
String |
getChannelName() |
String |
getCommand() |
Optional<String> |
getEnterpriseId() |
Optional<String> |
getEnterpriseName() |
String |
getResponseUrl() |
String |
getTeamDomain() |
String |
getTeamId() |
String |
getText() |
String |
getToken() |
String |
getTriggerId() |
String |
getUserId() |
String |
getUserName()
Deprecated.
The user_name field is being phased out
https://api.slack.com/changelog/2017-09-the-one-about-usernames
|
int |
hashCode()
Computes a hash code from attributes:
token, teamId, teamDomain, enterpriseId, enterpriseName, channelId, channelName, userId, command, text, responseUrl, triggerId, userName. |
String |
toString()
Prints the immutable value
SlashCommandSubmission with attribute values. |
SlashCommandSubmission |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlashCommandSubmission |
withChannelName(String channelName)
Copy the current immutable object by setting a value for the
channelName attribute. |
SlashCommandSubmission |
withCommand(String command)
Copy the current immutable object by setting a value for the
command attribute. |
SlashCommandSubmission |
withEnterpriseId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enterpriseId attribute. |
SlashCommandSubmission |
withEnterpriseId(String value)
Copy the current immutable object by setting a present value for the optional
enterpriseId attribute. |
SlashCommandSubmission |
withEnterpriseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enterpriseName attribute. |
SlashCommandSubmission |
withEnterpriseName(String value)
Copy the current immutable object by setting a present value for the optional
enterpriseName attribute. |
SlashCommandSubmission |
withResponseUrl(String responseUrl)
Copy the current immutable object by setting a value for the
responseUrl attribute. |
SlashCommandSubmission |
withTeamDomain(String teamDomain)
Copy the current immutable object by setting a value for the
teamDomain attribute. |
SlashCommandSubmission |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
SlashCommandSubmission |
withText(String text)
Copy the current immutable object by setting a value for the
text attribute. |
SlashCommandSubmission |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
SlashCommandSubmission |
withTriggerId(String triggerId)
Copy the current immutable object by setting a value for the
triggerId attribute. |
SlashCommandSubmission |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
SlashCommandSubmission |
withUserName(String userName)
Deprecated.
|
public String getToken()
getToken in interface SlashCommandSubmissionIFtoken attributepublic String getTeamId()
getTeamId in interface SlashCommandSubmissionIFteamId attributepublic String getTeamDomain()
getTeamDomain in interface SlashCommandSubmissionIFteamDomain attributepublic Optional<String> getEnterpriseId()
getEnterpriseId in interface SlashCommandSubmissionIFenterpriseId attributepublic Optional<String> getEnterpriseName()
getEnterpriseName in interface SlashCommandSubmissionIFenterpriseName attributepublic String getChannelId()
getChannelId in interface SlashCommandSubmissionIFchannelId attributepublic String getChannelName()
getChannelName in interface SlashCommandSubmissionIFchannelName attributepublic String getUserId()
getUserId in interface SlashCommandSubmissionIFuserId attributepublic String getCommand()
getCommand in interface SlashCommandSubmissionIFcommand attributepublic String getText()
getText in interface SlashCommandSubmissionIFtext attributepublic String getResponseUrl()
getResponseUrl in interface SlashCommandSubmissionIFresponseUrl attributepublic String getTriggerId()
getTriggerId in interface SlashCommandSubmissionIFtriggerId attribute@Deprecated public String getUserName()
getUserName in interface SlashCommandSubmissionIFpublic final SlashCommandSubmission 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 SlashCommandSubmission withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final SlashCommandSubmission withTeamDomain(String teamDomain)
teamDomain attribute.
An equals check used to prevent copying of the same value by returning this.teamDomain - A new value for teamDomainthis objectpublic final SlashCommandSubmission withEnterpriseId(@Nullable String value)
enterpriseId attribute.value - The value for enterpriseId, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandSubmission withEnterpriseId(Optional<String> optional)
enterpriseId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enterpriseIdthis objectpublic final SlashCommandSubmission withEnterpriseName(@Nullable String value)
enterpriseName attribute.value - The value for enterpriseName, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandSubmission withEnterpriseName(Optional<String> optional)
enterpriseName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enterpriseNamethis objectpublic final SlashCommandSubmission withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final SlashCommandSubmission withChannelName(String channelName)
channelName attribute.
An equals check used to prevent copying of the same value by returning this.channelName - A new value for channelNamethis objectpublic final SlashCommandSubmission withUserId(String userId)
userId attribute.
An equals check used to prevent copying of the same value by returning this.userId - A new value for userIdthis objectpublic final SlashCommandSubmission withCommand(String command)
command attribute.
An equals check used to prevent copying of the same value by returning this.command - A new value for commandthis objectpublic final SlashCommandSubmission withText(String text)
text attribute.
An equals check used to prevent copying of the same value by returning this.text - A new value for textthis objectpublic final SlashCommandSubmission withResponseUrl(String responseUrl)
responseUrl attribute.
An equals check used to prevent copying of the same value by returning this.responseUrl - A new value for responseUrlthis objectpublic final SlashCommandSubmission withTriggerId(String triggerId)
triggerId attribute.
An equals check used to prevent copying of the same value by returning this.triggerId - A new value for triggerIdthis object@Deprecated public final SlashCommandSubmission withUserName(String userName)
userName attribute.
An equals check used to prevent copying of the same value by returning this.userName - A new value for userNamethis objectpublic boolean equals(@Nullable Object another)
SlashCommandSubmission that have equal attribute values.public int hashCode()
token, teamId, teamDomain, enterpriseId, enterpriseName, channelId, channelName, userId, command, text, responseUrl, triggerId, userName.public String toString()
SlashCommandSubmission with attribute values.public static SlashCommandSubmission copyOf(SlashCommandSubmissionIF instance)
SlashCommandSubmissionIF 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 SlashCommandSubmission.Builder builder()
SlashCommandSubmission.Copyright © 2019. All rights reserved.