AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EdgeModel.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
28class EdgeModel {
29 public:
30 AWS_SAGEMAKER_API EdgeModel() = default;
31 AWS_SAGEMAKER_API EdgeModel(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API EdgeModel& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetModelName() const { return m_modelName; }
40 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
41 template <typename ModelNameT = Aws::String>
42 void SetModelName(ModelNameT&& value) {
43 m_modelNameHasBeenSet = true;
44 m_modelName = std::forward<ModelNameT>(value);
45 }
46 template <typename ModelNameT = Aws::String>
47 EdgeModel& WithModelName(ModelNameT&& value) {
48 SetModelName(std::forward<ModelNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
58 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
59 template <typename ModelVersionT = Aws::String>
60 void SetModelVersion(ModelVersionT&& value) {
61 m_modelVersionHasBeenSet = true;
62 m_modelVersion = std::forward<ModelVersionT>(value);
63 }
64 template <typename ModelVersionT = Aws::String>
65 EdgeModel& WithModelVersion(ModelVersionT&& value) {
66 SetModelVersion(std::forward<ModelVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLatestSampleTime() const { return m_latestSampleTime; }
76 inline bool LatestSampleTimeHasBeenSet() const { return m_latestSampleTimeHasBeenSet; }
77 template <typename LatestSampleTimeT = Aws::Utils::DateTime>
78 void SetLatestSampleTime(LatestSampleTimeT&& value) {
79 m_latestSampleTimeHasBeenSet = true;
80 m_latestSampleTime = std::forward<LatestSampleTimeT>(value);
81 }
82 template <typename LatestSampleTimeT = Aws::Utils::DateTime>
83 EdgeModel& WithLatestSampleTime(LatestSampleTimeT&& value) {
84 SetLatestSampleTime(std::forward<LatestSampleTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLatestInference() const { return m_latestInference; }
94 inline bool LatestInferenceHasBeenSet() const { return m_latestInferenceHasBeenSet; }
95 template <typename LatestInferenceT = Aws::Utils::DateTime>
96 void SetLatestInference(LatestInferenceT&& value) {
97 m_latestInferenceHasBeenSet = true;
98 m_latestInference = std::forward<LatestInferenceT>(value);
99 }
100 template <typename LatestInferenceT = Aws::Utils::DateTime>
101 EdgeModel& WithLatestInference(LatestInferenceT&& value) {
102 SetLatestInference(std::forward<LatestInferenceT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_modelName;
108
109 Aws::String m_modelVersion;
110
111 Aws::Utils::DateTime m_latestSampleTime{};
112
113 Aws::Utils::DateTime m_latestInference{};
114 bool m_modelNameHasBeenSet = false;
115 bool m_modelVersionHasBeenSet = false;
116 bool m_latestSampleTimeHasBeenSet = false;
117 bool m_latestInferenceHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SageMaker
122} // namespace Aws
EdgeModel & WithModelVersion(ModelVersionT &&value)
Definition EdgeModel.h:65
AWS_SAGEMAKER_API EdgeModel(Aws::Utils::Json::JsonView jsonValue)
void SetModelName(ModelNameT &&value)
Definition EdgeModel.h:42
bool LatestSampleTimeHasBeenSet() const
Definition EdgeModel.h:76
void SetModelVersion(ModelVersionT &&value)
Definition EdgeModel.h:60
const Aws::Utils::DateTime & GetLatestSampleTime() const
Definition EdgeModel.h:75
const Aws::Utils::DateTime & GetLatestInference() const
Definition EdgeModel.h:93
AWS_SAGEMAKER_API EdgeModel()=default
AWS_SAGEMAKER_API EdgeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetModelVersion() const
Definition EdgeModel.h:57
EdgeModel & WithModelName(ModelNameT &&value)
Definition EdgeModel.h:47
EdgeModel & WithLatestSampleTime(LatestSampleTimeT &&value)
Definition EdgeModel.h:83
EdgeModel & WithLatestInference(LatestInferenceT &&value)
Definition EdgeModel.h:101
void SetLatestSampleTime(LatestSampleTimeT &&value)
Definition EdgeModel.h:78
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetModelName() const
Definition EdgeModel.h:39
void SetLatestInference(LatestInferenceT &&value)
Definition EdgeModel.h:96
bool LatestInferenceHasBeenSet() const
Definition EdgeModel.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue