AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/EdgeModelSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SAGEMAKER_API DeviceSummary() = default;
38 AWS_SAGEMAKER_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API DeviceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
48 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
49 template<typename DeviceNameT = Aws::String>
50 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
51 template<typename DeviceNameT = Aws::String>
52 DeviceSummary& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
60 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
61 template<typename DeviceArnT = Aws::String>
62 void SetDeviceArn(DeviceArnT&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::forward<DeviceArnT>(value); }
63 template<typename DeviceArnT = Aws::String>
64 DeviceSummary& WithDeviceArn(DeviceArnT&& value) { SetDeviceArn(std::forward<DeviceArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 DeviceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
84 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
85 template<typename DeviceFleetNameT = Aws::String>
86 void SetDeviceFleetName(DeviceFleetNameT&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::forward<DeviceFleetNameT>(value); }
87 template<typename DeviceFleetNameT = Aws::String>
88 DeviceSummary& WithDeviceFleetName(DeviceFleetNameT&& value) { SetDeviceFleetName(std::forward<DeviceFleetNameT>(value)); return *this;}
90
92
96 inline const Aws::String& GetIotThingName() const { return m_iotThingName; }
97 inline bool IotThingNameHasBeenSet() const { return m_iotThingNameHasBeenSet; }
98 template<typename IotThingNameT = Aws::String>
99 void SetIotThingName(IotThingNameT&& value) { m_iotThingNameHasBeenSet = true; m_iotThingName = std::forward<IotThingNameT>(value); }
100 template<typename IotThingNameT = Aws::String>
101 DeviceSummary& WithIotThingName(IotThingNameT&& value) { SetIotThingName(std::forward<IotThingNameT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetRegistrationTime() const { return m_registrationTime; }
109 inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; }
110 template<typename RegistrationTimeT = Aws::Utils::DateTime>
111 void SetRegistrationTime(RegistrationTimeT&& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = std::forward<RegistrationTimeT>(value); }
112 template<typename RegistrationTimeT = Aws::Utils::DateTime>
113 DeviceSummary& WithRegistrationTime(RegistrationTimeT&& value) { SetRegistrationTime(std::forward<RegistrationTimeT>(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetLatestHeartbeat() const { return m_latestHeartbeat; }
121 inline bool LatestHeartbeatHasBeenSet() const { return m_latestHeartbeatHasBeenSet; }
122 template<typename LatestHeartbeatT = Aws::Utils::DateTime>
123 void SetLatestHeartbeat(LatestHeartbeatT&& value) { m_latestHeartbeatHasBeenSet = true; m_latestHeartbeat = std::forward<LatestHeartbeatT>(value); }
124 template<typename LatestHeartbeatT = Aws::Utils::DateTime>
125 DeviceSummary& WithLatestHeartbeat(LatestHeartbeatT&& value) { SetLatestHeartbeat(std::forward<LatestHeartbeatT>(value)); return *this;}
127
129
132 inline const Aws::Vector<EdgeModelSummary>& GetModels() const { return m_models; }
133 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
134 template<typename ModelsT = Aws::Vector<EdgeModelSummary>>
135 void SetModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models = std::forward<ModelsT>(value); }
136 template<typename ModelsT = Aws::Vector<EdgeModelSummary>>
137 DeviceSummary& WithModels(ModelsT&& value) { SetModels(std::forward<ModelsT>(value)); return *this;}
138 template<typename ModelsT = EdgeModelSummary>
139 DeviceSummary& AddModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models.emplace_back(std::forward<ModelsT>(value)); return *this; }
141
143
146 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
147 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
148 template<typename AgentVersionT = Aws::String>
149 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
150 template<typename AgentVersionT = Aws::String>
151 DeviceSummary& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
153 private:
154
155 Aws::String m_deviceName;
156 bool m_deviceNameHasBeenSet = false;
157
158 Aws::String m_deviceArn;
159 bool m_deviceArnHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 Aws::String m_deviceFleetName;
165 bool m_deviceFleetNameHasBeenSet = false;
166
167 Aws::String m_iotThingName;
168 bool m_iotThingNameHasBeenSet = false;
169
170 Aws::Utils::DateTime m_registrationTime{};
171 bool m_registrationTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_latestHeartbeat{};
174 bool m_latestHeartbeatHasBeenSet = false;
175
177 bool m_modelsHasBeenSet = false;
178
179 Aws::String m_agentVersion;
180 bool m_agentVersionHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace SageMaker
185} // namespace Aws
DeviceSummary & WithRegistrationTime(RegistrationTimeT &&value)
const Aws::String & GetDeviceName() const
const Aws::Utils::DateTime & GetLatestHeartbeat() const
void SetDeviceArn(DeviceArnT &&value)
const Aws::String & GetIotThingName() const
const Aws::String & GetAgentVersion() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDeviceFleetName() const
const Aws::String & GetDeviceArn() const
DeviceSummary & WithAgentVersion(AgentVersionT &&value)
void SetIotThingName(IotThingNameT &&value)
const Aws::Utils::DateTime & GetRegistrationTime() const
void SetRegistrationTime(RegistrationTimeT &&value)
const Aws::Vector< EdgeModelSummary > & GetModels() const
void SetDescription(DescriptionT &&value)
DeviceSummary & WithDescription(DescriptionT &&value)
DeviceSummary & WithDeviceName(DeviceNameT &&value)
const Aws::String & GetDescription() const
DeviceSummary & AddModels(ModelsT &&value)
void SetLatestHeartbeat(LatestHeartbeatT &&value)
AWS_SAGEMAKER_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAgentVersion(AgentVersionT &&value)
DeviceSummary & WithLatestHeartbeat(LatestHeartbeatT &&value)
void SetDeviceFleetName(DeviceFleetNameT &&value)
DeviceSummary & WithDeviceFleetName(DeviceFleetNameT &&value)
AWS_SAGEMAKER_API DeviceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceName(DeviceNameT &&value)
AWS_SAGEMAKER_API DeviceSummary()=default
DeviceSummary & WithModels(ModelsT &&value)
DeviceSummary & WithIotThingName(IotThingNameT &&value)
DeviceSummary & WithDeviceArn(DeviceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue