AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
UpdateEventConfigurationsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/Configuration.h>
11#include <aws/iot/model/EventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoT {
17namespace Model {
18
22 public:
23 AWS_IOT_API UpdateEventConfigurationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventConfigurations"; }
30
31 AWS_IOT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Map<EventType, Configuration>& GetEventConfigurations() const { return m_eventConfigurations; }
38 inline bool EventConfigurationsHasBeenSet() const { return m_eventConfigurationsHasBeenSet; }
39 template <typename EventConfigurationsT = Aws::Map<EventType, Configuration>>
40 void SetEventConfigurations(EventConfigurationsT&& value) {
41 m_eventConfigurationsHasBeenSet = true;
42 m_eventConfigurations = std::forward<EventConfigurationsT>(value);
43 }
44 template <typename EventConfigurationsT = Aws::Map<EventType, Configuration>>
46 SetEventConfigurations(std::forward<EventConfigurationsT>(value));
47 return *this;
48 }
50 m_eventConfigurationsHasBeenSet = true;
51 m_eventConfigurations.emplace(key, value);
52 return *this;
53 }
55 private:
56 Aws::Map<EventType, Configuration> m_eventConfigurations;
57 bool m_eventConfigurationsHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace IoT
62} // namespace Aws
UpdateEventConfigurationsRequest & WithEventConfigurations(EventConfigurationsT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::Map< EventType, Configuration > & GetEventConfigurations() const
UpdateEventConfigurationsRequest & AddEventConfigurations(EventType key, Configuration value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String