Class ViewSubmission.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewSubmission.Builder
- Enclosing class:
ViewSubmission
@Generated(from="ViewSubmissionIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewSubmission.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newViewSubmission.final ViewSubmission.Builderfrom(SlackInteractiveCallback instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.final ViewSubmission.Builderfrom(ViewSubmissionIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.ViewSubmissionIFinstance.final ViewSubmission.BuildersetCallbackId(String callbackId) Initializes the value for thecallbackIdattribute.final ViewSubmission.BuilderInitializes the value for theteamattribute.final ViewSubmission.BuilderInitializes the value for thetokenattribute.final ViewSubmission.BuilderInitializes the value for thetypeattribute.final ViewSubmission.BuildersetUser(SlackUserLite user) Initializes the value for theuserattribute.final ViewSubmission.BuilderInitializes the value for theviewattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.ViewSubmissionIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.- 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
-
setToken
Initializes the value for thetokenattribute.- Parameters:
token- The value for token- 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
-
setUser
Initializes the value for theuserattribute.- Parameters:
user- The value for user- Returns:
thisbuilder for use in a chained invocation
-
setView
Initializes the value for theviewattribute.- Parameters:
view- The value for view- Returns:
thisbuilder for use in a chained invocation
-
setCallbackId
Initializes the value for thecallbackIdattribute.- Parameters:
callbackId- The value for callbackId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewSubmission.- Returns:
- An immutable instance of ViewSubmission
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-