Class EntityDetailContainer.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.EntityDetailContainer.Builder
- Enclosing class:
EntityDetailContainer
@Generated(from="EntityDetailContainerIF",
generator="Immutables")
@NotThreadSafe
public static final class EntityDetailContainer.Builder
extends Object
Builds instances of type
EntityDetailContainer.
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 newEntityDetailContainer.Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.Containerinstance.from(EntityDetailContainerIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.EntityDetailContainerIFinstance.setAppUnfurlUrl(String appUnfurlUrl) Initializes the optional valueappUnfurlUrlto appUnfurlUrl.setAppUnfurlUrl(Optional<String> appUnfurlUrl) Initializes the optional valueappUnfurlUrlto appUnfurlUrl.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setEntityUrl(String entityUrl) Initializes the optional valueentityUrlto entityUrl.setEntityUrl(Optional<String> entityUrl) Initializes the optional valueentityUrlto entityUrl.setExternalRef(ExternalRef externalRef) Initializes the optional valueexternalRefto externalRef.setExternalRef(Optional<? extends ExternalRef> externalRef) Initializes the optional valueexternalRefto externalRef.setMessageTs(String messageTs) Initializes the value for themessageTsattribute.setType(ContainerType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.Containerinstance.- 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.EntityDetailContainerIFinstance.- 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
-
setMessageTs
Initializes the value for themessageTsattribute.- Parameters:
messageTs- The value for messageTs- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setExternalRef
Initializes the optional valueexternalRefto externalRef.- Parameters:
externalRef- The value for externalRef,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setExternalRef
public final EntityDetailContainer.Builder setExternalRef(Optional<? extends ExternalRef> externalRef) Initializes the optional valueexternalRefto externalRef.- Parameters:
externalRef- The value for externalRef- Returns:
thisbuilder for use in a chained invocation
-
setEntityUrl
Initializes the optional valueentityUrlto entityUrl.- Parameters:
entityUrl- The value for entityUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEntityUrl
Initializes the optional valueentityUrlto entityUrl.- Parameters:
entityUrl- The value for entityUrl- Returns:
thisbuilder for use in a chained invocation
-
setAppUnfurlUrl
Initializes the optional valueappUnfurlUrlto appUnfurlUrl.- Parameters:
appUnfurlUrl- The value for appUnfurlUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAppUnfurlUrl
Initializes the optional valueappUnfurlUrlto appUnfurlUrl.- Parameters:
appUnfurlUrl- The value for appUnfurlUrl- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEntityDetailContainer.- Returns:
- An immutable instance of EntityDetailContainer
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-