AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoreDevice.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/CoreDeviceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GreengrassV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GREENGRASSV2_API CoreDevice();
38 AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API CoreDevice& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; }
48 inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; }
49 inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; }
50 inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); }
51 inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); }
52 inline CoreDevice& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;}
53 inline CoreDevice& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;}
54 inline CoreDevice& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;}
56
58
65 inline const CoreDeviceStatus& GetStatus() const{ return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
68 inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
69 inline CoreDevice& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;}
70 inline CoreDevice& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const{ return m_lastStatusUpdateTimestamp; }
79 inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; }
80 inline void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = value; }
81 inline void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = std::move(value); }
85 private:
86
87 Aws::String m_coreDeviceThingName;
88 bool m_coreDeviceThingNameHasBeenSet = false;
89
90 CoreDeviceStatus m_status;
91 bool m_statusHasBeenSet = false;
92
93 Aws::Utils::DateTime m_lastStatusUpdateTimestamp;
94 bool m_lastStatusUpdateTimestampHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace GreengrassV2
99} // namespace Aws
void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition CoreDevice.h:81
AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue)
CoreDevice & WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition CoreDevice.h:82
void SetCoreDeviceThingName(Aws::String &&value)
Definition CoreDevice.h:50
bool LastStatusUpdateTimestampHasBeenSet() const
Definition CoreDevice.h:79
void SetCoreDeviceThingName(const Aws::String &value)
Definition CoreDevice.h:49
CoreDevice & WithCoreDeviceThingName(const Aws::String &value)
Definition CoreDevice.h:52
CoreDevice & WithCoreDeviceThingName(const char *value)
Definition CoreDevice.h:54
CoreDevice & WithCoreDeviceThingName(Aws::String &&value)
Definition CoreDevice.h:53
const Aws::String & GetCoreDeviceThingName() const
Definition CoreDevice.h:47
AWS_GREENGRASSV2_API CoreDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
const CoreDeviceStatus & GetStatus() const
Definition CoreDevice.h:65
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(CoreDeviceStatus &&value)
Definition CoreDevice.h:68
CoreDevice & WithStatus(CoreDeviceStatus &&value)
Definition CoreDevice.h:70
const Aws::Utils::DateTime & GetLastStatusUpdateTimestamp() const
Definition CoreDevice.h:78
CoreDevice & WithStatus(const CoreDeviceStatus &value)
Definition CoreDevice.h:69
void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition CoreDevice.h:80
CoreDevice & WithLastStatusUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition CoreDevice.h:83
void SetStatus(const CoreDeviceStatus &value)
Definition CoreDevice.h:67
void SetCoreDeviceThingName(const char *value)
Definition CoreDevice.h:51
AWS_GREENGRASSV2_API CoreDevice()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue