AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
EventConfigurationItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotwireless/IoTWireless_EXPORTS.h>
9#include <aws/iotwireless/model/EventNotificationItemConfigurations.h>
10#include <aws/iotwireless/model/EventNotificationPartnerType.h>
11#include <aws/iotwireless/model/IdentifierType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTWireless {
23namespace Model {
24
32 public:
33 AWS_IOTWIRELESS_API EventConfigurationItem() = default;
34 AWS_IOTWIRELESS_API EventConfigurationItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetIdentifier() const { return m_identifier; }
43 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
44 template <typename IdentifierT = Aws::String>
45 void SetIdentifier(IdentifierT&& value) {
46 m_identifierHasBeenSet = true;
47 m_identifier = std::forward<IdentifierT>(value);
48 }
49 template <typename IdentifierT = Aws::String>
50 EventConfigurationItem& WithIdentifier(IdentifierT&& value) {
51 SetIdentifier(std::forward<IdentifierT>(value));
52 return *this;
53 }
55
57
61 inline IdentifierType GetIdentifierType() const { return m_identifierType; }
62 inline bool IdentifierTypeHasBeenSet() const { return m_identifierTypeHasBeenSet; }
63 inline void SetIdentifierType(IdentifierType value) {
64 m_identifierTypeHasBeenSet = true;
65 m_identifierType = value;
66 }
68 SetIdentifierType(value);
69 return *this;
70 }
72
74
77 inline EventNotificationPartnerType GetPartnerType() const { return m_partnerType; }
78 inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; }
80 m_partnerTypeHasBeenSet = true;
81 m_partnerType = value;
82 }
84 SetPartnerType(value);
85 return *this;
86 }
88
90
91 inline const EventNotificationItemConfigurations& GetEvents() const { return m_events; }
92 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
93 template <typename EventsT = EventNotificationItemConfigurations>
94 void SetEvents(EventsT&& value) {
95 m_eventsHasBeenSet = true;
96 m_events = std::forward<EventsT>(value);
97 }
98 template <typename EventsT = EventNotificationItemConfigurations>
100 SetEvents(std::forward<EventsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_identifier;
106
107 IdentifierType m_identifierType{IdentifierType::NOT_SET};
108
110
111 EventNotificationItemConfigurations m_events;
112 bool m_identifierHasBeenSet = false;
113 bool m_identifierTypeHasBeenSet = false;
114 bool m_partnerTypeHasBeenSet = false;
115 bool m_eventsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace IoTWireless
120} // namespace Aws
EventConfigurationItem & WithIdentifierType(IdentifierType value)
EventConfigurationItem & WithEvents(EventsT &&value)
const EventNotificationItemConfigurations & GetEvents() const
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
EventNotificationPartnerType GetPartnerType() const
void SetPartnerType(EventNotificationPartnerType value)
AWS_IOTWIRELESS_API EventConfigurationItem(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTWIRELESS_API EventConfigurationItem()=default
EventConfigurationItem & WithIdentifier(IdentifierT &&value)
AWS_IOTWIRELESS_API EventConfigurationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
EventConfigurationItem & WithPartnerType(EventNotificationPartnerType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue