AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PropertyNotification.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsitewise/model/PropertyNotificationState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSiteWise
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_IOTSITEWISE_API PropertyNotification() = default;
41 AWS_IOTSITEWISE_API PropertyNotification(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetTopic() const { return m_topic; }
52 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
53 template<typename TopicT = Aws::String>
54 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
55 template<typename TopicT = Aws::String>
56 PropertyNotification& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
58
60
63 inline PropertyNotificationState GetState() const { return m_state; }
64 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
65 inline void SetState(PropertyNotificationState value) { m_stateHasBeenSet = true; m_state = value; }
66 inline PropertyNotification& WithState(PropertyNotificationState value) { SetState(value); return *this;}
68 private:
69
70 Aws::String m_topic;
71 bool m_topicHasBeenSet = false;
72
74 bool m_stateHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace IoTSiteWise
79} // namespace Aws
AWS_IOTSITEWISE_API PropertyNotification()=default
void SetState(PropertyNotificationState value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API PropertyNotification(Aws::Utils::Json::JsonView jsonValue)
PropertyNotification & WithState(PropertyNotificationState value)
PropertyNotification & WithTopic(TopicT &&value)
AWS_IOTSITEWISE_API PropertyNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue