AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SendHeartbeatRequest.h
1
6#pragma once
7#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
8#include <aws/sagemaker-edge/SagemakerEdgeManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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#include <utility>
15
16namespace Aws
17{
18namespace SagemakerEdgeManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKEREDGEMANAGER_API SendHeartbeatRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SendHeartbeat"; }
35
36 AWS_SAGEMAKEREDGEMANAGER_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::Vector<EdgeMetric>& GetAgentMetrics() const { return m_agentMetrics; }
45 inline bool AgentMetricsHasBeenSet() const { return m_agentMetricsHasBeenSet; }
46 template<typename AgentMetricsT = Aws::Vector<EdgeMetric>>
47 void SetAgentMetrics(AgentMetricsT&& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics = std::forward<AgentMetricsT>(value); }
48 template<typename AgentMetricsT = Aws::Vector<EdgeMetric>>
49 SendHeartbeatRequest& WithAgentMetrics(AgentMetricsT&& value) { SetAgentMetrics(std::forward<AgentMetricsT>(value)); return *this;}
50 template<typename AgentMetricsT = EdgeMetric>
51 SendHeartbeatRequest& AddAgentMetrics(AgentMetricsT&& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics.emplace_back(std::forward<AgentMetricsT>(value)); return *this; }
53
55
58 inline const Aws::Vector<Model>& GetModels() const { return m_models; }
59 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
60 template<typename ModelsT = Aws::Vector<Model>>
61 void SetModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models = std::forward<ModelsT>(value); }
62 template<typename ModelsT = Aws::Vector<Model>>
63 SendHeartbeatRequest& WithModels(ModelsT&& value) { SetModels(std::forward<ModelsT>(value)); return *this;}
64 template<typename ModelsT = Model>
65 SendHeartbeatRequest& AddModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models.emplace_back(std::forward<ModelsT>(value)); return *this; }
67
69
72 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
73 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
74 template<typename AgentVersionT = Aws::String>
75 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
76 template<typename AgentVersionT = Aws::String>
77 SendHeartbeatRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
85 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
86 template<typename DeviceNameT = Aws::String>
87 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
88 template<typename DeviceNameT = Aws::String>
89 SendHeartbeatRequest& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
97 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
98 template<typename DeviceFleetNameT = Aws::String>
99 void SetDeviceFleetName(DeviceFleetNameT&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::forward<DeviceFleetNameT>(value); }
100 template<typename DeviceFleetNameT = Aws::String>
101 SendHeartbeatRequest& WithDeviceFleetName(DeviceFleetNameT&& value) { SetDeviceFleetName(std::forward<DeviceFleetNameT>(value)); return *this;}
103
105
108 inline const DeploymentResult& GetDeploymentResult() const { return m_deploymentResult; }
109 inline bool DeploymentResultHasBeenSet() const { return m_deploymentResultHasBeenSet; }
110 template<typename DeploymentResultT = DeploymentResult>
111 void SetDeploymentResult(DeploymentResultT&& value) { m_deploymentResultHasBeenSet = true; m_deploymentResult = std::forward<DeploymentResultT>(value); }
112 template<typename DeploymentResultT = DeploymentResult>
113 SendHeartbeatRequest& WithDeploymentResult(DeploymentResultT&& value) { SetDeploymentResult(std::forward<DeploymentResultT>(value)); return *this;}
115 private:
116
117 Aws::Vector<EdgeMetric> m_agentMetrics;
118 bool m_agentMetricsHasBeenSet = false;
119
120 Aws::Vector<Model> m_models;
121 bool m_modelsHasBeenSet = false;
122
123 Aws::String m_agentVersion;
124 bool m_agentVersionHasBeenSet = false;
125
126 Aws::String m_deviceName;
127 bool m_deviceNameHasBeenSet = false;
128
129 Aws::String m_deviceFleetName;
130 bool m_deviceFleetNameHasBeenSet = false;
131
132 DeploymentResult m_deploymentResult;
133 bool m_deploymentResultHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SagemakerEdgeManager
138} // 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