AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateResourceEventConfigurationRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/IdentifierType.h>
11#include <aws/iotwireless/model/EventNotificationPartnerType.h>
12#include <aws/iotwireless/model/DeviceRegistrationStateEventConfiguration.h>
13#include <aws/iotwireless/model/ProximityEventConfiguration.h>
14#include <aws/iotwireless/model/JoinEventConfiguration.h>
15#include <aws/iotwireless/model/ConnectionStatusEventConfiguration.h>
16#include <aws/iotwireless/model/MessageDeliveryStatusEventConfiguration.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Http
22{
23 class URI;
24} //namespace Http
25namespace IoTWireless
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_IOTWIRELESS_API UpdateResourceEventConfigurationRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceEventConfiguration"; }
42
43 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
44
45 AWS_IOTWIRELESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
52 inline const Aws::String& GetIdentifier() const { return m_identifier; }
53 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
54 template<typename IdentifierT = Aws::String>
55 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
56 template<typename IdentifierT = Aws::String>
57 UpdateResourceEventConfigurationRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
59
61
65 inline IdentifierType GetIdentifierType() const { return m_identifierType; }
66 inline bool IdentifierTypeHasBeenSet() const { return m_identifierTypeHasBeenSet; }
67 inline void SetIdentifierType(IdentifierType value) { m_identifierTypeHasBeenSet = true; m_identifierType = value; }
70
72
76 inline EventNotificationPartnerType GetPartnerType() const { return m_partnerType; }
77 inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; }
78 inline void SetPartnerType(EventNotificationPartnerType value) { m_partnerTypeHasBeenSet = true; m_partnerType = value; }
81
83
86 inline const DeviceRegistrationStateEventConfiguration& GetDeviceRegistrationState() const { return m_deviceRegistrationState; }
87 inline bool DeviceRegistrationStateHasBeenSet() const { return m_deviceRegistrationStateHasBeenSet; }
88 template<typename DeviceRegistrationStateT = DeviceRegistrationStateEventConfiguration>
89 void SetDeviceRegistrationState(DeviceRegistrationStateT&& value) { m_deviceRegistrationStateHasBeenSet = true; m_deviceRegistrationState = std::forward<DeviceRegistrationStateT>(value); }
90 template<typename DeviceRegistrationStateT = DeviceRegistrationStateEventConfiguration>
91 UpdateResourceEventConfigurationRequest& WithDeviceRegistrationState(DeviceRegistrationStateT&& value) { SetDeviceRegistrationState(std::forward<DeviceRegistrationStateT>(value)); return *this;}
93
95
98 inline const ProximityEventConfiguration& GetProximity() const { return m_proximity; }
99 inline bool ProximityHasBeenSet() const { return m_proximityHasBeenSet; }
100 template<typename ProximityT = ProximityEventConfiguration>
101 void SetProximity(ProximityT&& value) { m_proximityHasBeenSet = true; m_proximity = std::forward<ProximityT>(value); }
102 template<typename ProximityT = ProximityEventConfiguration>
103 UpdateResourceEventConfigurationRequest& WithProximity(ProximityT&& value) { SetProximity(std::forward<ProximityT>(value)); return *this;}
105
107
110 inline const JoinEventConfiguration& GetJoin() const { return m_join; }
111 inline bool JoinHasBeenSet() const { return m_joinHasBeenSet; }
112 template<typename JoinT = JoinEventConfiguration>
113 void SetJoin(JoinT&& value) { m_joinHasBeenSet = true; m_join = std::forward<JoinT>(value); }
114 template<typename JoinT = JoinEventConfiguration>
115 UpdateResourceEventConfigurationRequest& WithJoin(JoinT&& value) { SetJoin(std::forward<JoinT>(value)); return *this;}
117
119
122 inline const ConnectionStatusEventConfiguration& GetConnectionStatus() const { return m_connectionStatus; }
123 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
124 template<typename ConnectionStatusT = ConnectionStatusEventConfiguration>
125 void SetConnectionStatus(ConnectionStatusT&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::forward<ConnectionStatusT>(value); }
126 template<typename ConnectionStatusT = ConnectionStatusEventConfiguration>
127 UpdateResourceEventConfigurationRequest& WithConnectionStatus(ConnectionStatusT&& value) { SetConnectionStatus(std::forward<ConnectionStatusT>(value)); return *this;}
129
131
134 inline const MessageDeliveryStatusEventConfiguration& GetMessageDeliveryStatus() const { return m_messageDeliveryStatus; }
135 inline bool MessageDeliveryStatusHasBeenSet() const { return m_messageDeliveryStatusHasBeenSet; }
136 template<typename MessageDeliveryStatusT = MessageDeliveryStatusEventConfiguration>
137 void SetMessageDeliveryStatus(MessageDeliveryStatusT&& value) { m_messageDeliveryStatusHasBeenSet = true; m_messageDeliveryStatus = std::forward<MessageDeliveryStatusT>(value); }
138 template<typename MessageDeliveryStatusT = MessageDeliveryStatusEventConfiguration>
139 UpdateResourceEventConfigurationRequest& WithMessageDeliveryStatus(MessageDeliveryStatusT&& value) { SetMessageDeliveryStatus(std::forward<MessageDeliveryStatusT>(value)); return *this;}
141 private:
142
143 Aws::String m_identifier;
144 bool m_identifierHasBeenSet = false;
145
146 IdentifierType m_identifierType{IdentifierType::NOT_SET};
147 bool m_identifierTypeHasBeenSet = false;
148
150 bool m_partnerTypeHasBeenSet = false;
151
152 DeviceRegistrationStateEventConfiguration m_deviceRegistrationState;
153 bool m_deviceRegistrationStateHasBeenSet = false;
154
155 ProximityEventConfiguration m_proximity;
156 bool m_proximityHasBeenSet = false;
157
158 JoinEventConfiguration m_join;
159 bool m_joinHasBeenSet = false;
160
161 ConnectionStatusEventConfiguration m_connectionStatus;
162 bool m_connectionStatusHasBeenSet = false;
163
164 MessageDeliveryStatusEventConfiguration m_messageDeliveryStatus;
165 bool m_messageDeliveryStatusHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace IoTWireless
170} // 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