/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the content and settings for a message template
* that can be used in messages that are sent through the email
* channel.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the message template.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the message template.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the message template.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the message template.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the message template.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the message template.
*/ inline EmailTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the message template.
*/ inline EmailTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the message template.
*/ inline EmailTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;} /** *The date, in ISO 8601 format, when the message template was created.
*/ inline const Aws::String& GetCreationDate() const{ return m_creationDate; } /** *The date, in ISO 8601 format, when the message template was created.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The date, in ISO 8601 format, when the message template was created.
*/ inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The date, in ISO 8601 format, when the message template was created.
*/ inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The date, in ISO 8601 format, when the message template was created.
*/ inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); } /** *The date, in ISO 8601 format, when the message template was created.
*/ inline EmailTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *The date, in ISO 8601 format, when the message template was created.
*/ inline EmailTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *The date, in ISO 8601 format, when the message template was created.
*/ inline EmailTemplateResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; } /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; } /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; } /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); } /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); } /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline EmailTemplateResponse& WithDefaultSubstitutions(const Aws::String& value) { SetDefaultSubstitutions(value); return *this;} /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline EmailTemplateResponse& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;} /** *The JSON object that specifies the default values that are used for message * variables in the message template. This object is a set of key-value pairs. Each * key defines a message variable in the template. The corresponding value defines * the default value for that variable.
*/ inline EmailTemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;} /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline const Aws::String& GetHtmlPart() const{ return m_htmlPart; } /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; } /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline void SetHtmlPart(const Aws::String& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; } /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline void SetHtmlPart(Aws::String&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); } /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline void SetHtmlPart(const char* value) { m_htmlPartHasBeenSet = true; m_htmlPart.assign(value); } /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline EmailTemplateResponse& WithHtmlPart(const Aws::String& value) { SetHtmlPart(value); return *this;} /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline EmailTemplateResponse& WithHtmlPart(Aws::String&& value) { SetHtmlPart(std::move(value)); return *this;} /** *The message body, in HTML format, that's used in email messages that are * based on the message template.
*/ inline EmailTemplateResponse& WithHtmlPart(const char* value) { SetHtmlPart(value); return *this;} /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); } /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline EmailTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;} /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline EmailTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline EmailTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;} /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; } /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; } /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; } /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); } /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); } /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline EmailTemplateResponse& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;} /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline EmailTemplateResponse& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;} /** *The unique identifier for the recommender model that's used by the message * template.
*/ inline EmailTemplateResponse& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;} /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline const Aws::String& GetSubject() const{ return m_subject; } /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline EmailTemplateResponse& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline EmailTemplateResponse& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} /** *The subject line, or title, that's used in email messages that are based on * the message template.
*/ inline EmailTemplateResponse& WithSubject(const char* value) { SetSubject(value); return *this;} /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline const Aws::MapA string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline void SetTags(const Aws::MapA string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline void SetTags(Aws::MapA string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& WithTags(const Aws::MapA string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& WithTags(Aws::MapA string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *A string-to-string map of key-value pairs that identifies the tags that are * associated with the message template. Each tag consists of a required tag key * and an associated tag value.
*/ inline EmailTemplateResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The custom description of the message template.
*/ inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; } /** *The custom description of the message template.
*/ inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; } /** *The custom description of the message template.
*/ inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; } /** *The custom description of the message template.
*/ inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); } /** *The custom description of the message template.
*/ inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); } /** *The custom description of the message template.
*/ inline EmailTemplateResponse& WithTemplateDescription(const Aws::String& value) { SetTemplateDescription(value); return *this;} /** *The custom description of the message template.
*/ inline EmailTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;} /** *The custom description of the message template.
*/ inline EmailTemplateResponse& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;} /** *The name of the message template.
*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *The name of the message template.
*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *The name of the message template.
*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *The name of the message template.
*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *The name of the message template.
*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *The name of the message template.
*/ inline EmailTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *The name of the message template.
*/ inline EmailTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *The name of the message template.
*/ inline EmailTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline const TemplateType& GetTemplateType() const{ return m_templateType; } /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline void SetTemplateType(TemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline EmailTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;} /** *The type of channel that the message template is designed for. For an email * template, this value is EMAIL.
*/ inline EmailTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(std::move(value)); return *this;} /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline const Aws::String& GetTextPart() const{ return m_textPart; } /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; } /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline void SetTextPart(const Aws::String& value) { m_textPartHasBeenSet = true; m_textPart = value; } /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline void SetTextPart(Aws::String&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); } /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline void SetTextPart(const char* value) { m_textPartHasBeenSet = true; m_textPart.assign(value); } /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline EmailTemplateResponse& WithTextPart(const Aws::String& value) { SetTextPart(value); return *this;} /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline EmailTemplateResponse& WithTextPart(Aws::String&& value) { SetTextPart(std::move(value)); return *this;} /** *The message body, in plain text format, that's used in email messages that * are based on the message template.
*/ inline EmailTemplateResponse& WithTextPart(const char* value) { SetTextPart(value); return *this;} /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline EmailTemplateResponse& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline EmailTemplateResponse& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The unique identifier, as an integer, for the active version of the message * template, or the version of the template that you specified by using the version * parameter in your request.
*/ inline EmailTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_defaultSubstitutions; bool m_defaultSubstitutionsHasBeenSet = false; Aws::String m_htmlPart; bool m_htmlPartHasBeenSet = false; Aws::String m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_recommenderId; bool m_recommenderIdHasBeenSet = false; Aws::String m_subject; bool m_subjectHasBeenSet = false; Aws::Map