AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetThingConnectivityDataResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iot/model/DisconnectReasonValue.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT
26{
27namespace Model
28{
30 {
31 public:
32 AWS_IOT_API GetThingConnectivityDataResult() = default;
35
36
38
41 inline const Aws::String& GetThingName() const { return m_thingName; }
42 template<typename ThingNameT = Aws::String>
43 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
44 template<typename ThingNameT = Aws::String>
45 GetThingConnectivityDataResult& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
47
49
52 inline bool GetConnected() const { return m_connected; }
53 inline void SetConnected(bool value) { m_connectedHasBeenSet = true; m_connected = value; }
54 inline GetThingConnectivityDataResult& WithConnected(bool value) { SetConnected(value); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
62 template<typename TimestampT = Aws::Utils::DateTime>
63 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
64 template<typename TimestampT = Aws::Utils::DateTime>
65 GetThingConnectivityDataResult& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
67
69
72 inline DisconnectReasonValue GetDisconnectReason() const { return m_disconnectReason; }
73 inline void SetDisconnectReason(DisconnectReasonValue value) { m_disconnectReasonHasBeenSet = true; m_disconnectReason = value; }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template<typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
82 template<typename RequestIdT = Aws::String>
83 GetThingConnectivityDataResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
85 private:
86
87 Aws::String m_thingName;
88 bool m_thingNameHasBeenSet = false;
89
90 bool m_connected{false};
91 bool m_connectedHasBeenSet = false;
92
93 Aws::Utils::DateTime m_timestamp{};
94 bool m_timestampHasBeenSet = false;
95
97 bool m_disconnectReasonHasBeenSet = false;
98
99 Aws::String m_requestId;
100 bool m_requestIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace IoT
105} // namespace Aws
GetThingConnectivityDataResult & WithDisconnectReason(DisconnectReasonValue value)
GetThingConnectivityDataResult & WithConnected(bool value)
AWS_IOT_API GetThingConnectivityDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThingConnectivityDataResult & WithThingName(ThingNameT &&value)
AWS_IOT_API GetThingConnectivityDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThingConnectivityDataResult & WithTimestamp(TimestampT &&value)
GetThingConnectivityDataResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue