AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SMSTemplateRequest.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API SMSTemplateRequest();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetBody() const{ return m_body; }
49 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
50 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
51 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
52 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
53 inline SMSTemplateRequest& WithBody(const Aws::String& value) { SetBody(value); return *this;}
54 inline SMSTemplateRequest& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
55 inline SMSTemplateRequest& WithBody(const char* value) { SetBody(value); return *this;}
57
59
67 inline const Aws::String& GetDefaultSubstitutions() const{ return m_defaultSubstitutions; }
68 inline bool DefaultSubstitutionsHasBeenSet() const { return m_defaultSubstitutionsHasBeenSet; }
69 inline void SetDefaultSubstitutions(const Aws::String& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = value; }
70 inline void SetDefaultSubstitutions(Aws::String&& value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::move(value); }
71 inline void SetDefaultSubstitutions(const char* value) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions.assign(value); }
73 inline SMSTemplateRequest& WithDefaultSubstitutions(Aws::String&& value) { SetDefaultSubstitutions(std::move(value)); return *this;}
74 inline SMSTemplateRequest& WithDefaultSubstitutions(const char* value) { SetDefaultSubstitutions(value); return *this;}
76
78
85 inline const Aws::String& GetRecommenderId() const{ return m_recommenderId; }
86 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
87 inline void SetRecommenderId(const Aws::String& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = value; }
88 inline void SetRecommenderId(Aws::String&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::move(value); }
89 inline void SetRecommenderId(const char* value) { m_recommenderIdHasBeenSet = true; m_recommenderId.assign(value); }
90 inline SMSTemplateRequest& WithRecommenderId(const Aws::String& value) { SetRecommenderId(value); return *this;}
91 inline SMSTemplateRequest& WithRecommenderId(Aws::String&& value) { SetRecommenderId(std::move(value)); return *this;}
92 inline SMSTemplateRequest& WithRecommenderId(const char* value) { SetRecommenderId(value); return *this;}
94
96
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline SMSTemplateRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
114 inline SMSTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
115 inline SMSTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 inline SMSTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline SMSTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline SMSTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
119 inline SMSTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline SMSTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline SMSTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123
125
128 inline const Aws::String& GetTemplateDescription() const{ return m_templateDescription; }
129 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
130 inline void SetTemplateDescription(const Aws::String& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = value; }
131 inline void SetTemplateDescription(Aws::String&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::move(value); }
132 inline void SetTemplateDescription(const char* value) { m_templateDescriptionHasBeenSet = true; m_templateDescription.assign(value); }
134 inline SMSTemplateRequest& WithTemplateDescription(Aws::String&& value) { SetTemplateDescription(std::move(value)); return *this;}
135 inline SMSTemplateRequest& WithTemplateDescription(const char* value) { SetTemplateDescription(value); return *this;}
137 private:
138
139 Aws::String m_body;
140 bool m_bodyHasBeenSet = false;
141
142 Aws::String m_defaultSubstitutions;
143 bool m_defaultSubstitutionsHasBeenSet = false;
144
145 Aws::String m_recommenderId;
146 bool m_recommenderIdHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150
151 Aws::String m_templateDescription;
152 bool m_templateDescriptionHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace Pinpoint
157} // namespace Aws
SMSTemplateRequest & AddTags(const char *key, Aws::String &&value)
void SetDefaultSubstitutions(Aws::String &&value)
SMSTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
SMSTemplateRequest & WithBody(const Aws::String &value)
SMSTemplateRequest & WithRecommenderId(const Aws::String &value)
SMSTemplateRequest & WithRecommenderId(const char *value)
SMSTemplateRequest & WithRecommenderId(Aws::String &&value)
SMSTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
SMSTemplateRequest & WithTemplateDescription(Aws::String &&value)
void SetTemplateDescription(const Aws::String &value)
void SetBody(const Aws::String &value)
SMSTemplateRequest & AddTags(Aws::String &&key, const char *value)
void SetRecommenderId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateDescription() const
SMSTemplateRequest & WithDefaultSubstitutions(const Aws::String &value)
const Aws::String & GetDefaultSubstitutions() const
SMSTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SMSTemplateRequest & WithTemplateDescription(const Aws::String &value)
SMSTemplateRequest & AddTags(const char *key, const char *value)
SMSTemplateRequest & WithTemplateDescription(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PINPOINT_API SMSTemplateRequest(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultSubstitutions(const Aws::String &value)
void SetTemplateDescription(Aws::String &&value)
SMSTemplateRequest & WithBody(const char *value)
SMSTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_PINPOINT_API SMSTemplateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SMSTemplateRequest & WithDefaultSubstitutions(Aws::String &&value)
const Aws::String & GetRecommenderId() const
SMSTemplateRequest & WithBody(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SMSTemplateRequest & WithDefaultSubstitutions(const char *value)
SMSTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SMSTemplateRequest & AddTags(const Aws::String &key, const Aws::String &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