AWS SDK for C++  1.9.40
AWS SDK for C++
UpdatePushTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace Pinpoint
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
51  inline bool GetCreateNewVersion() const{ return m_createNewVersion; }
52 
62  inline bool CreateNewVersionHasBeenSet() const { return m_createNewVersionHasBeenSet; }
63 
73  inline void SetCreateNewVersion(bool value) { m_createNewVersionHasBeenSet = true; m_createNewVersion = value; }
74 
84  inline UpdatePushTemplateRequest& WithCreateNewVersion(bool value) { SetCreateNewVersion(value); return *this;}
85 
86 
87 
88  inline const PushNotificationTemplateRequest& GetPushNotificationTemplateRequest() const{ return m_pushNotificationTemplateRequest; }
89 
90 
91  inline bool PushNotificationTemplateRequestHasBeenSet() const { return m_pushNotificationTemplateRequestHasBeenSet; }
92 
93 
94  inline void SetPushNotificationTemplateRequest(const PushNotificationTemplateRequest& value) { m_pushNotificationTemplateRequestHasBeenSet = true; m_pushNotificationTemplateRequest = value; }
95 
96 
97  inline void SetPushNotificationTemplateRequest(PushNotificationTemplateRequest&& value) { m_pushNotificationTemplateRequestHasBeenSet = true; m_pushNotificationTemplateRequest = std::move(value); }
98 
99 
100  inline UpdatePushTemplateRequest& WithPushNotificationTemplateRequest(const PushNotificationTemplateRequest& value) { SetPushNotificationTemplateRequest(value); return *this;}
101 
102 
103  inline UpdatePushTemplateRequest& WithPushNotificationTemplateRequest(PushNotificationTemplateRequest&& value) { SetPushNotificationTemplateRequest(std::move(value)); return *this;}
104 
105 
112  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
113 
120  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
121 
128  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
129 
136  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
137 
144  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
145 
152  inline UpdatePushTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
153 
160  inline UpdatePushTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
161 
168  inline UpdatePushTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
169 
170 
188  inline const Aws::String& GetVersion() const{ return m_version; }
189 
207  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
208 
226  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
227 
245  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
246 
264  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
265 
283  inline UpdatePushTemplateRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
284 
302  inline UpdatePushTemplateRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
303 
321  inline UpdatePushTemplateRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
322 
323  private:
324 
325  bool m_createNewVersion;
326  bool m_createNewVersionHasBeenSet;
327 
328  PushNotificationTemplateRequest m_pushNotificationTemplateRequest;
329  bool m_pushNotificationTemplateRequestHasBeenSet;
330 
331  Aws::String m_templateName;
332  bool m_templateNameHasBeenSet;
333 
334  Aws::String m_version;
335  bool m_versionHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace Pinpoint
340 } // namespace Aws
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetPushNotificationTemplateRequest
void SetPushNotificationTemplateRequest(PushNotificationTemplateRequest &&value)
Definition: UpdatePushTemplateRequest.h:97
Aws::Http::URI
Definition: URI.h:32
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetCreateNewVersion
void SetCreateNewVersion(bool value)
Definition: UpdatePushTemplateRequest.h:73
Aws::Pinpoint::Model::UpdatePushTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePushTemplateRequest.h:35
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: UpdatePushTemplateRequest.h:226
Aws::Pinpoint::Model::UpdatePushTemplateRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: UpdatePushTemplateRequest.h:207
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithVersion
UpdatePushTemplateRequest & WithVersion(Aws::String &&value)
Definition: UpdatePushTemplateRequest.h:302
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: UpdatePushTemplateRequest.h:144
Aws::Pinpoint::Model::UpdatePushTemplateRequest::GetPushNotificationTemplateRequest
const PushNotificationTemplateRequest & GetPushNotificationTemplateRequest() const
Definition: UpdatePushTemplateRequest.h:88
Aws::Pinpoint::Model::UpdatePushTemplateRequest::PushNotificationTemplateRequestHasBeenSet
bool PushNotificationTemplateRequestHasBeenSet() const
Definition: UpdatePushTemplateRequest.h:91
AWS_PINPOINT_API
#define AWS_PINPOINT_API
Definition: Pinpoint_EXPORTS.h:28
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithTemplateName
UpdatePushTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: UpdatePushTemplateRequest.h:152
Aws::Pinpoint::Model::PushNotificationTemplateRequest
Definition: PushNotificationTemplateRequest.h:38
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithVersion
UpdatePushTemplateRequest & WithVersion(const char *value)
Definition: UpdatePushTemplateRequest.h:321
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithCreateNewVersion
UpdatePushTemplateRequest & WithCreateNewVersion(bool value)
Definition: UpdatePushTemplateRequest.h:84
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Pinpoint::Model::UpdatePushTemplateRequest::GetCreateNewVersion
bool GetCreateNewVersion() const
Definition: UpdatePushTemplateRequest.h:51
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithTemplateName
UpdatePushTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: UpdatePushTemplateRequest.h:160
Aws::Pinpoint::Model::UpdatePushTemplateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetVersion
void SetVersion(const char *value)
Definition: UpdatePushTemplateRequest.h:264
Aws::Pinpoint::Model::UpdatePushTemplateRequest::GetVersion
const Aws::String & GetVersion() const
Definition: UpdatePushTemplateRequest.h:188
Pinpoint_EXPORTS.h
Aws::Pinpoint::Model::UpdatePushTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: UpdatePushTemplateRequest.h:112
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: UpdatePushTemplateRequest.h:128
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithTemplateName
UpdatePushTemplateRequest & WithTemplateName(const char *value)
Definition: UpdatePushTemplateRequest.h:168
AWSString.h
Aws::Pinpoint::PinpointRequest
Definition: PinpointRequest.h:17
Aws::Pinpoint::Model::UpdatePushTemplateRequest
Definition: UpdatePushTemplateRequest.h:27
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: UpdatePushTemplateRequest.h:245
Aws::Pinpoint::Model::UpdatePushTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: UpdatePushTemplateRequest.h:120
Aws::Pinpoint::Model::UpdatePushTemplateRequest::CreateNewVersionHasBeenSet
bool CreateNewVersionHasBeenSet() const
Definition: UpdatePushTemplateRequest.h:62
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithPushNotificationTemplateRequest
UpdatePushTemplateRequest & WithPushNotificationTemplateRequest(const PushNotificationTemplateRequest &value)
Definition: UpdatePushTemplateRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::Pinpoint::Model::UpdatePushTemplateRequest::UpdatePushTemplateRequest
UpdatePushTemplateRequest()
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithVersion
UpdatePushTemplateRequest & WithVersion(const Aws::String &value)
Definition: UpdatePushTemplateRequest.h:283
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: UpdatePushTemplateRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Pinpoint::Model::UpdatePushTemplateRequest::SetPushNotificationTemplateRequest
void SetPushNotificationTemplateRequest(const PushNotificationTemplateRequest &value)
Definition: UpdatePushTemplateRequest.h:94
Aws::Pinpoint::Model::UpdatePushTemplateRequest::WithPushNotificationTemplateRequest
UpdatePushTemplateRequest & WithPushNotificationTemplateRequest(PushNotificationTemplateRequest &&value)
Definition: UpdatePushTemplateRequest.h:103
PushNotificationTemplateRequest.h
PinpointRequest.h