AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SMSTemplateResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/TemplateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_PINPOINT_API SMSTemplateResponse() = default;
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 SMSTemplateResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
61 inline const Aws::String& GetBody() const { return m_body; }
62 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
63 template<typename BodyT = Aws::String>
64 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
65 template<typename BodyT = Aws::String>
66 SMSTemplateResponse& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
74 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
75 template<typename CreationDateT = Aws::String>
76 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
77 template<typename CreationDateT = Aws::String>
78 SMSTemplateResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
80
82
88 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
89 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
90 template<typename DefaultSubstitutionsT = Aws::String>
91 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value); }
92 template<typename DefaultSubstitutionsT = Aws::String>
93 SMSTemplateResponse& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) { SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value)); return *this;}
95
97
101 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
102 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
103 template<typename LastModifiedDateT = Aws::String>
104 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
105 template<typename LastModifiedDateT = Aws::String>
106 SMSTemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
108
110
114 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
115 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
116 template<typename RecommenderIdT = Aws::String>
117 void SetRecommenderId(RecommenderIdT&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::forward<RecommenderIdT>(value); }
118 template<typename RecommenderIdT = Aws::String>
119 SMSTemplateResponse& WithRecommenderId(RecommenderIdT&& value) { SetRecommenderId(std::forward<RecommenderIdT>(value)); return *this;}
121
123
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 SMSTemplateResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 SMSTemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
137 }
139
141
144 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
145 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
146 template<typename TemplateDescriptionT = Aws::String>
147 void SetTemplateDescription(TemplateDescriptionT&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::forward<TemplateDescriptionT>(value); }
148 template<typename TemplateDescriptionT = Aws::String>
149 SMSTemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) { SetTemplateDescription(std::forward<TemplateDescriptionT>(value)); return *this;}
151
153
156 inline const Aws::String& GetTemplateName() const { return m_templateName; }
157 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
158 template<typename TemplateNameT = Aws::String>
159 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
160 template<typename TemplateNameT = Aws::String>
161 SMSTemplateResponse& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
163
165
169 inline TemplateType GetTemplateType() const { return m_templateType; }
170 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
171 inline void SetTemplateType(TemplateType value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
172 inline SMSTemplateResponse& WithTemplateType(TemplateType value) { SetTemplateType(value); return *this;}
174
176
181 inline const Aws::String& GetVersion() const { return m_version; }
182 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
183 template<typename VersionT = Aws::String>
184 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
185 template<typename VersionT = Aws::String>
186 SMSTemplateResponse& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
188 private:
189
190 Aws::String m_arn;
191 bool m_arnHasBeenSet = false;
192
193 Aws::String m_body;
194 bool m_bodyHasBeenSet = false;
195
196 Aws::String m_creationDate;
197 bool m_creationDateHasBeenSet = false;
198
199 Aws::String m_defaultSubstitutions;
200 bool m_defaultSubstitutionsHasBeenSet = false;
201
202 Aws::String m_lastModifiedDate;
203 bool m_lastModifiedDateHasBeenSet = false;
204
205 Aws::String m_recommenderId;
206 bool m_recommenderIdHasBeenSet = false;
207
209 bool m_tagsHasBeenSet = false;
210
211 Aws::String m_templateDescription;
212 bool m_templateDescriptionHasBeenSet = false;
213
214 Aws::String m_templateName;
215 bool m_templateNameHasBeenSet = false;
216
217 TemplateType m_templateType{TemplateType::NOT_SET};
218 bool m_templateTypeHasBeenSet = false;
219
220 Aws::String m_version;
221 bool m_versionHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace Pinpoint
226} // namespace Aws
SMSTemplateResponse & WithTemplateType(TemplateType value)
SMSTemplateResponse & WithArn(ArnT &&value)
SMSTemplateResponse & WithTags(TagsT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
SMSTemplateResponse & WithCreationDate(CreationDateT &&value)
SMSTemplateResponse & WithRecommenderId(RecommenderIdT &&value)
SMSTemplateResponse & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
SMSTemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API SMSTemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SMSTemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetLastModifiedDate() const
SMSTemplateResponse & WithVersion(VersionT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateDescription() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PINPOINT_API SMSTemplateResponse()=default
const Aws::String & GetDefaultSubstitutions() const
void SetLastModifiedDate(LastModifiedDateT &&value)
SMSTemplateResponse & WithBody(BodyT &&value)
SMSTemplateResponse & WithTemplateName(TemplateNameT &&value)
AWS_PINPOINT_API SMSTemplateResponse(Aws::Utils::Json::JsonView jsonValue)
void SetRecommenderId(RecommenderIdT &&value)
SMSTemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
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