Class BlocksLoadOptionsRequest
java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsRequest
- All Implemented Interfaces:
BlocksLoadOptionsRequestIF
@Generated(from="BlocksLoadOptionsRequestIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BlocksLoadOptionsRequest
extends Object
implements BlocksLoadOptionsRequestIF
Immutable implementation of
BlocksLoadOptionsRequestIF.
Use the builder to create immutable instances:
BlocksLoadOptionsRequest.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBlocksLoadOptionsRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forBlocksLoadOptionsRequest.static BlocksLoadOptionsRequestcopyOf(BlocksLoadOptionsRequestIF instance) Creates an immutable copy of aBlocksLoadOptionsRequestIFvalue.booleanThis instance is equal to all instances ofBlocksLoadOptionsRequestthat have equal attribute values.getTeam()getToken()getType()getUser()getValue()getView()inthashCode()Computes a hash code from attributes:type,user,team,token,actionId,blockId,value,container,view.toString()Prints the immutable valueBlocksLoadOptionsRequestwith attribute values.final BlocksLoadOptionsRequestwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final BlocksLoadOptionsRequestwithBlockId(String value) Copy the current immutable object by setting a value for theblockIdattribute.final BlocksLoadOptionsRequestwithContainer(Container value) Copy the current immutable object by setting a value for thecontainerattribute.final BlocksLoadOptionsRequestCopy the current immutable object by setting a value for theteamattribute.final BlocksLoadOptionsRequestCopy the current immutable object by setting a value for thetokenattribute.final BlocksLoadOptionsRequestCopy the current immutable object by setting a value for thetypeattribute.final BlocksLoadOptionsRequestwithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.final BlocksLoadOptionsRequestCopy the current immutable object by setting a value for thevalueattribute.final BlocksLoadOptionsRequestwithView(ViewResponseBase value) Copy the current immutable object by setting a present value for the optionalviewattribute.final BlocksLoadOptionsRequestwithView(Optional<? extends ViewResponseBase> optional) Copy the current immutable object by setting an optional value for theviewattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
typeattribute
-
getUser
- Specified by:
getUserin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
userattribute
-
getTeam
- Specified by:
getTeamin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
teamattribute
-
getToken
- Specified by:
getTokenin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
tokenattribute
-
getActionId
- Specified by:
getActionIdin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
actionIdattribute
-
getBlockId
- Specified by:
getBlockIdin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
blockIdattribute
-
getValue
- Specified by:
getValuein interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
valueattribute
-
getContainer
- Specified by:
getContainerin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
containerattribute
-
getView
- Specified by:
getViewin interfaceBlocksLoadOptionsRequestIF- Returns:
- The value of the
viewattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- 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
-
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
-
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
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withBlockId
Copy the current immutable object by setting a value for theblockIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blockId- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withContainer
Copy the current immutable object by setting a value for thecontainerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for container- Returns:
- A modified copy or the
thisobject
-
withView
Copy the current immutable object by setting a present value for the optionalviewattribute.- Parameters:
value- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting an optional value for theviewattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for view- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBlocksLoadOptionsRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,user,team,token,actionId,blockId,value,container,view. -
toString
Prints the immutable valueBlocksLoadOptionsRequestwith attribute values. -
copyOf
Creates an immutable copy of aBlocksLoadOptionsRequestIFvalue. 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 BlocksLoadOptionsRequest instance
-
builder
Creates a builder forBlocksLoadOptionsRequest.BlocksLoadOptionsRequest.builder() .setType(String) // requiredtype.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setToken(String) // requiredtoken.setActionId(String) // requiredactionId.setBlockId(String) // requiredblockId.setValue(String) // requiredvalue.setContainer(com.hubspot.slack.client.models.interaction.Container) // requiredcontainer.setView(Optional<com.hubspot.slack.client.models.response.views.ViewResponseBase>) // optionalview.build();- Returns:
- A new BlocksLoadOptionsRequest builder
-