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 Details

    • from

      public final EntityDetailContainer.Builder from(Container instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.interaction.Container instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.interaction.EntityDetailContainerIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setType

      public final EntityDetailContainer.Builder setType(ContainerType type)
      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setMessageTs

      public final EntityDetailContainer.Builder setMessageTs(String messageTs)
      Initializes the value for the messageTs attribute.
      Parameters:
      messageTs - The value for messageTs
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final EntityDetailContainer.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setExternalRef

      public final EntityDetailContainer.Builder setExternalRef(@Nullable ExternalRef externalRef)
      Initializes the optional value externalRef to externalRef.
      Parameters:
      externalRef - The value for externalRef, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setExternalRef

      public final EntityDetailContainer.Builder setExternalRef(Optional<? extends ExternalRef> externalRef)
      Initializes the optional value externalRef to externalRef.
      Parameters:
      externalRef - The value for externalRef
      Returns:
      this builder for use in a chained invocation
    • setEntityUrl

      public final EntityDetailContainer.Builder setEntityUrl(@Nullable String entityUrl)
      Initializes the optional value entityUrl to entityUrl.
      Parameters:
      entityUrl - The value for entityUrl, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setEntityUrl

      public final EntityDetailContainer.Builder setEntityUrl(Optional<String> entityUrl)
      Initializes the optional value entityUrl to entityUrl.
      Parameters:
      entityUrl - The value for entityUrl
      Returns:
      this builder for use in a chained invocation
    • setAppUnfurlUrl

      public final EntityDetailContainer.Builder setAppUnfurlUrl(@Nullable String appUnfurlUrl)
      Initializes the optional value appUnfurlUrl to appUnfurlUrl.
      Parameters:
      appUnfurlUrl - The value for appUnfurlUrl, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setAppUnfurlUrl

      public final EntityDetailContainer.Builder setAppUnfurlUrl(Optional<String> appUnfurlUrl)
      Initializes the optional value appUnfurlUrl to appUnfurlUrl.
      Parameters:
      appUnfurlUrl - The value for appUnfurlUrl
      Returns:
      this builder for use in a chained invocation
    • build

      public EntityDetailContainer build()
      Builds a new EntityDetailContainer.
      Returns:
      An immutable instance of EntityDetailContainer
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing