AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TemplateResponse.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
35 {
36 public:
37 AWS_PINPOINT_API TemplateResponse() = default;
38 AWS_PINPOINT_API TemplateResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 TemplateResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
64 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
65 template<typename CreationDateT = Aws::String>
66 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
67 template<typename CreationDateT = Aws::String>
68 TemplateResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
70
72
80 inline const Aws::String& GetDefaultSubstitutions() const { return m_defaultSubstitutions; }
81 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
82 template<typename DefaultSubstitutionsT = Aws::String>
83 void SetDefaultSubstitutions(DefaultSubstitutionsT&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value); }
84 template<typename DefaultSubstitutionsT = Aws::String>
85 TemplateResponse& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) { SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value)); return *this;}
87
89
93 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
94 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
95 template<typename LastModifiedDateT = Aws::String>
96 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
97 template<typename LastModifiedDateT = Aws::String>
98 TemplateResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
100
102
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 TemplateResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 TemplateResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
118 }
120
122
129 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
130 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
131 template<typename TemplateDescriptionT = Aws::String>
132 void SetTemplateDescription(TemplateDescriptionT&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::forward<TemplateDescriptionT>(value); }
133 template<typename TemplateDescriptionT = Aws::String>
134 TemplateResponse& WithTemplateDescription(TemplateDescriptionT&& value) { SetTemplateDescription(std::forward<TemplateDescriptionT>(value)); return *this;}
136
138
141 inline const Aws::String& GetTemplateName() const { return m_templateName; }
142 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
143 template<typename TemplateNameT = Aws::String>
144 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
145 template<typename TemplateNameT = Aws::String>
146 TemplateResponse& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
148
150
154 inline TemplateType GetTemplateType() const { return m_templateType; }
155 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
156 inline void SetTemplateType(TemplateType value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
157 inline TemplateResponse& WithTemplateType(TemplateType value) { SetTemplateType(value); return *this;}
159
161
165 inline const Aws::String& GetVersion() const { return m_version; }
166 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
167 template<typename VersionT = Aws::String>
168 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
169 template<typename VersionT = Aws::String>
170 TemplateResponse& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
172 private:
173
174 Aws::String m_arn;
175 bool m_arnHasBeenSet = false;
176
177 Aws::String m_creationDate;
178 bool m_creationDateHasBeenSet = false;
179
180 Aws::String m_defaultSubstitutions;
181 bool m_defaultSubstitutionsHasBeenSet = false;
182
183 Aws::String m_lastModifiedDate;
184 bool m_lastModifiedDateHasBeenSet = false;
185
187 bool m_tagsHasBeenSet = false;
188
189 Aws::String m_templateDescription;
190 bool m_templateDescriptionHasBeenSet = false;
191
192 Aws::String m_templateName;
193 bool m_templateNameHasBeenSet = false;
194
195 TemplateType m_templateType{TemplateType::NOT_SET};
196 bool m_templateTypeHasBeenSet = false;
197
198 Aws::String m_version;
199 bool m_versionHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Pinpoint
204} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationDate(CreationDateT &&value)
void SetDefaultSubstitutions(DefaultSubstitutionsT &&value)
TemplateResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetVersion() const
TemplateResponse & WithDefaultSubstitutions(DefaultSubstitutionsT &&value)
const Aws::String & GetLastModifiedDate() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTemplateName(TemplateNameT &&value)
TemplateResponse & WithArn(ArnT &&value)
TemplateResponse & WithTemplateType(TemplateType value)
const Aws::String & GetArn() const
AWS_PINPOINT_API TemplateResponse(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateDescription(TemplateDescriptionT &&value)
TemplateResponse & WithLastModifiedDate(LastModifiedDateT &&value)
TemplateResponse & WithTags(TagsT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_PINPOINT_API TemplateResponse()=default
TemplateResponse & WithTemplateDescription(TemplateDescriptionT &&value)
AWS_PINPOINT_API TemplateResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateResponse & WithVersion(VersionT &&value)
TemplateResponse & WithTemplateName(TemplateNameT &&value)
const Aws::String & GetTemplateDescription() const
const Aws::String & GetCreationDate() const
const Aws::String & GetTemplateName() const
TemplateResponse & WithCreationDate(CreationDateT &&value)
const Aws::String & GetDefaultSubstitutions() const
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