Class EntityDetailsRequestedEvent.Builder
java.lang.Object
com.hubspot.slack.client.models.events.links.EntityDetailsRequestedEvent.Builder
- Enclosing class:
EntityDetailsRequestedEvent
@Generated(from="EntityDetailsRequestedEventIF",
generator="Immutables")
@NotThreadSafe
public static final class EntityDetailsRequestedEvent.Builder
extends Object
Builds instances of type
EntityDetailsRequestedEvent.
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 newEntityDetailsRequestedEvent.from(EntityDetailsRequestedEventIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.links.EntityDetailsRequestedEventIFinstance.from(SlackEvent instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.SlackEventinstance.setAppUnfurlUrl(String appUnfurlUrl) Initializes the value for theappUnfurlUrlattribute.setChannelId(String channelId) Initializes the optional valuechannelIdto channelId.setChannelId(Optional<String> channelId) Initializes the optional valuechannelIdto channelId.setEntityUrl(String entityUrl) Initializes the value for theentityUrlattribute.setEventTs(String eventTs) Initializes the value for theeventTsattribute.setExternalRef(ExternalRef externalRef) Initializes the value for theexternalRefattribute.Initializes the value for thelinkattribute.setMessageTs(String messageTs) Initializes the optional valuemessageTsto messageTs.setMessageTs(Optional<String> messageTs) Initializes the optional valuemessageTsto messageTs.setThreadTs(String threadTs) Initializes the optional valuethreadTsto threadTs.setThreadTs(Optional<String> threadTs) Initializes the optional valuethreadTsto threadTs.setTriggerId(String triggerId) Initializes the value for thetriggerIdattribute.setType(SlackEventType type) Initializes the value for thetypeattribute.Initializes the value for theuserIdattribute.setUserLocale(String userLocale) Initializes the value for theuserLocaleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.links.EntityDetailsRequestedEventIFinstance.- 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.events.SlackEventinstance.- 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
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- Parameters:
channelId- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setExternalRef
Initializes the value for theexternalRefattribute.- Parameters:
externalRef- The value for externalRef- Returns:
thisbuilder for use in a chained invocation
-
setEntityUrl
Initializes the value for theentityUrlattribute.- Parameters:
entityUrl- The value for entityUrl- Returns:
thisbuilder for use in a chained invocation
-
setLink
Initializes the value for thelinkattribute.- Parameters:
link- The value for link- Returns:
thisbuilder for use in a chained invocation
-
setAppUnfurlUrl
Initializes the value for theappUnfurlUrlattribute.- Parameters:
appUnfurlUrl- The value for appUnfurlUrl- Returns:
thisbuilder for use in a chained invocation
-
setEventTs
Initializes the value for theeventTsattribute.- Parameters:
eventTs- The value for eventTs- Returns:
thisbuilder for use in a chained invocation
-
setTriggerId
Initializes the value for thetriggerIdattribute.- Parameters:
triggerId- The value for triggerId- Returns:
thisbuilder for use in a chained invocation
-
setUserLocale
Initializes the value for theuserLocaleattribute.- Parameters:
userLocale- The value for userLocale- Returns:
thisbuilder for use in a chained invocation
-
setMessageTs
Initializes the optional valuemessageTsto messageTs.- Parameters:
messageTs- The value for messageTs,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMessageTs
Initializes the optional valuemessageTsto messageTs.- Parameters:
messageTs- The value for messageTs- Returns:
thisbuilder for use in a chained invocation
-
setThreadTs
Initializes the optional valuethreadTsto threadTs.- Parameters:
threadTs- The value for threadTs,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThreadTs
Initializes the optional valuethreadTsto threadTs.- Parameters:
threadTs- The value for threadTs- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEntityDetailsRequestedEvent.- Returns:
- An immutable instance of EntityDetailsRequestedEvent
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-