/**
* 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 voice
* 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 VoiceTemplateResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the message template.
*/ inline VoiceTemplateResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the message template.
*/ inline VoiceTemplateResponse& WithArn(const char* value) { SetArn(value); return *this;} /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline const Aws::String& GetBody() const{ return m_body; } /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline VoiceTemplateResponse& WithBody(const Aws::String& value) { SetBody(value); return *this;} /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline VoiceTemplateResponse& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} /** *The text of the script that's used in messages that are based on the message * template, in plain text format.
*/ inline VoiceTemplateResponse& WithBody(const char* value) { SetBody(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 VoiceTemplateResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *The date, in ISO 8601 format, when the message template was created.
*/ inline VoiceTemplateResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *The date, in ISO 8601 format, when the message template was created.
*/ inline VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;} /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline const Aws::String& GetLanguageCode() const{ return m_languageCode; } /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); } /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;} /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;} /** *The code for the language that's used when synthesizing the text of the * script in messages that are based on the message template. For a list of * supported languages and the code for each one, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithLanguageCode(const char* value) { SetLanguageCode(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 VoiceTemplateResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;} /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline VoiceTemplateResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *The date, in ISO 8601 format, when the message template was last * modified.
*/ inline VoiceTemplateResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& WithTemplateDescription(const Aws::String& value) { SetTemplateDescription(value); return *this;} /** *The custom description of the message template.
*/ inline VoiceTemplateResponse& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;} /** *The custom description of the message template.
*/ inline VoiceTemplateResponse& 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 VoiceTemplateResponse& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *The name of the message template.
*/ inline VoiceTemplateResponse& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *The name of the message template.
*/ inline VoiceTemplateResponse& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *The type of channel that the message template is designed for. For a voice * template, this value is VOICE.
*/ inline const TemplateType& GetTemplateType() const{ return m_templateType; } /** *The type of channel that the message template is designed for. For a voice * template, this value is VOICE.
*/ inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } /** *The type of channel that the message template is designed for. For a voice * template, this value is VOICE.
*/ inline void SetTemplateType(const TemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } /** *The type of channel that the message template is designed for. For a voice * template, this value is VOICE.
*/ 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 a voice * template, this value is VOICE.
*/ inline VoiceTemplateResponse& WithTemplateType(const TemplateType& value) { SetTemplateType(value); return *this;} /** *The type of channel that the message template is designed for. For a voice * template, this value is VOICE.
*/ inline VoiceTemplateResponse& WithTemplateType(TemplateType&& value) { SetTemplateType(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 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& 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 VoiceTemplateResponse& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline const Aws::String& GetVoiceId() const{ return m_voiceId; } /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline bool VoiceIdHasBeenSet() const { return m_voiceIdHasBeenSet; } /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline void SetVoiceId(const Aws::String& value) { m_voiceIdHasBeenSet = true; m_voiceId = value; } /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline void SetVoiceId(Aws::String&& value) { m_voiceIdHasBeenSet = true; m_voiceId = std::move(value); } /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline void SetVoiceId(const char* value) { m_voiceIdHasBeenSet = true; m_voiceId.assign(value); } /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithVoiceId(const Aws::String& value) { SetVoiceId(value); return *this;} /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithVoiceId(Aws::String&& value) { SetVoiceId(std::move(value)); return *this;} /** *The name of the voice that's used when delivering messages that are based on * the message template. For a list of supported voices, see the Amazon Polly * Developer Guide.
*/ inline VoiceTemplateResponse& WithVoiceId(const char* value) { SetVoiceId(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_body; bool m_bodyHasBeenSet = false; Aws::String m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_defaultSubstitutions; bool m_defaultSubstitutionsHasBeenSet = false; Aws::String m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::String m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::Map