AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename BodyT = Aws::String>
51 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
52 template<typename BodyT = Aws::String>
53 SMSTemplateRequest& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
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) { m_defaultSubstitutionsHasBeenSet = true; m_defaultSubstitutions = std::forward<DefaultSubstitutionsT>(value); }
69 template<typename DefaultSubstitutionsT = Aws::String>
70 SMSTemplateRequest& WithDefaultSubstitutions(DefaultSubstitutionsT&& value) { SetDefaultSubstitutions(std::forward<DefaultSubstitutionsT>(value)); return *this;}
72
74
81 inline const Aws::String& GetRecommenderId() const { return m_recommenderId; }
82 inline bool RecommenderIdHasBeenSet() const { return m_recommenderIdHasBeenSet; }
83 template<typename RecommenderIdT = Aws::String>
84 void SetRecommenderId(RecommenderIdT&& value) { m_recommenderIdHasBeenSet = true; m_recommenderId = std::forward<RecommenderIdT>(value); }
85 template<typename RecommenderIdT = Aws::String>
86 SMSTemplateRequest& WithRecommenderId(RecommenderIdT&& value) { SetRecommenderId(std::forward<RecommenderIdT>(value)); return *this;}
88
90
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 SMSTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
109 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 SMSTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
112 }
114
116
119 inline const Aws::String& GetTemplateDescription() const { return m_templateDescription; }
120 inline bool TemplateDescriptionHasBeenSet() const { return m_templateDescriptionHasBeenSet; }
121 template<typename TemplateDescriptionT = Aws::String>
122 void SetTemplateDescription(TemplateDescriptionT&& value) { m_templateDescriptionHasBeenSet = true; m_templateDescription = std::forward<TemplateDescriptionT>(value); }
123 template<typename TemplateDescriptionT = Aws::String>
124 SMSTemplateRequest& WithTemplateDescription(TemplateDescriptionT&& value) { SetTemplateDescription(std::forward<TemplateDescriptionT>(value)); return *this;}
126 private:
127
128 Aws::String m_body;
129 bool m_bodyHasBeenSet = false;
130
131 Aws::String m_defaultSubstitutions;
132 bool m_defaultSubstitutionsHasBeenSet = false;
133
134 Aws::String m_recommenderId;
135 bool m_recommenderIdHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139
140 Aws::String m_templateDescription;
141 bool m_templateDescriptionHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Pinpoint
146} // 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