@NotThreadSafe public static final class ViewSubmission.Builder extends Object
ViewSubmission.
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 |
|---|---|
ViewSubmission |
build()
Builds a new
ViewSubmission. |
ViewSubmission.Builder |
from(SlackInteractiveCallback instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.SlackInteractiveCallback instance. |
ViewSubmission.Builder |
from(ViewSubmissionIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.ViewSubmissionIF instance. |
ViewSubmission.Builder |
setTeam(SlackTeam team)
Initializes the value for the
team attribute. |
ViewSubmission.Builder |
setToken(String token)
Initializes the value for the
token attribute. |
ViewSubmission.Builder |
setType(InteractiveCallbackType type)
Initializes the value for the
type attribute. |
ViewSubmission.Builder |
setUser(SlackUserLite user)
Initializes the value for the
user attribute. |
ViewSubmission.Builder |
setView(ViewInteractionPayload view)
Initializes the value for the
view attribute. |
public final ViewSubmission.Builder from(ViewSubmissionIF instance)
com.hubspot.slack.client.models.interaction.ViewSubmissionIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewSubmission.Builder from(SlackInteractiveCallback instance)
com.hubspot.slack.client.models.interaction.SlackInteractiveCallback instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewSubmission.Builder setView(ViewInteractionPayload view)
view attribute.view - The value for viewthis builder for use in a chained invocationpublic final ViewSubmission.Builder setType(InteractiveCallbackType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final ViewSubmission.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final ViewSubmission.Builder setTeam(SlackTeam team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final ViewSubmission.Builder setUser(SlackUserLite user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic ViewSubmission build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewSubmission.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.