@NotThreadSafe public static final class BlocksLoadOptionsRequest.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
BlocksLoadOptionsRequest |
build()
Builds a new
BlocksLoadOptionsRequest. |
BlocksLoadOptionsRequest.Builder |
from(BlocksLoadOptionsRequestIF instance)
Fill a builder with attribute values from the provided
BlocksLoadOptionsRequestIF instance. |
BlocksLoadOptionsRequest.Builder |
setActionId(String actionId)
Initializes the value for the
actionId attribute. |
BlocksLoadOptionsRequest.Builder |
setBlockId(String blockId)
Initializes the value for the
blockId attribute. |
BlocksLoadOptionsRequest.Builder |
setContainer(Container container)
Initializes the value for the
container attribute. |
BlocksLoadOptionsRequest.Builder |
setTeam(SlackTeam team)
Initializes the value for the
team attribute. |
BlocksLoadOptionsRequest.Builder |
setToken(String token)
Initializes the value for the
token attribute. |
BlocksLoadOptionsRequest.Builder |
setType(String type)
Initializes the value for the
type attribute. |
BlocksLoadOptionsRequest.Builder |
setUser(SlackUserLite user)
Initializes the value for the
user attribute. |
BlocksLoadOptionsRequest.Builder |
setValue(String value)
Initializes the value for the
value attribute. |
public final BlocksLoadOptionsRequest.Builder from(BlocksLoadOptionsRequestIF instance)
BlocksLoadOptionsRequestIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setType(String type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setUser(SlackUserLite user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setTeam(SlackTeam team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setActionId(String actionId)
actionId attribute.actionId - The value for actionIdthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setBlockId(String blockId)
blockId attribute.blockId - The value for blockIdthis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setValue(String value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic final BlocksLoadOptionsRequest.Builder setContainer(Container container)
container attribute.container - The value for containerthis builder for use in a chained invocationpublic BlocksLoadOptionsRequest build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
BlocksLoadOptionsRequest.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.