Class ViewClosed
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewClosed
- All Implemented Interfaces:
SlackInteractiveCallback,ViewClosedIF
@Generated(from="ViewClosedIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewClosed
extends Object
implements ViewClosedIF
Immutable implementation of
ViewClosedIF.
Use the builder to create immutable instances:
ViewClosed.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewClosed.Builderbuilder()Creates a builder forViewClosed.static ViewClosedcopyOf(ViewClosedIF instance) Creates an immutable copy of aViewClosedIFvalue.booleanThis instance is equal to all instances ofViewClosedthat have equal attribute values.booleangetTeam()getToken()getType()getUser()getView()inthashCode()Computes a hash code from attributes:type,callbackId,actionTs,token,team,user,channel,view,isCleared.toString()Prints the immutable valueViewClosedwith attribute values.final ViewClosedwithActionTs(String value) Copy the current immutable object by setting a value for theactionTsattribute.final ViewClosedwithCallbackId(String value) Copy the current immutable object by setting a value for thecallbackIdattribute.final ViewClosedwithChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.final ViewClosedwithIsCleared(boolean value) Copy the current immutable object by setting a value for theisClearedattribute.final ViewClosedCopy the current immutable object by setting a value for theteamattribute.final ViewClosedCopy the current immutable object by setting a value for thetokenattribute.final ViewClosedwithType(InteractiveCallbackType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewClosedwithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.final ViewClosedwithView(ViewPayloadBase value) Copy the current immutable object by setting a value for theviewattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackInteractiveCallback- Returns:
- The value of the
typeattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceSlackInteractiveCallback- Returns:
- The value of the
callbackIdattribute
-
getActionTs
- Specified by:
getActionTsin interfaceSlackInteractiveCallback- Returns:
- The value of the
actionTsattribute
-
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
-
getChannel
- Specified by:
getChannelin interfaceSlackInteractiveCallback- Returns:
- The value of the
channelattribute
-
getView
- Specified by:
getViewin interfaceViewClosedIF- Returns:
- The value of the
viewattribute
-
getIsCleared
public boolean getIsCleared()- Specified by:
getIsClearedin interfaceViewClosedIF- Returns:
- The value of the
isClearedattribute
-
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
-
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- Returns:
- A modified copy or the
thisobject
-
withActionTs
Copy the current immutable object by setting a value for theactionTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionTs- 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
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- 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
-
withIsCleared
Copy the current immutable object by setting a value for theisClearedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isCleared- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofViewClosedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,callbackId,actionTs,token,team,user,channel,view,isCleared. -
toString
Prints the immutable valueViewClosedwith attribute values. -
copyOf
Creates an immutable copy of aViewClosedIFvalue. 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 ViewClosed instance
-
builder
Creates a builder forViewClosed.ViewClosed.builder() .setType(com.hubspot.slack.client.models.interaction.InteractiveCallbackType) // requiredtype.setCallbackId(String) // requiredcallbackId.setActionTs(String) // requiredactionTs.setToken(String) // requiredtoken.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.setView(com.hubspot.slack.client.models.views.ViewPayloadBase) // requiredview.setIsCleared(boolean) // requiredisCleared.build();- Returns:
- A new ViewClosed builder
-