AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateResourceEventConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/iotwireless/IoTWireless_EXPORTS.h>
10#include <aws/iotwireless/model/ConnectionStatusEventConfiguration.h>
11#include <aws/iotwireless/model/DeviceRegistrationStateEventConfiguration.h>
12#include <aws/iotwireless/model/EventNotificationPartnerType.h>
13#include <aws/iotwireless/model/IdentifierType.h>
14#include <aws/iotwireless/model/JoinEventConfiguration.h>
15#include <aws/iotwireless/model/MessageDeliveryStatusEventConfiguration.h>
16#include <aws/iotwireless/model/ProximityEventConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Http {
22class URI;
23} // namespace Http
24namespace IoTWireless {
25namespace Model {
26
30 public:
31 AWS_IOTWIRELESS_API UpdateResourceEventConfigurationRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceEventConfiguration"; }
38
39 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
40
41 AWS_IOTWIRELESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
47 inline const Aws::String& GetIdentifier() const { return m_identifier; }
48 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
49 template <typename IdentifierT = Aws::String>
50 void SetIdentifier(IdentifierT&& value) {
51 m_identifierHasBeenSet = true;
52 m_identifier = std::forward<IdentifierT>(value);
53 }
54 template <typename IdentifierT = Aws::String>
56 SetIdentifier(std::forward<IdentifierT>(value));
57 return *this;
58 }
60
62
66 inline IdentifierType GetIdentifierType() const { return m_identifierType; }
67 inline bool IdentifierTypeHasBeenSet() const { return m_identifierTypeHasBeenSet; }
68 inline void SetIdentifierType(IdentifierType value) {
69 m_identifierTypeHasBeenSet = true;
70 m_identifierType = value;
71 }
73 SetIdentifierType(value);
74 return *this;
75 }
77
79
83 inline EventNotificationPartnerType GetPartnerType() const { return m_partnerType; }
84 inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; }
86 m_partnerTypeHasBeenSet = true;
87 m_partnerType = value;
88 }
90 SetPartnerType(value);
91 return *this;
92 }
94
96
99 inline const DeviceRegistrationStateEventConfiguration& GetDeviceRegistrationState() const { return m_deviceRegistrationState; }
100 inline bool DeviceRegistrationStateHasBeenSet() const { return m_deviceRegistrationStateHasBeenSet; }
101 template <typename DeviceRegistrationStateT = DeviceRegistrationStateEventConfiguration>
102 void SetDeviceRegistrationState(DeviceRegistrationStateT&& value) {
103 m_deviceRegistrationStateHasBeenSet = true;
104 m_deviceRegistrationState = std::forward<DeviceRegistrationStateT>(value);
105 }
106 template <typename DeviceRegistrationStateT = DeviceRegistrationStateEventConfiguration>
108 SetDeviceRegistrationState(std::forward<DeviceRegistrationStateT>(value));
109 return *this;
110 }
112
114
117 inline const ProximityEventConfiguration& GetProximity() const { return m_proximity; }
118 inline bool ProximityHasBeenSet() const { return m_proximityHasBeenSet; }
119 template <typename ProximityT = ProximityEventConfiguration>
120 void SetProximity(ProximityT&& value) {
121 m_proximityHasBeenSet = true;
122 m_proximity = std::forward<ProximityT>(value);
123 }
124 template <typename ProximityT = ProximityEventConfiguration>
126 SetProximity(std::forward<ProximityT>(value));
127 return *this;
128 }
130
132
135 inline const JoinEventConfiguration& GetJoin() const { return m_join; }
136 inline bool JoinHasBeenSet() const { return m_joinHasBeenSet; }
137 template <typename JoinT = JoinEventConfiguration>
138 void SetJoin(JoinT&& value) {
139 m_joinHasBeenSet = true;
140 m_join = std::forward<JoinT>(value);
141 }
142 template <typename JoinT = JoinEventConfiguration>
144 SetJoin(std::forward<JoinT>(value));
145 return *this;
146 }
148
150
153 inline const ConnectionStatusEventConfiguration& GetConnectionStatus() const { return m_connectionStatus; }
154 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
155 template <typename ConnectionStatusT = ConnectionStatusEventConfiguration>
156 void SetConnectionStatus(ConnectionStatusT&& value) {
157 m_connectionStatusHasBeenSet = true;
158 m_connectionStatus = std::forward<ConnectionStatusT>(value);
159 }
160 template <typename ConnectionStatusT = ConnectionStatusEventConfiguration>
162 SetConnectionStatus(std::forward<ConnectionStatusT>(value));
163 return *this;
164 }
166
168
171 inline const MessageDeliveryStatusEventConfiguration& GetMessageDeliveryStatus() const { return m_messageDeliveryStatus; }
172 inline bool MessageDeliveryStatusHasBeenSet() const { return m_messageDeliveryStatusHasBeenSet; }
173 template <typename MessageDeliveryStatusT = MessageDeliveryStatusEventConfiguration>
174 void SetMessageDeliveryStatus(MessageDeliveryStatusT&& value) {
175 m_messageDeliveryStatusHasBeenSet = true;
176 m_messageDeliveryStatus = std::forward<MessageDeliveryStatusT>(value);
177 }
178 template <typename MessageDeliveryStatusT = MessageDeliveryStatusEventConfiguration>
180 SetMessageDeliveryStatus(std::forward<MessageDeliveryStatusT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_identifier;
186
187 IdentifierType m_identifierType{IdentifierType::NOT_SET};
188
190
191 DeviceRegistrationStateEventConfiguration m_deviceRegistrationState;
192
193 ProximityEventConfiguration m_proximity;
194
195 JoinEventConfiguration m_join;
196
197 ConnectionStatusEventConfiguration m_connectionStatus;
198
199 MessageDeliveryStatusEventConfiguration m_messageDeliveryStatus;
200 bool m_identifierHasBeenSet = false;
201 bool m_identifierTypeHasBeenSet = false;
202 bool m_partnerTypeHasBeenSet = false;
203 bool m_deviceRegistrationStateHasBeenSet = false;
204 bool m_proximityHasBeenSet = false;
205 bool m_joinHasBeenSet = false;
206 bool m_connectionStatusHasBeenSet = false;
207 bool m_messageDeliveryStatusHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace IoTWireless
212} // namespace Aws
UpdateResourceEventConfigurationRequest & WithIdentifierType(IdentifierType value)
UpdateResourceEventConfigurationRequest & WithProximity(ProximityT &&value)
const DeviceRegistrationStateEventConfiguration & GetDeviceRegistrationState() const
UpdateResourceEventConfigurationRequest & WithPartnerType(EventNotificationPartnerType value)
UpdateResourceEventConfigurationRequest & WithMessageDeliveryStatus(MessageDeliveryStatusT &&value)
UpdateResourceEventConfigurationRequest & WithDeviceRegistrationState(DeviceRegistrationStateT &&value)
UpdateResourceEventConfigurationRequest & WithConnectionStatus(ConnectionStatusT &&value)
const MessageDeliveryStatusEventConfiguration & GetMessageDeliveryStatus() const
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
AWS_IOTWIRELESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateResourceEventConfigurationRequest & WithIdentifier(IdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String