AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Algorithm.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/AlgorithmImage.h>
12#include <aws/personalize/model/DefaultHyperParameterRanges.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize {
24namespace Model {
25
31class Algorithm {
32 public:
33 AWS_PERSONALIZE_API Algorithm() = default;
34 AWS_PERSONALIZE_API Algorithm(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API Algorithm& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 Algorithm& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAlgorithmArn() const { return m_algorithmArn; }
61 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
62 template <typename AlgorithmArnT = Aws::String>
63 void SetAlgorithmArn(AlgorithmArnT&& value) {
64 m_algorithmArnHasBeenSet = true;
65 m_algorithmArn = std::forward<AlgorithmArnT>(value);
66 }
67 template <typename AlgorithmArnT = Aws::String>
68 Algorithm& WithAlgorithmArn(AlgorithmArnT&& value) {
69 SetAlgorithmArn(std::forward<AlgorithmArnT>(value));
70 return *this;
71 }
73
75
78 inline const AlgorithmImage& GetAlgorithmImage() const { return m_algorithmImage; }
79 inline bool AlgorithmImageHasBeenSet() const { return m_algorithmImageHasBeenSet; }
80 template <typename AlgorithmImageT = AlgorithmImage>
81 void SetAlgorithmImage(AlgorithmImageT&& value) {
82 m_algorithmImageHasBeenSet = true;
83 m_algorithmImage = std::forward<AlgorithmImageT>(value);
84 }
85 template <typename AlgorithmImageT = AlgorithmImage>
86 Algorithm& WithAlgorithmImage(AlgorithmImageT&& value) {
87 SetAlgorithmImage(std::forward<AlgorithmImageT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultHyperParameters() const { return m_defaultHyperParameters; }
97 inline bool DefaultHyperParametersHasBeenSet() const { return m_defaultHyperParametersHasBeenSet; }
98 template <typename DefaultHyperParametersT = Aws::Map<Aws::String, Aws::String>>
99 void SetDefaultHyperParameters(DefaultHyperParametersT&& value) {
100 m_defaultHyperParametersHasBeenSet = true;
101 m_defaultHyperParameters = std::forward<DefaultHyperParametersT>(value);
102 }
103 template <typename DefaultHyperParametersT = Aws::Map<Aws::String, Aws::String>>
104 Algorithm& WithDefaultHyperParameters(DefaultHyperParametersT&& value) {
105 SetDefaultHyperParameters(std::forward<DefaultHyperParametersT>(value));
106 return *this;
107 }
108 template <typename DefaultHyperParametersKeyT = Aws::String, typename DefaultHyperParametersValueT = Aws::String>
109 Algorithm& AddDefaultHyperParameters(DefaultHyperParametersKeyT&& key, DefaultHyperParametersValueT&& value) {
110 m_defaultHyperParametersHasBeenSet = true;
111 m_defaultHyperParameters.emplace(std::forward<DefaultHyperParametersKeyT>(key), std::forward<DefaultHyperParametersValueT>(value));
112 return *this;
113 }
115
117
122 inline const DefaultHyperParameterRanges& GetDefaultHyperParameterRanges() const { return m_defaultHyperParameterRanges; }
123 inline bool DefaultHyperParameterRangesHasBeenSet() const { return m_defaultHyperParameterRangesHasBeenSet; }
124 template <typename DefaultHyperParameterRangesT = DefaultHyperParameterRanges>
125 void SetDefaultHyperParameterRanges(DefaultHyperParameterRangesT&& value) {
126 m_defaultHyperParameterRangesHasBeenSet = true;
127 m_defaultHyperParameterRanges = std::forward<DefaultHyperParameterRangesT>(value);
128 }
129 template <typename DefaultHyperParameterRangesT = DefaultHyperParameterRanges>
130 Algorithm& WithDefaultHyperParameterRanges(DefaultHyperParameterRangesT&& value) {
131 SetDefaultHyperParameterRanges(std::forward<DefaultHyperParameterRangesT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultResourceConfig() const { return m_defaultResourceConfig; }
142 inline bool DefaultResourceConfigHasBeenSet() const { return m_defaultResourceConfigHasBeenSet; }
143 template <typename DefaultResourceConfigT = Aws::Map<Aws::String, Aws::String>>
144 void SetDefaultResourceConfig(DefaultResourceConfigT&& value) {
145 m_defaultResourceConfigHasBeenSet = true;
146 m_defaultResourceConfig = std::forward<DefaultResourceConfigT>(value);
147 }
148 template <typename DefaultResourceConfigT = Aws::Map<Aws::String, Aws::String>>
149 Algorithm& WithDefaultResourceConfig(DefaultResourceConfigT&& value) {
150 SetDefaultResourceConfig(std::forward<DefaultResourceConfigT>(value));
151 return *this;
152 }
153 template <typename DefaultResourceConfigKeyT = Aws::String, typename DefaultResourceConfigValueT = Aws::String>
154 Algorithm& AddDefaultResourceConfig(DefaultResourceConfigKeyT&& key, DefaultResourceConfigValueT&& value) {
155 m_defaultResourceConfigHasBeenSet = true;
156 m_defaultResourceConfig.emplace(std::forward<DefaultResourceConfigKeyT>(key), std::forward<DefaultResourceConfigValueT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetTrainingInputMode() const { return m_trainingInputMode; }
166 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
167 template <typename TrainingInputModeT = Aws::String>
168 void SetTrainingInputMode(TrainingInputModeT&& value) {
169 m_trainingInputModeHasBeenSet = true;
170 m_trainingInputMode = std::forward<TrainingInputModeT>(value);
171 }
172 template <typename TrainingInputModeT = Aws::String>
173 Algorithm& WithTrainingInputMode(TrainingInputModeT&& value) {
174 SetTrainingInputMode(std::forward<TrainingInputModeT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
184 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
185 template <typename RoleArnT = Aws::String>
186 void SetRoleArn(RoleArnT&& value) {
187 m_roleArnHasBeenSet = true;
188 m_roleArn = std::forward<RoleArnT>(value);
189 }
190 template <typename RoleArnT = Aws::String>
191 Algorithm& WithRoleArn(RoleArnT&& value) {
192 SetRoleArn(std::forward<RoleArnT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
202 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
203 template <typename CreationDateTimeT = Aws::Utils::DateTime>
204 void SetCreationDateTime(CreationDateTimeT&& value) {
205 m_creationDateTimeHasBeenSet = true;
206 m_creationDateTime = std::forward<CreationDateTimeT>(value);
207 }
208 template <typename CreationDateTimeT = Aws::Utils::DateTime>
209 Algorithm& WithCreationDateTime(CreationDateTimeT&& value) {
210 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
220 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
221 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
222 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
223 m_lastUpdatedDateTimeHasBeenSet = true;
224 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
225 }
226 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
227 Algorithm& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
228 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_name;
234
235 Aws::String m_algorithmArn;
236
237 AlgorithmImage m_algorithmImage;
238
239 Aws::Map<Aws::String, Aws::String> m_defaultHyperParameters;
240
241 DefaultHyperParameterRanges m_defaultHyperParameterRanges;
242
243 Aws::Map<Aws::String, Aws::String> m_defaultResourceConfig;
244
245 Aws::String m_trainingInputMode;
246
247 Aws::String m_roleArn;
248
249 Aws::Utils::DateTime m_creationDateTime{};
250
251 Aws::Utils::DateTime m_lastUpdatedDateTime{};
252 bool m_nameHasBeenSet = false;
253 bool m_algorithmArnHasBeenSet = false;
254 bool m_algorithmImageHasBeenSet = false;
255 bool m_defaultHyperParametersHasBeenSet = false;
256 bool m_defaultHyperParameterRangesHasBeenSet = false;
257 bool m_defaultResourceConfigHasBeenSet = false;
258 bool m_trainingInputModeHasBeenSet = false;
259 bool m_roleArnHasBeenSet = false;
260 bool m_creationDateTimeHasBeenSet = false;
261 bool m_lastUpdatedDateTimeHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace Personalize
266} // namespace Aws
Algorithm & WithDefaultHyperParameterRanges(DefaultHyperParameterRangesT &&value)
Definition Algorithm.h:130
const Aws::String & GetName() const
Definition Algorithm.h:42
bool DefaultResourceConfigHasBeenSet() const
Definition Algorithm.h:142
void SetDefaultResourceConfig(DefaultResourceConfigT &&value)
Definition Algorithm.h:144
Algorithm & WithAlgorithmImage(AlgorithmImageT &&value)
Definition Algorithm.h:86
void SetDefaultHyperParameters(DefaultHyperParametersT &&value)
Definition Algorithm.h:99
void SetAlgorithmArn(AlgorithmArnT &&value)
Definition Algorithm.h:63
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Algorithm.h:201
Algorithm & AddDefaultHyperParameters(DefaultHyperParametersKeyT &&key, DefaultHyperParametersValueT &&value)
Definition Algorithm.h:109
void SetTrainingInputMode(TrainingInputModeT &&value)
Definition Algorithm.h:168
void SetDefaultHyperParameterRanges(DefaultHyperParameterRangesT &&value)
Definition Algorithm.h:125
Algorithm & WithCreationDateTime(CreationDateTimeT &&value)
Definition Algorithm.h:209
const Aws::Map< Aws::String, Aws::String > & GetDefaultHyperParameters() const
Definition Algorithm.h:96
void SetRoleArn(RoleArnT &&value)
Definition Algorithm.h:186
bool DefaultHyperParameterRangesHasBeenSet() const
Definition Algorithm.h:123
void SetAlgorithmImage(AlgorithmImageT &&value)
Definition Algorithm.h:81
Algorithm & WithDefaultResourceConfig(DefaultResourceConfigT &&value)
Definition Algorithm.h:149
Algorithm & WithAlgorithmArn(AlgorithmArnT &&value)
Definition Algorithm.h:68
bool DefaultHyperParametersHasBeenSet() const
Definition Algorithm.h:97
Algorithm & AddDefaultResourceConfig(DefaultResourceConfigKeyT &&key, DefaultResourceConfigValueT &&value)
Definition Algorithm.h:154
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Algorithm.h:204
const Aws::String & GetAlgorithmArn() const
Definition Algorithm.h:60
const AlgorithmImage & GetAlgorithmImage() const
Definition Algorithm.h:78
void SetName(NameT &&value)
Definition Algorithm.h:45
Algorithm & WithName(NameT &&value)
Definition Algorithm.h:50
const Aws::Map< Aws::String, Aws::String > & GetDefaultResourceConfig() const
Definition Algorithm.h:141
Algorithm & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Algorithm.h:227
AWS_PERSONALIZE_API Algorithm(Aws::Utils::Json::JsonView jsonValue)
Algorithm & WithDefaultHyperParameters(DefaultHyperParametersT &&value)
Definition Algorithm.h:104
Algorithm & WithTrainingInputMode(TrainingInputModeT &&value)
Definition Algorithm.h:173
AWS_PERSONALIZE_API Algorithm & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTrainingInputMode() const
Definition Algorithm.h:165
AWS_PERSONALIZE_API Algorithm()=default
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Algorithm.h:219
const DefaultHyperParameterRanges & GetDefaultHyperParameterRanges() const
Definition Algorithm.h:122
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Algorithm.h:222
Algorithm & WithRoleArn(RoleArnT &&value)
Definition Algorithm.h:191
const Aws::String & GetRoleArn() const
Definition Algorithm.h:183
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue