AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SendHeartbeatRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker-edge/SagemakerEdgeManagerRequest.h>
10#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
11#include <aws/sagemaker-edge/model/DeploymentResult.h>
12#include <aws/sagemaker-edge/model/EdgeMetric.h>
13#include <aws/sagemaker-edge/model/Model.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SagemakerEdgeManager {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKEREDGEMANAGER_API SendHeartbeatRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SendHeartbeat"; }
32
33 AWS_SAGEMAKEREDGEMANAGER_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::Vector<EdgeMetric>& GetAgentMetrics() const { return m_agentMetrics; }
41 inline bool AgentMetricsHasBeenSet() const { return m_agentMetricsHasBeenSet; }
42 template <typename AgentMetricsT = Aws::Vector<EdgeMetric>>
43 void SetAgentMetrics(AgentMetricsT&& value) {
44 m_agentMetricsHasBeenSet = true;
45 m_agentMetrics = std::forward<AgentMetricsT>(value);
46 }
47 template <typename AgentMetricsT = Aws::Vector<EdgeMetric>>
48 SendHeartbeatRequest& WithAgentMetrics(AgentMetricsT&& value) {
49 SetAgentMetrics(std::forward<AgentMetricsT>(value));
50 return *this;
51 }
52 template <typename AgentMetricsT = EdgeMetric>
53 SendHeartbeatRequest& AddAgentMetrics(AgentMetricsT&& value) {
54 m_agentMetricsHasBeenSet = true;
55 m_agentMetrics.emplace_back(std::forward<AgentMetricsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Model>& GetModels() const { return m_models; }
65 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
66 template <typename ModelsT = Aws::Vector<Model>>
67 void SetModels(ModelsT&& value) {
68 m_modelsHasBeenSet = true;
69 m_models = std::forward<ModelsT>(value);
70 }
71 template <typename ModelsT = Aws::Vector<Model>>
72 SendHeartbeatRequest& WithModels(ModelsT&& value) {
73 SetModels(std::forward<ModelsT>(value));
74 return *this;
75 }
76 template <typename ModelsT = Model>
77 SendHeartbeatRequest& AddModels(ModelsT&& value) {
78 m_modelsHasBeenSet = true;
79 m_models.emplace_back(std::forward<ModelsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
89 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
90 template <typename AgentVersionT = Aws::String>
91 void SetAgentVersion(AgentVersionT&& value) {
92 m_agentVersionHasBeenSet = true;
93 m_agentVersion = std::forward<AgentVersionT>(value);
94 }
95 template <typename AgentVersionT = Aws::String>
96 SendHeartbeatRequest& WithAgentVersion(AgentVersionT&& value) {
97 SetAgentVersion(std::forward<AgentVersionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
107 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
108 template <typename DeviceNameT = Aws::String>
109 void SetDeviceName(DeviceNameT&& value) {
110 m_deviceNameHasBeenSet = true;
111 m_deviceName = std::forward<DeviceNameT>(value);
112 }
113 template <typename DeviceNameT = Aws::String>
114 SendHeartbeatRequest& WithDeviceName(DeviceNameT&& value) {
115 SetDeviceName(std::forward<DeviceNameT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
125 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
126 template <typename DeviceFleetNameT = Aws::String>
127 void SetDeviceFleetName(DeviceFleetNameT&& value) {
128 m_deviceFleetNameHasBeenSet = true;
129 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
130 }
131 template <typename DeviceFleetNameT = Aws::String>
132 SendHeartbeatRequest& WithDeviceFleetName(DeviceFleetNameT&& value) {
133 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
134 return *this;
135 }
137
139
142 inline const DeploymentResult& GetDeploymentResult() const { return m_deploymentResult; }
143 inline bool DeploymentResultHasBeenSet() const { return m_deploymentResultHasBeenSet; }
144 template <typename DeploymentResultT = DeploymentResult>
145 void SetDeploymentResult(DeploymentResultT&& value) {
146 m_deploymentResultHasBeenSet = true;
147 m_deploymentResult = std::forward<DeploymentResultT>(value);
148 }
149 template <typename DeploymentResultT = DeploymentResult>
150 SendHeartbeatRequest& WithDeploymentResult(DeploymentResultT&& value) {
151 SetDeploymentResult(std::forward<DeploymentResultT>(value));
152 return *this;
153 }
155 private:
156 Aws::Vector<EdgeMetric> m_agentMetrics;
157
158 Aws::Vector<Model> m_models;
159
160 Aws::String m_agentVersion;
161
162 Aws::String m_deviceName;
163
164 Aws::String m_deviceFleetName;
165
166 DeploymentResult m_deploymentResult;
167 bool m_agentMetricsHasBeenSet = false;
168 bool m_modelsHasBeenSet = false;
169 bool m_agentVersionHasBeenSet = false;
170 bool m_deviceNameHasBeenSet = false;
171 bool m_deviceFleetNameHasBeenSet = false;
172 bool m_deploymentResultHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace SagemakerEdgeManager
177} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< EdgeMetric > & GetAgentMetrics() const
SendHeartbeatRequest & WithModels(ModelsT &&value)
SendHeartbeatRequest & AddAgentMetrics(AgentMetricsT &&value)
SendHeartbeatRequest & WithAgentMetrics(AgentMetricsT &&value)
SendHeartbeatRequest & AddModels(ModelsT &&value)
AWS_SAGEMAKEREDGEMANAGER_API SendHeartbeatRequest()=default
SendHeartbeatRequest & WithDeviceName(DeviceNameT &&value)
SendHeartbeatRequest & WithDeviceFleetName(DeviceFleetNameT &&value)
SendHeartbeatRequest & WithAgentVersion(AgentVersionT &&value)
SendHeartbeatRequest & WithDeploymentResult(DeploymentResultT &&value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector