AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePushTemplateRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/PinpointRequest.h>
9#include <aws/pinpoint/model/PushNotificationTemplateRequest.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Pinpoint
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_PINPOINT_API UpdatePushTemplateRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdatePushTemplate"; }
36
37 AWS_PINPOINT_API Aws::String SerializePayload() const override;
38
39 AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
52 inline bool GetCreateNewVersion() const { return m_createNewVersion; }
53 inline bool CreateNewVersionHasBeenSet() const { return m_createNewVersionHasBeenSet; }
54 inline void SetCreateNewVersion(bool value) { m_createNewVersionHasBeenSet = true; m_createNewVersion = value; }
55 inline UpdatePushTemplateRequest& WithCreateNewVersion(bool value) { SetCreateNewVersion(value); return *this;}
57
59
60 inline const PushNotificationTemplateRequest& GetPushNotificationTemplateRequest() const { return m_pushNotificationTemplateRequest; }
61 inline bool PushNotificationTemplateRequestHasBeenSet() const { return m_pushNotificationTemplateRequestHasBeenSet; }
62 template<typename PushNotificationTemplateRequestT = PushNotificationTemplateRequest>
63 void SetPushNotificationTemplateRequest(PushNotificationTemplateRequestT&& value) { m_pushNotificationTemplateRequestHasBeenSet = true; m_pushNotificationTemplateRequest = std::forward<PushNotificationTemplateRequestT>(value); }
64 template<typename PushNotificationTemplateRequestT = PushNotificationTemplateRequest>
65 UpdatePushTemplateRequest& WithPushNotificationTemplateRequest(PushNotificationTemplateRequestT&& value) { SetPushNotificationTemplateRequest(std::forward<PushNotificationTemplateRequestT>(value)); return *this;}
67
69
75 inline const Aws::String& GetTemplateName() const { return m_templateName; }
76 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
77 template<typename TemplateNameT = Aws::String>
78 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
79 template<typename TemplateNameT = Aws::String>
80 UpdatePushTemplateRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
82
84
101 inline const Aws::String& GetVersion() const { return m_version; }
102 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
103 template<typename VersionT = Aws::String>
104 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
105 template<typename VersionT = Aws::String>
106 UpdatePushTemplateRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
108 private:
109
110 bool m_createNewVersion{false};
111 bool m_createNewVersionHasBeenSet = false;
112
113 PushNotificationTemplateRequest m_pushNotificationTemplateRequest;
114 bool m_pushNotificationTemplateRequestHasBeenSet = false;
115
116 Aws::String m_templateName;
117 bool m_templateNameHasBeenSet = false;
118
119 Aws::String m_version;
120 bool m_versionHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Pinpoint
125} // namespace Aws
AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdatePushTemplateRequest & WithPushNotificationTemplateRequest(PushNotificationTemplateRequestT &&value)
AWS_PINPOINT_API Aws::String SerializePayload() const override
UpdatePushTemplateRequest & WithCreateNewVersion(bool value)
virtual const char * GetServiceRequestName() const override
const PushNotificationTemplateRequest & GetPushNotificationTemplateRequest() const
UpdatePushTemplateRequest & WithVersion(VersionT &&value)
AWS_PINPOINT_API UpdatePushTemplateRequest()=default
void SetPushNotificationTemplateRequest(PushNotificationTemplateRequestT &&value)
UpdatePushTemplateRequest & WithTemplateName(TemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String