Class SlashCommandSubmission
java.lang.Object
com.hubspot.slack.client.models.commands.SlashCommandSubmission
- All Implemented Interfaces:
SlashCommandSubmissionIF
@Generated(from="SlashCommandSubmissionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlashCommandSubmission
extends Object
implements SlashCommandSubmissionIF
Immutable implementation of
SlashCommandSubmissionIF.
Use the builder to create immutable instances:
SlashCommandSubmission.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlashCommandSubmission. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlashCommandSubmission.static SlashCommandSubmissioncopyOf(SlashCommandSubmissionIF instance) Creates an immutable copy of aSlashCommandSubmissionIFvalue.booleanThis instance is equal to all instances ofSlashCommandSubmissionthat have equal attribute values.getText()getToken()Deprecated.The user_name field is being phased out https://api.slack.com/changelog/2017-09-the-one-about-usernamesinthashCode()Computes a hash code from attributes:token,teamId,teamDomain,enterpriseId,enterpriseName,channelId,channelName,userId,command,text,responseUrl,triggerId,userName.toString()Prints the immutable valueSlashCommandSubmissionwith attribute values.final SlashCommandSubmissionwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlashCommandSubmissionwithChannelName(String value) Copy the current immutable object by setting a value for thechannelNameattribute.final SlashCommandSubmissionwithCommand(String value) Copy the current immutable object by setting a value for thecommandattribute.final SlashCommandSubmissionwithEnterpriseId(String value) Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.final SlashCommandSubmissionwithEnterpriseId(Optional<String> optional) Copy the current immutable object by setting an optional value for theenterpriseIdattribute.final SlashCommandSubmissionwithEnterpriseName(String value) Copy the current immutable object by setting a present value for the optionalenterpriseNameattribute.final SlashCommandSubmissionwithEnterpriseName(Optional<String> optional) Copy the current immutable object by setting an optional value for theenterpriseNameattribute.final SlashCommandSubmissionwithResponseUrl(String value) Copy the current immutable object by setting a value for theresponseUrlattribute.final SlashCommandSubmissionwithTeamDomain(String value) Copy the current immutable object by setting a value for theteamDomainattribute.final SlashCommandSubmissionwithTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.final SlashCommandSubmissionCopy the current immutable object by setting a value for thetextattribute.final SlashCommandSubmissionCopy the current immutable object by setting a value for thetokenattribute.final SlashCommandSubmissionwithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final SlashCommandSubmissionwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final SlashCommandSubmissionwithUserName(String value) Deprecated.
-
Method Details
-
getToken
- Specified by:
getTokenin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
tokenattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
teamIdattribute
-
getTeamDomain
- Specified by:
getTeamDomainin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
teamDomainattribute
-
getEnterpriseId
- Specified by:
getEnterpriseIdin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
enterpriseIdattribute
-
getEnterpriseName
- Specified by:
getEnterpriseNamein interfaceSlashCommandSubmissionIF- Returns:
- The value of the
enterpriseNameattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
channelIdattribute
-
getChannelName
- Specified by:
getChannelNamein interfaceSlashCommandSubmissionIF- Returns:
- The value of the
channelNameattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
userIdattribute
-
getCommand
- Specified by:
getCommandin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
commandattribute
-
getText
- Specified by:
getTextin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
textattribute
-
getResponseUrl
- Specified by:
getResponseUrlin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
responseUrlattribute
-
getTriggerId
- Specified by:
getTriggerIdin interfaceSlashCommandSubmissionIF- Returns:
- The value of the
triggerIdattribute
-
getUserName
Deprecated.The user_name field is being phased out https://api.slack.com/changelog/2017-09-the-one-about-usernames- Specified by:
getUserNamein interfaceSlashCommandSubmissionIF
-
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
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withTeamDomain
Copy the current immutable object by setting a value for theteamDomainattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamDomain- Returns:
- A modified copy or the
thisobject
-
withEnterpriseId
Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.- Parameters:
value- The value for enterpriseId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseId
Copy the current immutable object by setting an optional value for theenterpriseIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enterpriseId- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseName
Copy the current immutable object by setting a present value for the optionalenterpriseNameattribute.- Parameters:
value- The value for enterpriseName,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseName
Copy the current immutable object by setting an optional value for theenterpriseNameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enterpriseName- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withChannelName
Copy the current immutable object by setting a value for thechannelNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelName- Returns:
- A modified copy or the
thisobject
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withCommand
Copy the current immutable object by setting a value for thecommandattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for command- Returns:
- A modified copy or the
thisobject
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
withResponseUrl
Copy the current immutable object by setting a value for theresponseUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for responseUrl- Returns:
- A modified copy or the
thisobject
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- Returns:
- A modified copy or the
thisobject
-
withUserName
Deprecated.Copy the current immutable object by setting a value for theuserNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userName- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlashCommandSubmissionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:token,teamId,teamDomain,enterpriseId,enterpriseName,channelId,channelName,userId,command,text,responseUrl,triggerId,userName. -
toString
Prints the immutable valueSlashCommandSubmissionwith attribute values. -
copyOf
Creates an immutable copy of aSlashCommandSubmissionIFvalue. 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 SlashCommandSubmission instance
-
builder
Creates a builder forSlashCommandSubmission.SlashCommandSubmission.builder() .setToken(String) // requiredtoken.setTeamId(String) // requiredteamId.setTeamDomain(String) // requiredteamDomain.setEnterpriseId(Optional<String>) // optionalenterpriseId.setEnterpriseName(Optional<String>) // optionalenterpriseName.setChannelId(String) // requiredchannelId.setChannelName(String) // requiredchannelName.setUserId(String) // requireduserId.setCommand(String) // requiredcommand.setText(String) // requiredtext.setResponseUrl(String) // requiredresponseUrl.setTriggerId(String) // requiredtriggerId.setUserName(String) // requireduserName.build();- Returns:
- A new SlashCommandSubmission builder
-