Interface TemplatedMessageConfig.Builder

  • Method Details

    • knowledgeBaseId

      TemplatedMessageConfig.Builder knowledgeBaseId(String knowledgeBaseId)

      The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

      Parameters:
      knowledgeBaseId - The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageTemplateId

      TemplatedMessageConfig.Builder messageTemplateId(String messageTemplateId)

      The identifier of the message template Id.

      Parameters:
      messageTemplateId - The identifier of the message template Id.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateAttributes

      TemplatedMessageConfig.Builder templateAttributes(TemplateAttributes templateAttributes)

      Information about template attributes, that is, CustomAttributes or CustomerProfileAttributes.

      Parameters:
      templateAttributes - Information about template attributes, that is, CustomAttributes or CustomerProfileAttributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • templateAttributes

      default TemplatedMessageConfig.Builder templateAttributes(Consumer<TemplateAttributes.Builder> templateAttributes)

      Information about template attributes, that is, CustomAttributes or CustomerProfileAttributes.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to templateAttributes(TemplateAttributes).

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