AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SMSTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
31 public:
32 AWS_PINPOINT_API SMSTemplateRequest() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetBody() const { return m_body; }
43 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
44 template <typename BodyT = Aws::String>
45 void SetBody(BodyT&& value) {
46 m_bodyHasBeenSet = true;
47 m_body = std::forward<BodyT>(value);
48 }
49 template <typename BodyT = Aws::String>
50 SMSTemplateRequest& WithBody(BodyT&& value) {
51 SetBody(std::forward<BodyT>(value));
52 return *this;
53 }
55
57
65 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
66 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
67 template <typename DefaultSubstitutionsT = Aws::String>
68 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) {
69 m_defaultSubstitutionsHasBeenSet = true;
70 m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value);
71 }
72 template <typename DefaultSubstitutionsT = Aws::String>
73 SMSTemplateRequest& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) {
74 SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value));
75 return *this;
76 }
78
80
87 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
88 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
89 template <typename RecommenderIdT = Aws::String>
90 void SetRecommenderId(RecommenderIdT&& value) {
91 m_recommenderIdHasBeenSet = true;
92 m_recommenderId = std::forward<RecommenderIdT>(value);
93 }
94 template <typename RecommenderIdT = Aws::String>
95 SMSTemplateRequest& WithRecommenderId(RecommenderIdT&& value) {
96 SetRecommenderId(std::forward<RecommenderIdT>(value));
97 return *this;
98 }
100
102
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SMSTemplateRequest& WithTags(TagsT&& value) {
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 SMSTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
140 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
141 template <typename TemplateDescriptionT = Aws::String>
142 void SetTemplateDescription(TemplateDescriptionT&& value) {
143 m_templateDescriptionHasBeenSet = true;
144 m_templateDescription = std::forward<TemplateDescriptionT>(value);
145 }
146 template <typename TemplateDescriptionT = Aws::String>
147 SMSTemplateRequest& WithTemplateDescription(TemplateDescriptionT&& value) {
148 SetTemplateDescription(std::forward<TemplateDescriptionT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_body;
154 bool m_bodyHasBeenSet = false;
155
156 Aws::String m_defaultSubstitutions;
157 bool m_defaultSubstitutionsHasBeenSet = false;
158
159 Aws::String m_recommenderId;
160 bool m_recommenderIdHasBeenSet = false;
161
163 bool m_tagsHasBeenSet = false;
164
165 Aws::String m_templateDescription;
166 bool m_templateDescriptionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Pinpoint
171} // namespace Aws
SMSTemplateRequest & WithTemplateDescription(TemplateDescriptionT &&value)
SMSTemplateRequest & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
void SetRecommenderId(RecommenderIdT &&value)
SMSTemplateRequest & WithRecommenderId(RecommenderIdT &&value)
AWS_PINPOINT_API SMSTemplateRequest()=default
SMSTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateDescription() const
const Aws::String & GetDefaultSubstitutions() const
SMSTemplateRequest & WithTags(TagsT &&value)
AWS_PINPOINT_API SMSTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API SMSTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRecommenderId() const
SMSTemplateRequest & WithBody(BodyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTemplateDescription(TemplateDescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue