AWS SDK for C++  1.9.123
AWS SDK for C++
CoreDevice.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GreengrassV2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; }
47 
51  inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; }
52 
56  inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; }
57 
61  inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); }
62 
66  inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); }
67 
71  inline CoreDevice& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;}
72 
76  inline CoreDevice& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;}
77 
81  inline CoreDevice& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;}
82 
83 
91  inline const CoreDeviceStatus& GetStatus() const{ return m_status; }
92 
100  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 
109  inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
110 
118  inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 
127  inline CoreDevice& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;}
128 
136  inline CoreDevice& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;}
137 
138 
143  inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const{ return m_lastStatusUpdateTimestamp; }
144 
149  inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; }
150 
155  inline void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = value; }
156 
161  inline void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = std::move(value); }
162 
167  inline CoreDevice& WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { SetLastStatusUpdateTimestamp(value); return *this;}
168 
173  inline CoreDevice& WithLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { SetLastStatusUpdateTimestamp(std::move(value)); return *this;}
174 
175  private:
176 
177  Aws::String m_coreDeviceThingName;
178  bool m_coreDeviceThingNameHasBeenSet;
179 
180  CoreDeviceStatus m_status;
181  bool m_statusHasBeenSet;
182 
183  Aws::Utils::DateTime m_lastStatusUpdateTimestamp;
184  bool m_lastStatusUpdateTimestampHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace GreengrassV2
189 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::GreengrassV2::Model::CoreDevice::CoreDevice
CoreDevice(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::CoreDevice::SetLastStatusUpdateTimestamp
void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition: CoreDevice.h:155
Aws::GreengrassV2::Model::CoreDevice::SetStatus
void SetStatus(CoreDeviceStatus &&value)
Definition: CoreDevice.h:118
Aws::GreengrassV2::Model::CoreDevice::GetStatus
const CoreDeviceStatus & GetStatus() const
Definition: CoreDevice.h:91
Aws::GreengrassV2::Model::CoreDeviceStatus
CoreDeviceStatus
Definition: CoreDeviceStatus.h:17
Aws::GreengrassV2::Model::CoreDevice::WithCoreDeviceThingName
CoreDevice & WithCoreDeviceThingName(const Aws::String &value)
Definition: CoreDevice.h:71
Aws::GreengrassV2::Model::CoreDevice::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CoreDevice.h:100
DateTime.h
Aws::GreengrassV2::Model::CoreDevice::GetCoreDeviceThingName
const Aws::String & GetCoreDeviceThingName() const
Definition: CoreDevice.h:46
Aws::GreengrassV2::Model::CoreDevice::WithCoreDeviceThingName
CoreDevice & WithCoreDeviceThingName(Aws::String &&value)
Definition: CoreDevice.h:76
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::CoreDevice::SetStatus
void SetStatus(const CoreDeviceStatus &value)
Definition: CoreDevice.h:109
Aws::GreengrassV2::Model::CoreDevice
Definition: CoreDevice.h:35
Aws::GreengrassV2::Model::CoreDevice::SetCoreDeviceThingName
void SetCoreDeviceThingName(Aws::String &&value)
Definition: CoreDevice.h:61
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::CoreDevice::SetCoreDeviceThingName
void SetCoreDeviceThingName(const Aws::String &value)
Definition: CoreDevice.h:56
Aws::GreengrassV2::Model::CoreDevice::WithLastStatusUpdateTimestamp
CoreDevice & WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime &value)
Definition: CoreDevice.h:167
Aws::GreengrassV2::Model::CoreDevice::WithStatus
CoreDevice & WithStatus(CoreDeviceStatus &&value)
Definition: CoreDevice.h:136
Aws::GreengrassV2::Model::CoreDevice::SetCoreDeviceThingName
void SetCoreDeviceThingName(const char *value)
Definition: CoreDevice.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::CoreDevice::WithLastStatusUpdateTimestamp
CoreDevice & WithLastStatusUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition: CoreDevice.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::CoreDevice::SetLastStatusUpdateTimestamp
void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime &&value)
Definition: CoreDevice.h:161
Aws::GreengrassV2::Model::CoreDevice::WithStatus
CoreDevice & WithStatus(const CoreDeviceStatus &value)
Definition: CoreDevice.h:127
Aws::GreengrassV2::Model::CoreDevice::LastStatusUpdateTimestampHasBeenSet
bool LastStatusUpdateTimestampHasBeenSet() const
Definition: CoreDevice.h:149
Aws::GreengrassV2::Model::CoreDevice::GetLastStatusUpdateTimestamp
const Aws::Utils::DateTime & GetLastStatusUpdateTimestamp() const
Definition: CoreDevice.h:143
Aws::GreengrassV2::Model::CoreDevice::CoreDeviceThingNameHasBeenSet
bool CoreDeviceThingNameHasBeenSet() const
Definition: CoreDevice.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CoreDeviceStatus.h
Aws::GreengrassV2::Model::CoreDevice::WithCoreDeviceThingName
CoreDevice & WithCoreDeviceThingName(const char *value)
Definition: CoreDevice.h:81
Aws::GreengrassV2::Model::CoreDevice::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::CoreDevice::operator=
CoreDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::CoreDevice::CoreDevice
CoreDevice()