AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModelMetadata.h
1
6#pragma once
7#include <aws/lookoutvision/LookoutforVision_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutvision/model/ModelStatus.h>
11#include <aws/lookoutvision/model/ModelPerformance.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 LookoutforVision
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LOOKOUTFORVISION_API ModelMetadata() = default;
38 AWS_LOOKOUTFORVISION_API ModelMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTFORVISION_API ModelMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
48 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
49 template<typename CreationTimestampT = Aws::Utils::DateTime>
50 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
51 template<typename CreationTimestampT = Aws::Utils::DateTime>
52 ModelMetadata& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
54
56
59 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
60 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
61 template<typename ModelVersionT = Aws::String>
62 void SetModelVersion(ModelVersionT&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::forward<ModelVersionT>(value); }
63 template<typename ModelVersionT = Aws::String>
64 ModelMetadata& WithModelVersion(ModelVersionT&& value) { SetModelVersion(std::forward<ModelVersionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetModelArn() const { return m_modelArn; }
72 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
73 template<typename ModelArnT = Aws::String>
74 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
75 template<typename ModelArnT = Aws::String>
76 ModelMetadata& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 ModelMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline ModelStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(ModelStatus value) { m_statusHasBeenSet = true; m_status = value; }
98 inline ModelMetadata& WithStatus(ModelStatus value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
106 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
107 template<typename StatusMessageT = Aws::String>
108 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
109 template<typename StatusMessageT = Aws::String>
110 ModelMetadata& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
112
114
118 inline const ModelPerformance& GetPerformance() const { return m_performance; }
119 inline bool PerformanceHasBeenSet() const { return m_performanceHasBeenSet; }
120 template<typename PerformanceT = ModelPerformance>
121 void SetPerformance(PerformanceT&& value) { m_performanceHasBeenSet = true; m_performance = std::forward<PerformanceT>(value); }
122 template<typename PerformanceT = ModelPerformance>
123 ModelMetadata& WithPerformance(PerformanceT&& value) { SetPerformance(std::forward<PerformanceT>(value)); return *this;}
125 private:
126
127 Aws::Utils::DateTime m_creationTimestamp{};
128 bool m_creationTimestampHasBeenSet = false;
129
130 Aws::String m_modelVersion;
131 bool m_modelVersionHasBeenSet = false;
132
133 Aws::String m_modelArn;
134 bool m_modelArnHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141
142 Aws::String m_statusMessage;
143 bool m_statusMessageHasBeenSet = false;
144
145 ModelPerformance m_performance;
146 bool m_performanceHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace LookoutforVision
151} // namespace Aws
void SetModelVersion(ModelVersionT &&value)
const ModelPerformance & GetPerformance() const
ModelMetadata & WithStatusMessage(StatusMessageT &&value)
AWS_LOOKOUTFORVISION_API ModelMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetModelVersion() const
const Aws::String & GetModelArn() const
const Aws::String & GetStatusMessage() const
ModelMetadata & WithCreationTimestamp(CreationTimestampT &&value)
ModelMetadata & WithPerformance(PerformanceT &&value)
void SetDescription(DescriptionT &&value)
ModelMetadata & WithModelVersion(ModelVersionT &&value)
void SetStatusMessage(StatusMessageT &&value)
void SetCreationTimestamp(CreationTimestampT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
AWS_LOOKOUTFORVISION_API ModelMetadata()=default
AWS_LOOKOUTFORVISION_API ModelMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelMetadata & WithDescription(DescriptionT &&value)
ModelMetadata & WithModelArn(ModelArnT &&value)
ModelMetadata & WithStatus(ModelStatus value)
const Aws::String & GetDescription() const
void SetPerformance(PerformanceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue