AWS SDK for C++  1.9.132
AWS SDK for C++
UpdateEventConfigurationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IoT
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateEventConfigurations"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::Map<EventType, Configuration>& GetEventConfigurations() const{ return m_eventConfigurations; }
41 
45  inline bool EventConfigurationsHasBeenSet() const { return m_eventConfigurationsHasBeenSet; }
46 
50  inline void SetEventConfigurations(const Aws::Map<EventType, Configuration>& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations = value; }
51 
55  inline void SetEventConfigurations(Aws::Map<EventType, Configuration>&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations = std::move(value); }
56 
60  inline UpdateEventConfigurationsRequest& WithEventConfigurations(const Aws::Map<EventType, Configuration>& value) { SetEventConfigurations(value); return *this;}
61 
65  inline UpdateEventConfigurationsRequest& WithEventConfigurations(Aws::Map<EventType, Configuration>&& value) { SetEventConfigurations(std::move(value)); return *this;}
66 
70  inline UpdateEventConfigurationsRequest& AddEventConfigurations(const EventType& key, const Configuration& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(key, value); return *this; }
71 
75  inline UpdateEventConfigurationsRequest& AddEventConfigurations(EventType&& key, const Configuration& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(std::move(key), value); return *this; }
76 
80  inline UpdateEventConfigurationsRequest& AddEventConfigurations(const EventType& key, Configuration&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(key, std::move(value)); return *this; }
81 
85  inline UpdateEventConfigurationsRequest& AddEventConfigurations(EventType&& key, Configuration&& value) { m_eventConfigurationsHasBeenSet = true; m_eventConfigurations.emplace(std::move(key), std::move(value)); return *this; }
86 
87  private:
88 
89  Aws::Map<EventType, Configuration> m_eventConfigurations;
90  bool m_eventConfigurationsHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace IoT
95 } // namespace Aws
Aws::IoT::Model::UpdateEventConfigurationsRequest::UpdateEventConfigurationsRequest
UpdateEventConfigurationsRequest()
Aws::IoT::Model::UpdateEventConfigurationsRequest::AddEventConfigurations
UpdateEventConfigurationsRequest & AddEventConfigurations(EventType &&key, const Configuration &value)
Definition: UpdateEventConfigurationsRequest.h:75
Aws::IoT::Model::UpdateEventConfigurationsRequest
Definition: UpdateEventConfigurationsRequest.h:24
Aws::IoT::Model::Configuration
Definition: Configuration.h:30
Aws::IoT::Model::UpdateEventConfigurationsRequest::AddEventConfigurations
UpdateEventConfigurationsRequest & AddEventConfigurations(const EventType &key, const Configuration &value)
Definition: UpdateEventConfigurationsRequest.h:70
Aws::IoT::Model::UpdateEventConfigurationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEventConfigurationsRequest.h:32
Aws::IoT::Model::UpdateEventConfigurationsRequest::AddEventConfigurations
UpdateEventConfigurationsRequest & AddEventConfigurations(const EventType &key, Configuration &&value)
Definition: UpdateEventConfigurationsRequest.h:80
Aws::IoT::Model::UpdateEventConfigurationsRequest::WithEventConfigurations
UpdateEventConfigurationsRequest & WithEventConfigurations(Aws::Map< EventType, Configuration > &&value)
Definition: UpdateEventConfigurationsRequest.h:65
Aws::IoT::Model::UpdateEventConfigurationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateEventConfigurationsRequest::SetEventConfigurations
void SetEventConfigurations(Aws::Map< EventType, Configuration > &&value)
Definition: UpdateEventConfigurationsRequest.h:55
Aws::IoT::Model::UpdateEventConfigurationsRequest::EventConfigurationsHasBeenSet
bool EventConfigurationsHasBeenSet() const
Definition: UpdateEventConfigurationsRequest.h:45
Aws::IoT::Model::UpdateEventConfigurationsRequest::AddEventConfigurations
UpdateEventConfigurationsRequest & AddEventConfigurations(EventType &&key, Configuration &&value)
Definition: UpdateEventConfigurationsRequest.h:85
EventType.h
Aws
Definition: AccessManagementClient.h:15
Configuration.h
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateEventConfigurationsRequest::WithEventConfigurations
UpdateEventConfigurationsRequest & WithEventConfigurations(const Aws::Map< EventType, Configuration > &value)
Definition: UpdateEventConfigurationsRequest.h:60
Aws::IoT::Model::UpdateEventConfigurationsRequest::GetEventConfigurations
const Aws::Map< EventType, Configuration > & GetEventConfigurations() const
Definition: UpdateEventConfigurationsRequest.h:40
Aws::IoT::Model::EventType
EventType
Definition: EventType.h:17
IoTRequest.h
AWSMap.h
Aws::IoT::Model::UpdateEventConfigurationsRequest::SetEventConfigurations
void SetEventConfigurations(const Aws::Map< EventType, Configuration > &value)
Definition: UpdateEventConfigurationsRequest.h:50
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h