Class ViewSubmission
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewSubmission
- All Implemented Interfaces:
SlackInteractiveCallback,ViewSubmissionIF
@Generated(from="ViewSubmissionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewSubmission
extends Object
implements ViewSubmissionIF
Immutable implementation of
ViewSubmissionIF.
Use the builder to create immutable instances:
ViewSubmission.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewSubmission.Builderbuilder()Creates a builder forViewSubmission.static ViewSubmissioncopyOf(ViewSubmissionIF instance) Creates an immutable copy of aViewSubmissionIFvalue.booleanThis instance is equal to all instances ofViewSubmissionthat have equal attribute values.getTeam()getToken()getType()getUser()getView()inthashCode()Computes a hash code from attributes:type,token,team,user,view,callbackId.toString()Prints the immutable valueViewSubmissionwith attribute values.final ViewSubmissionwithCallbackId(String value) Copy the current immutable object by setting a value for thecallbackIdattribute.final ViewSubmissionCopy the current immutable object by setting a value for theteamattribute.final ViewSubmissionCopy the current immutable object by setting a value for thetokenattribute.final ViewSubmissionwithType(InteractiveCallbackType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewSubmissionwithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.final ViewSubmissionwithView(ViewInteractionPayload value) Copy the current immutable object by setting a value for theviewattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.ViewSubmissionIF
getActionTs, getChannel
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackInteractiveCallback- Returns:
- The value of the
typeattribute
-
getToken
- Specified by:
getTokenin interfaceSlackInteractiveCallback- Returns:
- The value of the
tokenattribute
-
getTeam
- Specified by:
getTeamin interfaceSlackInteractiveCallback- Returns:
- The value of the
teamattribute
-
getUser
- Specified by:
getUserin interfaceSlackInteractiveCallback- Returns:
- The value of the
userattribute
-
getView
- Specified by:
getViewin interfaceViewSubmissionIF- Returns:
- The value of the
viewattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceSlackInteractiveCallback- Specified by:
getCallbackIdin interfaceViewSubmissionIF- Returns:
- The value of the
callbackIdattribute
-
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
-
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
-
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
-
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
-
withView
Copy the current immutable object by setting a value for theviewattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for view- 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 (can benull)- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofViewSubmissionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,token,team,user,view,callbackId. -
toString
Prints the immutable valueViewSubmissionwith attribute values. -
copyOf
Creates an immutable copy of aViewSubmissionIFvalue. 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 ViewSubmission instance
-
builder
Creates a builder forViewSubmission.ViewSubmission.builder() .setType(com.hubspot.slack.client.models.interaction.InteractiveCallbackType) // requiredtype.setToken(String) // requiredtoken.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setView(com.hubspot.slack.client.models.interaction.ViewInteractionPayload) // requiredview.setCallbackId(String | null) // nullablecallbackId.build();- Returns:
- A new ViewSubmission builder
-