AWS SDK for C++  1.9.124
AWS SDK for C++
ThingConnectivity.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline bool GetConnected() const{ return m_connected; }
45 
50  inline bool ConnectedHasBeenSet() const { return m_connectedHasBeenSet; }
51 
56  inline void SetConnected(bool value) { m_connectedHasBeenSet = true; m_connected = value; }
57 
62  inline ThingConnectivity& WithConnected(bool value) { SetConnected(value); return *this;}
63 
64 
70  inline long long GetTimestamp() const{ return m_timestamp; }
71 
77  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
78 
84  inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
85 
91  inline ThingConnectivity& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
92 
93 
99  inline const Aws::String& GetDisconnectReason() const{ return m_disconnectReason; }
100 
106  inline bool DisconnectReasonHasBeenSet() const { return m_disconnectReasonHasBeenSet; }
107 
113  inline void SetDisconnectReason(const Aws::String& value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason = value; }
114 
120  inline void SetDisconnectReason(Aws::String&& value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason = std::move(value); }
121 
127  inline void SetDisconnectReason(const char* value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason.assign(value); }
128 
134  inline ThingConnectivity& WithDisconnectReason(const Aws::String& value) { SetDisconnectReason(value); return *this;}
135 
141  inline ThingConnectivity& WithDisconnectReason(Aws::String&& value) { SetDisconnectReason(std::move(value)); return *this;}
142 
148  inline ThingConnectivity& WithDisconnectReason(const char* value) { SetDisconnectReason(value); return *this;}
149 
150  private:
151 
152  bool m_connected;
153  bool m_connectedHasBeenSet;
154 
155  long long m_timestamp;
156  bool m_timestampHasBeenSet;
157 
158  Aws::String m_disconnectReason;
159  bool m_disconnectReasonHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace IoT
164 } // namespace Aws
Aws::IoT::Model::ThingConnectivity::ThingConnectivity
ThingConnectivity()
Aws::IoT::Model::ThingConnectivity::SetDisconnectReason
void SetDisconnectReason(Aws::String &&value)
Definition: ThingConnectivity.h:120
Aws::IoT::Model::ThingConnectivity::DisconnectReasonHasBeenSet
bool DisconnectReasonHasBeenSet() const
Definition: ThingConnectivity.h:106
Aws::IoT::Model::ThingConnectivity::WithTimestamp
ThingConnectivity & WithTimestamp(long long value)
Definition: ThingConnectivity.h:91
Aws::IoT::Model::ThingConnectivity::WithConnected
ThingConnectivity & WithConnected(bool value)
Definition: ThingConnectivity.h:62
Aws::IoT::Model::ThingConnectivity::GetTimestamp
long long GetTimestamp() const
Definition: ThingConnectivity.h:70
Aws::IoT::Model::ThingConnectivity::WithDisconnectReason
ThingConnectivity & WithDisconnectReason(const Aws::String &value)
Definition: ThingConnectivity.h:134
Aws::IoT::Model::ThingConnectivity::GetConnected
bool GetConnected() const
Definition: ThingConnectivity.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ThingConnectivity::ConnectedHasBeenSet
bool ConnectedHasBeenSet() const
Definition: ThingConnectivity.h:50
Aws::IoT::Model::ThingConnectivity::ThingConnectivity
ThingConnectivity(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingConnectivity::WithDisconnectReason
ThingConnectivity & WithDisconnectReason(const char *value)
Definition: ThingConnectivity.h:148
Aws::IoT::Model::ThingConnectivity::SetConnected
void SetConnected(bool value)
Definition: ThingConnectivity.h:56
Aws::IoT::Model::ThingConnectivity::SetDisconnectReason
void SetDisconnectReason(const Aws::String &value)
Definition: ThingConnectivity.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ThingConnectivity::operator=
ThingConnectivity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingConnectivity
Definition: ThingConnectivity.h:32
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::ThingConnectivity::WithDisconnectReason
ThingConnectivity & WithDisconnectReason(Aws::String &&value)
Definition: ThingConnectivity.h:141
Aws::IoT::Model::ThingConnectivity::SetTimestamp
void SetTimestamp(long long value)
Definition: ThingConnectivity.h:84
Aws::IoT::Model::ThingConnectivity::GetDisconnectReason
const Aws::String & GetDisconnectReason() const
Definition: ThingConnectivity.h:99
Aws::IoT::Model::ThingConnectivity::SetDisconnectReason
void SetDisconnectReason(const char *value)
Definition: ThingConnectivity.h:127
Aws::IoT::Model::ThingConnectivity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
IoT_EXPORTS.h
Aws::IoT::Model::ThingConnectivity::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: ThingConnectivity.h:77