Class BlocksLoadOptionsRequest.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsRequest.Builder
- Enclosing class:
BlocksLoadOptionsRequest
@Generated(from="BlocksLoadOptionsRequestIF",
generator="Immutables")
@NotThreadSafe
public static final class BlocksLoadOptionsRequest.Builder
extends Object
Builds instances of type
BlocksLoadOptionsRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBlocksLoadOptionsRequest.from(BlocksLoadOptionsRequestIF instance) Fill a builder with attribute values from the providedBlocksLoadOptionsRequestIFinstance.setActionId(String actionId) Initializes the value for theactionIdattribute.setBlockId(String blockId) Initializes the value for theblockIdattribute.setContainer(Container container) Initializes the value for thecontainerattribute.Initializes the value for theteamattribute.Initializes the value for thetokenattribute.Initializes the value for thetypeattribute.setUser(SlackUserLite user) Initializes the value for theuserattribute.Initializes the value for thevalueattribute.setView(ViewResponseBase view) Initializes the optional valueviewto view.setView(Optional<? extends ViewResponseBase> view) Initializes the optional valueviewto view.
-
Method Details
-
from
Fill a builder with attribute values from the providedBlocksLoadOptionsRequestIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setUser
Initializes the value for theuserattribute.- Parameters:
user- The value for user- Returns:
thisbuilder for use in a chained invocation
-
setTeam
Initializes the value for theteamattribute.- Parameters:
team- The value for team- Returns:
thisbuilder for use in a chained invocation
-
setToken
Initializes the value for thetokenattribute.- Parameters:
token- The value for token- Returns:
thisbuilder for use in a chained invocation
-
setActionId
Initializes the value for theactionIdattribute.- Parameters:
actionId- The value for actionId- Returns:
thisbuilder for use in a chained invocation
-
setBlockId
Initializes the value for theblockIdattribute.- Parameters:
blockId- The value for blockId- Returns:
thisbuilder for use in a chained invocation
-
setValue
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
setContainer
Initializes the value for thecontainerattribute.- Parameters:
container- The value for container- Returns:
thisbuilder for use in a chained invocation
-
setView
Initializes the optional valueviewto view.- Parameters:
view- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setView
Initializes the optional valueviewto view.- Parameters:
view- The value for view- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBlocksLoadOptionsRequest.- Returns:
- An immutable instance of BlocksLoadOptionsRequest
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-