AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreatePushNotificationRegistrationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ContactConfiguration.h>
10#include <aws/connect/model/DeviceType.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreatePushNotificationRegistrationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreatePushNotificationRegistration"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template <typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) {
66 m_clientTokenHasBeenSet = true;
67 m_clientToken = std::forward<ClientTokenT>(value);
68 }
69 template <typename ClientTokenT = Aws::String>
71 SetClientToken(std::forward<ClientTokenT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPinpointAppArn() const { return m_pinpointAppArn; }
81 inline bool PinpointAppArnHasBeenSet() const { return m_pinpointAppArnHasBeenSet; }
82 template <typename PinpointAppArnT = Aws::String>
83 void SetPinpointAppArn(PinpointAppArnT&& value) {
84 m_pinpointAppArnHasBeenSet = true;
85 m_pinpointAppArn = std::forward<PinpointAppArnT>(value);
86 }
87 template <typename PinpointAppArnT = Aws::String>
89 SetPinpointAppArn(std::forward<PinpointAppArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDeviceToken() const { return m_deviceToken; }
99 inline bool DeviceTokenHasBeenSet() const { return m_deviceTokenHasBeenSet; }
100 template <typename DeviceTokenT = Aws::String>
101 void SetDeviceToken(DeviceTokenT&& value) {
102 m_deviceTokenHasBeenSet = true;
103 m_deviceToken = std::forward<DeviceTokenT>(value);
104 }
105 template <typename DeviceTokenT = Aws::String>
107 SetDeviceToken(std::forward<DeviceTokenT>(value));
108 return *this;
109 }
111
113
116 inline DeviceType GetDeviceType() const { return m_deviceType; }
117 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
118 inline void SetDeviceType(DeviceType value) {
119 m_deviceTypeHasBeenSet = true;
120 m_deviceType = value;
121 }
123 SetDeviceType(value);
124 return *this;
125 }
127
129
132 inline const ContactConfiguration& GetContactConfiguration() const { return m_contactConfiguration; }
133 inline bool ContactConfigurationHasBeenSet() const { return m_contactConfigurationHasBeenSet; }
134 template <typename ContactConfigurationT = ContactConfiguration>
135 void SetContactConfiguration(ContactConfigurationT&& value) {
136 m_contactConfigurationHasBeenSet = true;
137 m_contactConfiguration = std::forward<ContactConfigurationT>(value);
138 }
139 template <typename ContactConfigurationT = ContactConfiguration>
141 SetContactConfiguration(std::forward<ContactConfigurationT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_instanceId;
147 bool m_instanceIdHasBeenSet = false;
148
150 bool m_clientTokenHasBeenSet = true;
151
152 Aws::String m_pinpointAppArn;
153 bool m_pinpointAppArnHasBeenSet = false;
154
155 Aws::String m_deviceToken;
156 bool m_deviceTokenHasBeenSet = false;
157
158 DeviceType m_deviceType{DeviceType::NOT_SET};
159 bool m_deviceTypeHasBeenSet = false;
160
161 ContactConfiguration m_contactConfiguration;
162 bool m_contactConfigurationHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Connect
167} // 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)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String