AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
UpdateSmsTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/PinpointRequest.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/SMSTemplateRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Pinpoint {
19namespace Model {
20
24 public:
25 AWS_PINPOINT_API UpdateSmsTemplateRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSmsTemplate"; }
32
33 AWS_PINPOINT_API Aws::String SerializePayload() const override;
34
35 AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
47 inline bool GetCreateNewVersion() const { return m_createNewVersion; }
48 inline bool CreateNewVersionHasBeenSet() const { return m_createNewVersionHasBeenSet; }
49 inline void SetCreateNewVersion(bool value) {
50 m_createNewVersionHasBeenSet = true;
51 m_createNewVersion = value;
52 }
55 return *this;
56 }
58
60
61 inline const SMSTemplateRequest& GetSMSTemplateRequest() const { return m_sMSTemplateRequest; }
62 inline bool SMSTemplateRequestHasBeenSet() const { return m_sMSTemplateRequestHasBeenSet; }
63 template <typename SMSTemplateRequestT = SMSTemplateRequest>
64 void SetSMSTemplateRequest(SMSTemplateRequestT&& value) {
65 m_sMSTemplateRequestHasBeenSet = true;
66 m_sMSTemplateRequest = std::forward<SMSTemplateRequestT>(value);
67 }
68 template <typename SMSTemplateRequestT = SMSTemplateRequest>
69 UpdateSmsTemplateRequest& WithSMSTemplateRequest(SMSTemplateRequestT&& value) {
70 SetSMSTemplateRequest(std::forward<SMSTemplateRequestT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetTemplateName() const { return m_templateName; }
83 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
84 template <typename TemplateNameT = Aws::String>
85 void SetTemplateName(TemplateNameT&& value) {
86 m_templateNameHasBeenSet = true;
87 m_templateName = std::forward<TemplateNameT>(value);
88 }
89 template <typename TemplateNameT = Aws::String>
91 SetTemplateName(std::forward<TemplateNameT>(value));
92 return *this;
93 }
95
97
114 inline const Aws::String& GetVersion() const { return m_version; }
115 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
116 template <typename VersionT = Aws::String>
117 void SetVersion(VersionT&& value) {
118 m_versionHasBeenSet = true;
119 m_version = std::forward<VersionT>(value);
120 }
121 template <typename VersionT = Aws::String>
123 SetVersion(std::forward<VersionT>(value));
124 return *this;
125 }
127 private:
128 bool m_createNewVersion{false};
129 bool m_createNewVersionHasBeenSet = false;
130
131 SMSTemplateRequest m_sMSTemplateRequest;
132 bool m_sMSTemplateRequestHasBeenSet = false;
133
134 Aws::String m_templateName;
135 bool m_templateNameHasBeenSet = false;
136
137 Aws::String m_version;
138 bool m_versionHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Pinpoint
143} // namespace Aws
void SetSMSTemplateRequest(SMSTemplateRequestT &&value)
AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_PINPOINT_API Aws::String SerializePayload() const override
UpdateSmsTemplateRequest & WithVersion(VersionT &&value)
UpdateSmsTemplateRequest & WithCreateNewVersion(bool value)
const SMSTemplateRequest & GetSMSTemplateRequest() const
UpdateSmsTemplateRequest & WithTemplateName(TemplateNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_PINPOINT_API UpdateSmsTemplateRequest()=default
UpdateSmsTemplateRequest & WithSMSTemplateRequest(SMSTemplateRequestT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String