Class ViewClosed.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewClosed.Builder
- Enclosing class:
ViewClosed
@Generated(from="ViewClosedIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewClosed.Builder
extends Object
Builds instances of type
ViewClosed.
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 newViewClosed.final ViewClosed.Builderfrom(SlackInteractiveCallback instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.final ViewClosed.Builderfrom(ViewClosedIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.ViewClosedIFinstance.final ViewClosed.BuildersetActionTs(String actionTs) Initializes the value for theactionTsattribute.final ViewClosed.BuildersetCallbackId(String callbackId) Initializes the value for thecallbackIdattribute.final ViewClosed.BuildersetChannel(SlackChannel channel) Initializes the value for thechannelattribute.final ViewClosed.BuildersetIsCleared(boolean isCleared) Initializes the value for theisClearedattribute.final ViewClosed.BuilderInitializes the value for theteamattribute.final ViewClosed.BuilderInitializes the value for thetokenattribute.final ViewClosed.BuilderInitializes the value for thetypeattribute.final ViewClosed.BuildersetUser(SlackUserLite user) Initializes the value for theuserattribute.final ViewClosed.BuildersetView(ViewPayloadBase view) Initializes the value for theviewattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.ViewClosedIFinstance.- 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
-
setCallbackId
Initializes the value for thecallbackIdattribute.- Parameters:
callbackId- The value for callbackId- Returns:
thisbuilder for use in a chained invocation
-
setActionTs
Initializes the value for theactionTsattribute.- Parameters:
actionTs- The value for actionTs- 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
-
setChannel
Initializes the value for thechannelattribute.- Parameters:
channel- The value for channel- 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
-
setIsCleared
Initializes the value for theisClearedattribute.- Parameters:
isCleared- The value for isCleared- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewClosed.- Returns:
- An immutable instance of ViewClosed
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-