AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreatePushNotificationRegistrationRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/DeviceType.h>
11#include <aws/connect/model/ContactConfiguration.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreatePushNotificationRegistrationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePushNotificationRegistration"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template<typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
48 template<typename InstanceIdT = Aws::String>
49 CreatePushNotificationRegistrationRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
51
53
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template<typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
64 template<typename ClientTokenT = Aws::String>
65 CreatePushNotificationRegistrationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
67
69
72 inline const Aws::String& GetPinpointAppArn() const { return m_pinpointAppArn; }
73 inline bool PinpointAppArnHasBeenSet() const { return m_pinpointAppArnHasBeenSet; }
74 template<typename PinpointAppArnT = Aws::String>
75 void SetPinpointAppArn(PinpointAppArnT&& value) { m_pinpointAppArnHasBeenSet = true; m_pinpointAppArn = std::forward<PinpointAppArnT>(value); }
76 template<typename PinpointAppArnT = Aws::String>
77 CreatePushNotificationRegistrationRequest& WithPinpointAppArn(PinpointAppArnT&& value) { SetPinpointAppArn(std::forward<PinpointAppArnT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDeviceToken() const { return m_deviceToken; }
85 inline bool DeviceTokenHasBeenSet() const { return m_deviceTokenHasBeenSet; }
86 template<typename DeviceTokenT = Aws::String>
87 void SetDeviceToken(DeviceTokenT&& value) { m_deviceTokenHasBeenSet = true; m_deviceToken = std::forward<DeviceTokenT>(value); }
88 template<typename DeviceTokenT = Aws::String>
89 CreatePushNotificationRegistrationRequest& WithDeviceToken(DeviceTokenT&& value) { SetDeviceToken(std::forward<DeviceTokenT>(value)); return *this;}
91
93
96 inline DeviceType GetDeviceType() const { return m_deviceType; }
97 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
98 inline void SetDeviceType(DeviceType value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
101
103
106 inline const ContactConfiguration& GetContactConfiguration() const { return m_contactConfiguration; }
107 inline bool ContactConfigurationHasBeenSet() const { return m_contactConfigurationHasBeenSet; }
108 template<typename ContactConfigurationT = ContactConfiguration>
109 void SetContactConfiguration(ContactConfigurationT&& value) { m_contactConfigurationHasBeenSet = true; m_contactConfiguration = std::forward<ContactConfigurationT>(value); }
110 template<typename ContactConfigurationT = ContactConfiguration>
111 CreatePushNotificationRegistrationRequest& WithContactConfiguration(ContactConfigurationT&& value) { SetContactConfiguration(std::forward<ContactConfigurationT>(value)); return *this;}
113 private:
114
115 Aws::String m_instanceId;
116 bool m_instanceIdHasBeenSet = false;
117
118 Aws::String m_clientToken;
119 bool m_clientTokenHasBeenSet = false;
120
121 Aws::String m_pinpointAppArn;
122 bool m_pinpointAppArnHasBeenSet = false;
123
124 Aws::String m_deviceToken;
125 bool m_deviceTokenHasBeenSet = false;
126
127 DeviceType m_deviceType{DeviceType::NOT_SET};
128 bool m_deviceTypeHasBeenSet = false;
129
130 ContactConfiguration m_contactConfiguration;
131 bool m_contactConfigurationHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Connect
136} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
CreatePushNotificationRegistrationRequest & WithPinpointAppArn(PinpointAppArnT &&value)
CreatePushNotificationRegistrationRequest & WithDeviceType(DeviceType value)
CreatePushNotificationRegistrationRequest & WithClientToken(ClientTokenT &&value)
CreatePushNotificationRegistrationRequest & WithDeviceToken(DeviceTokenT &&value)
CreatePushNotificationRegistrationRequest & WithInstanceId(InstanceIdT &&value)
CreatePushNotificationRegistrationRequest & WithContactConfiguration(ContactConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String