@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewSubmissionIF"}) @Immutable public final class ViewSubmission extends Object implements ViewSubmissionIF
ViewSubmissionIF.
Use the builder to create immutable instances:
ViewSubmission.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewSubmission.Builder
Builds instances of type
ViewSubmission. |
| Modifier and Type | Method and Description |
|---|---|
static ViewSubmission.Builder |
builder()
Creates a builder for
ViewSubmission. |
static ViewSubmission |
copyOf(ViewSubmissionIF instance)
Creates an immutable copy of a
ViewSubmissionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewSubmission that have equal attribute values. |
SlackTeam |
getTeam() |
String |
getToken() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
ViewInteractionPayload |
getView() |
int |
hashCode()
Computes a hash code from attributes:
view, type, token, team, user. |
String |
toString()
Prints the immutable value
ViewSubmission with attribute values. |
ViewSubmission |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
ViewSubmission |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
ViewSubmission |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
ViewSubmission |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
ViewSubmission |
withView(ViewInteractionPayload view)
Copy the current immutable object by setting a value for the
view attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActionTs, getCallbackId, getChannelpublic ViewInteractionPayload getView()
getView in interface ViewSubmissionIFview attributepublic InteractiveCallbackType getType()
getType in interface SlackInteractiveCallbacktype attributepublic String getToken()
getToken in interface SlackInteractiveCallbacktoken attributepublic SlackTeam getTeam()
getTeam in interface SlackInteractiveCallbackteam attributepublic SlackUserLite getUser()
getUser in interface SlackInteractiveCallbackuser attributepublic final ViewSubmission withView(ViewInteractionPayload view)
view attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.view - A new value for viewthis objectpublic final ViewSubmission 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 ViewSubmission 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 ViewSubmission 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 ViewSubmission 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)
ViewSubmission that have equal attribute values.public int hashCode()
view, type, token, team, user.public String toString()
ViewSubmission with attribute values.public static ViewSubmission copyOf(ViewSubmissionIF instance)
ViewSubmissionIF 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 ViewSubmission.Builder builder()
ViewSubmission.Copyright © 2020. All rights reserved.