AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Model.h
1
6#pragma once
7#include <aws/sagemaker-edge/SagemakerEdgeManager_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-edge/model/EdgeMetric.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 SagemakerEdgeManager
25{
26namespace Model
27{
28
35 class Model
36 {
37 public:
38 AWS_SAGEMAKEREDGEMANAGER_API Model();
39 AWS_SAGEMAKEREDGEMANAGER_API Model(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKEREDGEMANAGER_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetModelName() const{ return m_modelName; }
49 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
50 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
51 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
52 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
53 inline Model& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
54 inline Model& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
55 inline Model& WithModelName(const char* value) { SetModelName(value); return *this;}
57
59
62 inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
63 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
64 inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
65 inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
66 inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
67 inline Model& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
68 inline Model& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
69 inline Model& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetLatestSampleTime() const{ return m_latestSampleTime; }
77 inline bool LatestSampleTimeHasBeenSet() const { return m_latestSampleTimeHasBeenSet; }
78 inline void SetLatestSampleTime(const Aws::Utils::DateTime& value) { m_latestSampleTimeHasBeenSet = true; m_latestSampleTime = value; }
79 inline void SetLatestSampleTime(Aws::Utils::DateTime&& value) { m_latestSampleTimeHasBeenSet = true; m_latestSampleTime = std::move(value); }
80 inline Model& WithLatestSampleTime(const Aws::Utils::DateTime& value) { SetLatestSampleTime(value); return *this;}
81 inline Model& WithLatestSampleTime(Aws::Utils::DateTime&& value) { SetLatestSampleTime(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetLatestInference() const{ return m_latestInference; }
89 inline bool LatestInferenceHasBeenSet() const { return m_latestInferenceHasBeenSet; }
90 inline void SetLatestInference(const Aws::Utils::DateTime& value) { m_latestInferenceHasBeenSet = true; m_latestInference = value; }
91 inline void SetLatestInference(Aws::Utils::DateTime&& value) { m_latestInferenceHasBeenSet = true; m_latestInference = std::move(value); }
92 inline Model& WithLatestInference(const Aws::Utils::DateTime& value) { SetLatestInference(value); return *this;}
93 inline Model& WithLatestInference(Aws::Utils::DateTime&& value) { SetLatestInference(std::move(value)); return *this;}
95
97
100 inline const Aws::Vector<EdgeMetric>& GetModelMetrics() const{ return m_modelMetrics; }
101 inline bool ModelMetricsHasBeenSet() const { return m_modelMetricsHasBeenSet; }
102 inline void SetModelMetrics(const Aws::Vector<EdgeMetric>& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics = value; }
103 inline void SetModelMetrics(Aws::Vector<EdgeMetric>&& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics = std::move(value); }
104 inline Model& WithModelMetrics(const Aws::Vector<EdgeMetric>& value) { SetModelMetrics(value); return *this;}
105 inline Model& WithModelMetrics(Aws::Vector<EdgeMetric>&& value) { SetModelMetrics(std::move(value)); return *this;}
106 inline Model& AddModelMetrics(const EdgeMetric& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics.push_back(value); return *this; }
107 inline Model& AddModelMetrics(EdgeMetric&& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::String m_modelName;
112 bool m_modelNameHasBeenSet = false;
113
114 Aws::String m_modelVersion;
115 bool m_modelVersionHasBeenSet = false;
116
117 Aws::Utils::DateTime m_latestSampleTime;
118 bool m_latestSampleTimeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_latestInference;
121 bool m_latestInferenceHasBeenSet = false;
122
123 Aws::Vector<EdgeMetric> m_modelMetrics;
124 bool m_modelMetricsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SagemakerEdgeManager
129} // namespace Aws
void SetModelVersion(Aws::String &&value)
Definition Model.h:65
void SetLatestInference(const Aws::Utils::DateTime &value)
Definition Model.h:90
void SetLatestSampleTime(const Aws::Utils::DateTime &value)
Definition Model.h:78
Model & WithModelVersion(const Aws::String &value)
Definition Model.h:67
void SetModelMetrics(const Aws::Vector< EdgeMetric > &value)
Definition Model.h:102
void SetModelName(Aws::String &&value)
Definition Model.h:51
void SetModelVersion(const char *value)
Definition Model.h:66
const Aws::String & GetModelName() const
Definition Model.h:48
void SetLatestInference(Aws::Utils::DateTime &&value)
Definition Model.h:91
void SetModelVersion(const Aws::String &value)
Definition Model.h:64
const Aws::Utils::DateTime & GetLatestSampleTime() const
Definition Model.h:76
Model & WithModelVersion(Aws::String &&value)
Definition Model.h:68
Model & WithModelName(const char *value)
Definition Model.h:55
Model & WithLatestSampleTime(const Aws::Utils::DateTime &value)
Definition Model.h:80
Model & WithModelMetrics(Aws::Vector< EdgeMetric > &&value)
Definition Model.h:105
Model & WithModelName(Aws::String &&value)
Definition Model.h:54
AWS_SAGEMAKEREDGEMANAGER_API Model(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Model & WithLatestSampleTime(Aws::Utils::DateTime &&value)
Definition Model.h:81
AWS_SAGEMAKEREDGEMANAGER_API Model()
Model & WithLatestInference(const Aws::Utils::DateTime &value)
Definition Model.h:92
const Aws::String & GetModelVersion() const
Definition Model.h:62
AWS_SAGEMAKEREDGEMANAGER_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Model & WithModelVersion(const char *value)
Definition Model.h:69
void SetModelMetrics(Aws::Vector< EdgeMetric > &&value)
Definition Model.h:103
void SetModelName(const char *value)
Definition Model.h:52
const Aws::Vector< EdgeMetric > & GetModelMetrics() const
Definition Model.h:100
const Aws::Utils::DateTime & GetLatestInference() const
Definition Model.h:88
void SetLatestSampleTime(Aws::Utils::DateTime &&value)
Definition Model.h:79
Model & WithModelName(const Aws::String &value)
Definition Model.h:53
Model & WithModelMetrics(const Aws::Vector< EdgeMetric > &value)
Definition Model.h:104
Model & AddModelMetrics(EdgeMetric &&value)
Definition Model.h:107
void SetModelName(const Aws::String &value)
Definition Model.h:50
Model & AddModelMetrics(const EdgeMetric &value)
Definition Model.h:106
Model & WithLatestInference(Aws::Utils::DateTime &&value)
Definition Model.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue