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

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

      public final FlexPaneMetadata.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 FlexPaneMetadata.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 FlexPaneMetadata.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 FlexPaneMetadata.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 FlexPaneMetadata.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
    • build

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