Interface MetaLibraryTemplateDefinition.Builder

  • Method Details

    • templateName

      MetaLibraryTemplateDefinition.Builder templateName(String templateName)

      The name of the template.

      Parameters:
      templateName - The name of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateLanguage

      MetaLibraryTemplateDefinition.Builder templateLanguage(String templateLanguage)

      The language code for the template (for example, en_US).

      Parameters:
      templateLanguage - The language code for the template (for example, en_US).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateCategory

      MetaLibraryTemplateDefinition.Builder templateCategory(String templateCategory)

      The category of the template (for example, UTILITY or MARKETING).

      Parameters:
      templateCategory - The category of the template (for example, UTILITY or MARKETING).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateTopic

      MetaLibraryTemplateDefinition.Builder templateTopic(String templateTopic)

      The topic or subject matter of the template.

      Parameters:
      templateTopic - The topic or subject matter of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateUseCase

      MetaLibraryTemplateDefinition.Builder templateUseCase(String templateUseCase)

      The intended use case for the template.

      Parameters:
      templateUseCase - The intended use case for the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateIndustry

      MetaLibraryTemplateDefinition.Builder templateIndustry(Collection<String> templateIndustry)

      The industries the template is designed for.

      Parameters:
      templateIndustry - The industries the template is designed for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateIndustry

      MetaLibraryTemplateDefinition.Builder templateIndustry(String... templateIndustry)

      The industries the template is designed for.

      Parameters:
      templateIndustry - The industries the template is designed for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateHeader

      MetaLibraryTemplateDefinition.Builder templateHeader(String templateHeader)

      The header text of the template.

      Parameters:
      templateHeader - The header text of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateBody

      MetaLibraryTemplateDefinition.Builder templateBody(String templateBody)

      The body text of the template.

      Parameters:
      templateBody - The body text of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateButtons

      The buttons included in the template.

      Parameters:
      templateButtons - The buttons included in the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateButtons

      The buttons included in the template.

      Parameters:
      templateButtons - The buttons included in the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateButtons

      The buttons included in the template.

      This is a convenience method that creates an instance of the LibraryTemplateButtonList.Builder avoiding the need to create one manually via LibraryTemplateButtonList.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to templateButtons(List<LibraryTemplateButtonList>).

      Parameters:
      templateButtons - a consumer that will call methods on LibraryTemplateButtonList.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • templateId

      The ID of the template in Meta's library.

      Parameters:
      templateId - The ID of the template in Meta's library.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateBodyExampleParams

      MetaLibraryTemplateDefinition.Builder templateBodyExampleParams(Collection<String> templateBodyExampleParams)

      Example parameter values for the template body, used to demonstrate how dynamic content appears in the template.

      Parameters:
      templateBodyExampleParams - Example parameter values for the template body, used to demonstrate how dynamic content appears in the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateBodyExampleParams

      MetaLibraryTemplateDefinition.Builder templateBodyExampleParams(String... templateBodyExampleParams)

      Example parameter values for the template body, used to demonstrate how dynamic content appears in the template.

      Parameters:
      templateBodyExampleParams - Example parameter values for the template body, used to demonstrate how dynamic content appears in the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.