AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePushTemplateRequest.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 Pinpoint
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PINPOINT_API CreatePushTemplateRequest();
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 "CreatePushTemplate"; }
32
33 AWS_PINPOINT_API Aws::String SerializePayload() const override;
34
35
37
38 inline const PushNotificationTemplateRequest& GetPushNotificationTemplateRequest() const{ return m_pushNotificationTemplateRequest; }
39 inline bool PushNotificationTemplateRequestHasBeenSet() const { return m_pushNotificationTemplateRequestHasBeenSet; }
40 inline void SetPushNotificationTemplateRequest(const PushNotificationTemplateRequest& value) { m_pushNotificationTemplateRequestHasBeenSet = true; m_pushNotificationTemplateRequest = value; }
41 inline void SetPushNotificationTemplateRequest(PushNotificationTemplateRequest&& value) { m_pushNotificationTemplateRequestHasBeenSet = true; m_pushNotificationTemplateRequest = std::move(value); }
45
47
53 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
54 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
55 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
56 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
57 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
58 inline CreatePushTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
59 inline CreatePushTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
60 inline CreatePushTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
62 private:
63
64 PushNotificationTemplateRequest m_pushNotificationTemplateRequest;
65 bool m_pushNotificationTemplateRequestHasBeenSet = false;
66
67 Aws::String m_templateName;
68 bool m_templateNameHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Pinpoint
73} // namespace Aws
AWS_PINPOINT_API Aws::String SerializePayload() const override
void SetPushNotificationTemplateRequest(const PushNotificationTemplateRequest &value)
CreatePushTemplateRequest & WithTemplateName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePushTemplateRequest & WithPushNotificationTemplateRequest(const PushNotificationTemplateRequest &value)
CreatePushTemplateRequest & WithTemplateName(const char *value)
void SetPushNotificationTemplateRequest(PushNotificationTemplateRequest &&value)
CreatePushTemplateRequest & WithTemplateName(Aws::String &&value)
const PushNotificationTemplateRequest & GetPushNotificationTemplateRequest() const
CreatePushTemplateRequest & WithPushNotificationTemplateRequest(PushNotificationTemplateRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String