AWS SDK for C++  1.8.126
AWS SDK for C++
PropertyNotification.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTSiteWise
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
50  inline const Aws::String& GetTopic() const{ return m_topic; }
51 
56  inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
57 
62  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
63 
68  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
69 
74  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
75 
80  inline PropertyNotification& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
81 
86  inline PropertyNotification& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
87 
92  inline PropertyNotification& WithTopic(const char* value) { SetTopic(value); return *this;}
93 
94 
98  inline const PropertyNotificationState& GetState() const{ return m_state; }
99 
103  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 
108  inline void SetState(const PropertyNotificationState& value) { m_stateHasBeenSet = true; m_state = value; }
109 
113  inline void SetState(PropertyNotificationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
114 
118  inline PropertyNotification& WithState(const PropertyNotificationState& value) { SetState(value); return *this;}
119 
123  inline PropertyNotification& WithState(PropertyNotificationState&& value) { SetState(std::move(value)); return *this;}
124 
125  private:
126 
127  Aws::String m_topic;
128  bool m_topicHasBeenSet;
129 
131  bool m_stateHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace IoTSiteWise
136 } // namespace Aws
Aws::IoTSiteWise::Model::PropertyNotification::StateHasBeenSet
bool StateHasBeenSet() const
Definition: PropertyNotification.h:103
Aws::IoTSiteWise::Model::PropertyNotification::SetTopic
void SetTopic(const char *value)
Definition: PropertyNotification.h:74
Aws::IoTSiteWise::Model::PropertyNotification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::PropertyNotification::GetState
const PropertyNotificationState & GetState() const
Definition: PropertyNotification.h:98
Aws::IoTSiteWise::Model::PropertyNotification
Definition: PropertyNotification.h:38
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::PropertyNotification::SetState
void SetState(const PropertyNotificationState &value)
Definition: PropertyNotification.h:108
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::PropertyNotification::WithTopic
PropertyNotification & WithTopic(const Aws::String &value)
Definition: PropertyNotification.h:80
Aws::IoTSiteWise::Model::PropertyNotification::WithState
PropertyNotification & WithState(PropertyNotificationState &&value)
Definition: PropertyNotification.h:123
Aws::IoTSiteWise::Model::PropertyNotification::WithTopic
PropertyNotification & WithTopic(Aws::String &&value)
Definition: PropertyNotification.h:86
Aws::IoTSiteWise::Model::PropertyNotification::GetTopic
const Aws::String & GetTopic() const
Definition: PropertyNotification.h:50
Aws::IoTSiteWise::Model::PropertyNotification::TopicHasBeenSet
bool TopicHasBeenSet() const
Definition: PropertyNotification.h:56
Aws::IoTSiteWise::Model::PropertyNotification::SetTopic
void SetTopic(const Aws::String &value)
Definition: PropertyNotification.h:62
Aws::IoTSiteWise::Model::PropertyNotificationState
PropertyNotificationState
Definition: PropertyNotificationState.h:17
Aws::IoTSiteWise::Model::PropertyNotification::operator=
PropertyNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PropertyNotification::PropertyNotification
PropertyNotification()
Aws::IoTSiteWise::Model::PropertyNotification::WithState
PropertyNotification & WithState(const PropertyNotificationState &value)
Definition: PropertyNotification.h:118
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::PropertyNotification::SetTopic
void SetTopic(Aws::String &&value)
Definition: PropertyNotification.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PropertyNotificationState.h
Aws::IoTSiteWise::Model::PropertyNotification::PropertyNotification
PropertyNotification(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PropertyNotification::WithTopic
PropertyNotification & WithTopic(const char *value)
Definition: PropertyNotification.h:92
Aws::IoTSiteWise::Model::PropertyNotification::SetState
void SetState(PropertyNotificationState &&value)
Definition: PropertyNotification.h:113