Interface MessageTemplateData.Builder

  • Method Details

    • messageTemplateArn

      MessageTemplateData.Builder messageTemplateArn(String messageTemplateArn)

      The Amazon Resource Name (ARN) of the message template.

      Parameters:
      messageTemplateArn - The Amazon Resource Name (ARN) of the message template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageTemplateId

      MessageTemplateData.Builder messageTemplateId(String messageTemplateId)

      The identifier of the message template.

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

      MessageTemplateData.Builder knowledgeBaseArn(String knowledgeBaseArn)

      The Amazon Resource Name (ARN) of the knowledge base.

      Parameters:
      knowledgeBaseArn - The Amazon Resource Name (ARN) of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseId

      MessageTemplateData.Builder knowledgeBaseId(String knowledgeBaseId)

      The identifier of the knowledge base.

      Parameters:
      knowledgeBaseId - The identifier of the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the message template.

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

      MessageTemplateData.Builder channelSubtype(String channelSubtype)

      The channel subtype this message template applies to.

      Parameters:
      channelSubtype - The channel subtype this message template applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • channelSubtype

      MessageTemplateData.Builder channelSubtype(ChannelSubtype channelSubtype)

      The channel subtype this message template applies to.

      Parameters:
      channelSubtype - The channel subtype this message template applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTime

      MessageTemplateData.Builder createdTime(Instant createdTime)

      The timestamp when the message template was created.

      Parameters:
      createdTime - The timestamp when the message template was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedTime

      MessageTemplateData.Builder lastModifiedTime(Instant lastModifiedTime)

      The timestamp when the message template data was last modified.

      Parameters:
      lastModifiedTime - The timestamp when the message template data was last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedBy

      MessageTemplateData.Builder lastModifiedBy(String lastModifiedBy)

      The Amazon Resource Name (ARN) of the user who last updated the message template data.

      Parameters:
      lastModifiedBy - The Amazon Resource Name (ARN) of the user who last updated the message template data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content of the message template.

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

      The content of the message template.

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

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

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

      MessageTemplateData.Builder description(String description)

      The description of the message template.

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

      MessageTemplateData.Builder language(String language)

      The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

      Parameters:
      language - The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupingConfiguration

      MessageTemplateData.Builder groupingConfiguration(GroupingConfiguration groupingConfiguration)
      Sets the value of the GroupingConfiguration property for this object.
      Parameters:
      groupingConfiguration - The new value for the GroupingConfiguration property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupingConfiguration

      default MessageTemplateData.Builder groupingConfiguration(Consumer<GroupingConfiguration.Builder> groupingConfiguration)
      Sets the value of the GroupingConfiguration property for this object. This is a convenience method that creates an instance of the GroupingConfiguration.Builder avoiding the need to create one manually via GroupingConfiguration.builder().

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

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

      MessageTemplateData.Builder defaultAttributes(MessageTemplateAttributes defaultAttributes)

      An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

      Parameters:
      defaultAttributes - An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultAttributes

      default MessageTemplateData.Builder defaultAttributes(Consumer<MessageTemplateAttributes.Builder> defaultAttributes)

      An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

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

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

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

      MessageTemplateData.Builder attributeTypesWithStrings(Collection<String> attributeTypes)

      The types of attributes that the message template contains.

      Parameters:
      attributeTypes - The types of attributes that the message template contains.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeTypesWithStrings

      MessageTemplateData.Builder attributeTypesWithStrings(String... attributeTypes)

      The types of attributes that the message template contains.

      Parameters:
      attributeTypes - The types of attributes that the message template contains.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeTypes

      The types of attributes that the message template contains.

      Parameters:
      attributeTypes - The types of attributes that the message template contains.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeTypes

      MessageTemplateData.Builder attributeTypes(MessageTemplateAttributeType... attributeTypes)

      The types of attributes that the message template contains.

      Parameters:
      attributeTypes - The types of attributes that the message template contains.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageTemplateContentSha256

      MessageTemplateData.Builder messageTemplateContentSha256(String messageTemplateContentSha256)

      The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.

      Parameters:
      messageTemplateContentSha256 - The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags used to organize, track, or control access for this resource.

      Parameters:
      tags - The tags used to organize, track, or control access for this resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.