java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.WorkObject.Builder
Enclosing class:
WorkObject

@Generated(from="WorkObjectIF", generator="Immutables") @NotThreadSafe public static final class WorkObject.Builder extends Object
Builds instances of type WorkObject. 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 WorkObject.Builder from(WorkObjectIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.chat.workobject.WorkObjectIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final WorkObject.Builder from(WorkObjectBase instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.chat.workobject.WorkObjectBase instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setEntityType

      public final WorkObject.Builder setEntityType(EntityType entityType)
      Initializes the value for the entityType attribute.
      Parameters:
      entityType - The value for entityType
      Returns:
      this builder for use in a chained invocation
    • setEntityPayload

      public final WorkObject.Builder setEntityPayload(EntityPayload entityPayload)
      Initializes the value for the entityPayload attribute.
      Parameters:
      entityPayload - The value for entityPayload
      Returns:
      this builder for use in a chained invocation
    • setUrl

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

      public final WorkObject.Builder setExternalRef(ExternalRef externalRef)
      Initializes the value for the externalRef attribute.
      Parameters:
      externalRef - The value for externalRef
      Returns:
      this builder for use in a chained invocation
    • setAppUnfurlUrl

      public final WorkObject.Builder setAppUnfurlUrl(String appUnfurlUrl)
      Initializes the value for the appUnfurlUrl attribute.
      Parameters:
      appUnfurlUrl - The value for appUnfurlUrl
      Returns:
      this builder for use in a chained invocation
    • build

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