/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

InApp Template Request.

See Also:

AWS * API Reference

*/ class InAppTemplateRequest { public: AWS_PINPOINT_API InAppTemplateRequest(); AWS_PINPOINT_API InAppTemplateRequest(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API InAppTemplateRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline const Aws::Vector& GetContent() const{ return m_content; } /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline void SetContent(const Aws::Vector& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline void SetContent(Aws::Vector&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline InAppTemplateRequest& WithContent(const Aws::Vector& value) { SetContent(value); return *this;} /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline InAppTemplateRequest& WithContent(Aws::Vector&& value) { SetContent(std::move(value)); return *this;} /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline InAppTemplateRequest& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; } /** *

The content of the message, can include up to 5 modals. Each modal must * contain a message, a header, and background color. ImageUrl and buttons are * optional.

*/ inline InAppTemplateRequest& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; } /** *

Custom config to be sent to client.

*/ inline const Aws::Map& GetCustomConfig() const{ return m_customConfig; } /** *

Custom config to be sent to client.

*/ inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; } /** *

Custom config to be sent to client.

*/ inline void SetCustomConfig(const Aws::Map& value) { m_customConfigHasBeenSet = true; m_customConfig = value; } /** *

Custom config to be sent to client.

*/ inline void SetCustomConfig(Aws::Map&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& WithCustomConfig(const Aws::Map& value) { SetCustomConfig(value); return *this;} /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& WithCustomConfig(Aws::Map&& value) { SetCustomConfig(std::move(value)); return *this;} /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; } /** *

Custom config to be sent to client.

*/ inline InAppTemplateRequest& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; } /** *

The layout of the message.

*/ inline const Layout& GetLayout() const{ return m_layout; } /** *

The layout of the message.

*/ inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; } /** *

The layout of the message.

*/ inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; } /** *

The layout of the message.

*/ inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); } /** *

The layout of the message.

*/ inline InAppTemplateRequest& WithLayout(const Layout& value) { SetLayout(value); return *this;} /** *

The layout of the message.

*/ inline InAppTemplateRequest& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;} /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

As of 22-05-2023 tags has been deprecated for update operations. * After this date any value in tags is not processed and an error code is not * returned. To manage tags we recommend using either Tags * in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi * commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi * in the AWS SDK.

(Deprecated) A string-to-string map of * key-value pairs that defines the tags to associate with the message template. * Each tag consists of a required tag key and an associated tag value.

*/ inline InAppTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The description of the template.

*/ inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; } /** *

The description of the template.

*/ inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; } /** *

The description of the template.

*/ inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; } /** *

The description of the template.

*/ inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); } /** *

The description of the template.

*/ inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); } /** *

The description of the template.

*/ inline InAppTemplateRequest& WithTemplateDescription(const Aws::String& value) { SetTemplateDescription(value); return *this;} /** *

The description of the template.

*/ inline InAppTemplateRequest& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;} /** *

The description of the template.

*/ inline InAppTemplateRequest& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;} private: Aws::Vector m_content; bool m_contentHasBeenSet = false; Aws::Map m_customConfig; bool m_customConfigHasBeenSet = false; Layout m_layout; bool m_layoutHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_templateDescription; bool m_templateDescriptionHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws