AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentMetrics(const Aws::Vector<EdgeMetric>& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics = value; }
47 inline void SetAgentMetrics(Aws::Vector<EdgeMetric>&& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics = std::move(value); }
49 inline SendHeartbeatRequest& WithAgentMetrics(Aws::Vector<EdgeMetric>&& value) { SetAgentMetrics(std::move(value)); return *this;}
50 inline SendHeartbeatRequest& AddAgentMetrics(const EdgeMetric& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics.push_back(value); return *this; }
51 inline SendHeartbeatRequest& AddAgentMetrics(EdgeMetric&& value) { m_agentMetricsHasBeenSet = true; m_agentMetrics.push_back(std::move(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 inline void SetModels(const Aws::Vector<Model>& value) { m_modelsHasBeenSet = true; m_models = value; }
61 inline void SetModels(Aws::Vector<Model>&& value) { m_modelsHasBeenSet = true; m_models = std::move(value); }
62 inline SendHeartbeatRequest& WithModels(const Aws::Vector<Model>& value) { SetModels(value); return *this;}
63 inline SendHeartbeatRequest& WithModels(Aws::Vector<Model>&& value) { SetModels(std::move(value)); return *this;}
64 inline SendHeartbeatRequest& AddModels(const Model& value) { m_modelsHasBeenSet = true; m_models.push_back(value); return *this; }
65 inline SendHeartbeatRequest& AddModels(Model&& value) { m_modelsHasBeenSet = true; m_models.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
73 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
74 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
75 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
76 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
77 inline SendHeartbeatRequest& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
78 inline SendHeartbeatRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
79 inline SendHeartbeatRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
81
83
86 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
87 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
88 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
89 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
90 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
91 inline SendHeartbeatRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
92 inline SendHeartbeatRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
93 inline SendHeartbeatRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
95
97
100 inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; }
101 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
102 inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; }
103 inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); }
104 inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); }
105 inline SendHeartbeatRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;}
106 inline SendHeartbeatRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;}
107 inline SendHeartbeatRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;}
109
111
114 inline const DeploymentResult& GetDeploymentResult() const{ return m_deploymentResult; }
115 inline bool DeploymentResultHasBeenSet() const { return m_deploymentResultHasBeenSet; }
116 inline void SetDeploymentResult(const DeploymentResult& value) { m_deploymentResultHasBeenSet = true; m_deploymentResult = value; }
117 inline void SetDeploymentResult(DeploymentResult&& value) { m_deploymentResultHasBeenSet = true; m_deploymentResult = std::move(value); }
119 inline SendHeartbeatRequest& WithDeploymentResult(DeploymentResult&& value) { SetDeploymentResult(std::move(value)); return *this;}
121 private:
122
123 Aws::Vector<EdgeMetric> m_agentMetrics;
124 bool m_agentMetricsHasBeenSet = false;
125
126 Aws::Vector<Model> m_models;
127 bool m_modelsHasBeenSet = false;
128
129 Aws::String m_agentVersion;
130 bool m_agentVersionHasBeenSet = false;
131
132 Aws::String m_deviceName;
133 bool m_deviceNameHasBeenSet = false;
134
135 Aws::String m_deviceFleetName;
136 bool m_deviceFleetNameHasBeenSet = false;
137
138 DeploymentResult m_deploymentResult;
139 bool m_deploymentResultHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SagemakerEdgeManager
144} // namespace Aws
virtual const char * GetServiceRequestName() const override
SendHeartbeatRequest & WithDeviceName(const char *value)
const Aws::Vector< EdgeMetric > & GetAgentMetrics() const
SendHeartbeatRequest & WithAgentVersion(const char *value)
SendHeartbeatRequest & WithDeviceName(const Aws::String &value)
SendHeartbeatRequest & WithModels(const Aws::Vector< Model > &value)
void SetModels(const Aws::Vector< Model > &value)
SendHeartbeatRequest & WithDeploymentResult(const DeploymentResult &value)
AWS_SAGEMAKEREDGEMANAGER_API SendHeartbeatRequest()
SendHeartbeatRequest & WithAgentVersion(const Aws::String &value)
SendHeartbeatRequest & WithAgentMetrics(Aws::Vector< EdgeMetric > &&value)
SendHeartbeatRequest & WithModels(Aws::Vector< Model > &&value)
SendHeartbeatRequest & WithAgentVersion(Aws::String &&value)
SendHeartbeatRequest & AddAgentMetrics(const EdgeMetric &value)
SendHeartbeatRequest & WithDeviceFleetName(Aws::String &&value)
SendHeartbeatRequest & WithDeviceFleetName(const char *value)
SendHeartbeatRequest & WithAgentMetrics(const Aws::Vector< EdgeMetric > &value)
SendHeartbeatRequest & WithDeploymentResult(DeploymentResult &&value)
void SetAgentMetrics(const Aws::Vector< EdgeMetric > &value)
SendHeartbeatRequest & WithDeviceName(Aws::String &&value)
SendHeartbeatRequest & AddAgentMetrics(EdgeMetric &&value)
SendHeartbeatRequest & AddModels(const Model &value)
void SetAgentMetrics(Aws::Vector< EdgeMetric > &&value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::String SerializePayload() const override
SendHeartbeatRequest & WithDeviceFleetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector