AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Algorithm.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/AlgorithmImage.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/personalize/model/DefaultHyperParameterRanges.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Personalize
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PERSONALIZE_API Algorithm();
39 AWS_PERSONALIZE_API Algorithm(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Algorithm& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Algorithm& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Algorithm& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Algorithm& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetAlgorithmArn() const{ return m_algorithmArn; }
63 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
64 inline void SetAlgorithmArn(const Aws::String& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = value; }
65 inline void SetAlgorithmArn(Aws::String&& value) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::move(value); }
66 inline void SetAlgorithmArn(const char* value) { m_algorithmArnHasBeenSet = true; m_algorithmArn.assign(value); }
67 inline Algorithm& WithAlgorithmArn(const Aws::String& value) { SetAlgorithmArn(value); return *this;}
68 inline Algorithm& WithAlgorithmArn(Aws::String&& value) { SetAlgorithmArn(std::move(value)); return *this;}
69 inline Algorithm& WithAlgorithmArn(const char* value) { SetAlgorithmArn(value); return *this;}
71
73
76 inline const AlgorithmImage& GetAlgorithmImage() const{ return m_algorithmImage; }
77 inline bool AlgorithmImageHasBeenSet() const { return m_algorithmImageHasBeenSet; }
78 inline void SetAlgorithmImage(const AlgorithmImage& value) { m_algorithmImageHasBeenSet = true; m_algorithmImage = value; }
79 inline void SetAlgorithmImage(AlgorithmImage&& value) { m_algorithmImageHasBeenSet = true; m_algorithmImage = std::move(value); }
80 inline Algorithm& WithAlgorithmImage(const AlgorithmImage& value) { SetAlgorithmImage(value); return *this;}
81 inline Algorithm& WithAlgorithmImage(AlgorithmImage&& value) { SetAlgorithmImage(std::move(value)); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultHyperParameters() const{ return m_defaultHyperParameters; }
89 inline bool DefaultHyperParametersHasBeenSet() const { return m_defaultHyperParametersHasBeenSet; }
90 inline void SetDefaultHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters = value; }
91 inline void SetDefaultHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters = std::move(value); }
94 inline Algorithm& AddDefaultHyperParameters(const Aws::String& key, const Aws::String& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(key, value); return *this; }
95 inline Algorithm& AddDefaultHyperParameters(Aws::String&& key, const Aws::String& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(std::move(key), value); return *this; }
96 inline Algorithm& AddDefaultHyperParameters(const Aws::String& key, Aws::String&& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(key, std::move(value)); return *this; }
97 inline Algorithm& AddDefaultHyperParameters(Aws::String&& key, Aws::String&& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(std::move(key), std::move(value)); return *this; }
98 inline Algorithm& AddDefaultHyperParameters(const char* key, Aws::String&& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(key, std::move(value)); return *this; }
99 inline Algorithm& AddDefaultHyperParameters(Aws::String&& key, const char* value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(std::move(key), value); return *this; }
100 inline Algorithm& AddDefaultHyperParameters(const char* key, const char* value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(key, value); return *this; }
102
104
109 inline const DefaultHyperParameterRanges& GetDefaultHyperParameterRanges() const{ return m_defaultHyperParameterRanges; }
110 inline bool DefaultHyperParameterRangesHasBeenSet() const { return m_defaultHyperParameterRangesHasBeenSet; }
111 inline void SetDefaultHyperParameterRanges(const DefaultHyperParameterRanges& value) { m_defaultHyperParameterRangesHasBeenSet = true; m_defaultHyperParameterRanges = value; }
112 inline void SetDefaultHyperParameterRanges(DefaultHyperParameterRanges&& value) { m_defaultHyperParameterRangesHasBeenSet = true; m_defaultHyperParameterRanges = std::move(value); }
116
118
122 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultResourceConfig() const{ return m_defaultResourceConfig; }
123 inline bool DefaultResourceConfigHasBeenSet() const { return m_defaultResourceConfigHasBeenSet; }
124 inline void SetDefaultResourceConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig = value; }
125 inline void SetDefaultResourceConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig = std::move(value); }
128 inline Algorithm& AddDefaultResourceConfig(const Aws::String& key, const Aws::String& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(key, value); return *this; }
129 inline Algorithm& AddDefaultResourceConfig(Aws::String&& key, const Aws::String& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(std::move(key), value); return *this; }
130 inline Algorithm& AddDefaultResourceConfig(const Aws::String& key, Aws::String&& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(key, std::move(value)); return *this; }
131 inline Algorithm& AddDefaultResourceConfig(Aws::String&& key, Aws::String&& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(std::move(key), std::move(value)); return *this; }
132 inline Algorithm& AddDefaultResourceConfig(const char* key, Aws::String&& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(key, std::move(value)); return *this; }
133 inline Algorithm& AddDefaultResourceConfig(Aws::String&& key, const char* value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(std::move(key), value); return *this; }
134 inline Algorithm& AddDefaultResourceConfig(const char* key, const char* value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(key, value); return *this; }
136
138
141 inline const Aws::String& GetTrainingInputMode() const{ return m_trainingInputMode; }
142 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
143 inline void SetTrainingInputMode(const Aws::String& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
144 inline void SetTrainingInputMode(Aws::String&& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = std::move(value); }
145 inline void SetTrainingInputMode(const char* value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode.assign(value); }
146 inline Algorithm& WithTrainingInputMode(const Aws::String& value) { SetTrainingInputMode(value); return *this;}
147 inline Algorithm& WithTrainingInputMode(Aws::String&& value) { SetTrainingInputMode(std::move(value)); return *this;}
148 inline Algorithm& WithTrainingInputMode(const char* value) { SetTrainingInputMode(value); return *this;}
150
152
155 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
156 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
157 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
158 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
159 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
160 inline Algorithm& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
161 inline Algorithm& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
162 inline Algorithm& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
170 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
171 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
172 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
173 inline Algorithm& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
174 inline Algorithm& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
182 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
183 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
184 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
186 inline Algorithm& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
188 private:
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::String m_algorithmArn;
194 bool m_algorithmArnHasBeenSet = false;
195
196 AlgorithmImage m_algorithmImage;
197 bool m_algorithmImageHasBeenSet = false;
198
199 Aws::Map<Aws::String, Aws::String> m_defaultHyperParameters;
200 bool m_defaultHyperParametersHasBeenSet = false;
201
202 DefaultHyperParameterRanges m_defaultHyperParameterRanges;
203 bool m_defaultHyperParameterRangesHasBeenSet = false;
204
205 Aws::Map<Aws::String, Aws::String> m_defaultResourceConfig;
206 bool m_defaultResourceConfigHasBeenSet = false;
207
208 Aws::String m_trainingInputMode;
209 bool m_trainingInputModeHasBeenSet = false;
210
211 Aws::String m_roleArn;
212 bool m_roleArnHasBeenSet = false;
213
214 Aws::Utils::DateTime m_creationDateTime;
215 bool m_creationDateTimeHasBeenSet = false;
216
217 Aws::Utils::DateTime m_lastUpdatedDateTime;
218 bool m_lastUpdatedDateTimeHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Personalize
223} // namespace Aws
void SetDefaultHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Algorithm.h:91
Algorithm & WithRoleArn(Aws::String &&value)
Definition Algorithm.h:161
const Aws::String & GetName() const
Definition Algorithm.h:48
Algorithm & AddDefaultHyperParameters(Aws::String &&key, const char *value)
Definition Algorithm.h:99
Algorithm & WithAlgorithmArn(Aws::String &&value)
Definition Algorithm.h:68
Algorithm & WithTrainingInputMode(Aws::String &&value)
Definition Algorithm.h:147
bool DefaultResourceConfigHasBeenSet() const
Definition Algorithm.h:123
void SetName(const char *value)
Definition Algorithm.h:52
Algorithm & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition Algorithm.h:186
void SetDefaultResourceConfig(Aws::Map< Aws::String, Aws::String > &&value)
Definition Algorithm.h:125
Algorithm & WithAlgorithmImage(const AlgorithmImage &value)
Definition Algorithm.h:80
Algorithm & AddDefaultHyperParameters(const char *key, Aws::String &&value)
Definition Algorithm.h:98
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Algorithm.h:169
void SetName(Aws::String &&value)
Definition Algorithm.h:51
Algorithm & WithDefaultHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Algorithm.h:93
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition Algorithm.h:171
Algorithm & WithAlgorithmArn(const Aws::String &value)
Definition Algorithm.h:67
Algorithm & AddDefaultResourceConfig(Aws::String &&key, const Aws::String &value)
Definition Algorithm.h:129
Algorithm & WithRoleArn(const char *value)
Definition Algorithm.h:162
Algorithm & AddDefaultHyperParameters(Aws::String &&key, Aws::String &&value)
Definition Algorithm.h:97
AWS_PERSONALIZE_API Algorithm()
Algorithm & WithName(Aws::String &&value)
Definition Algorithm.h:54
const Aws::Map< Aws::String, Aws::String > & GetDefaultHyperParameters() const
Definition Algorithm.h:88
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition Algorithm.h:172
void SetRoleArn(const Aws::String &value)
Definition Algorithm.h:157
void SetRoleArn(const char *value)
Definition Algorithm.h:159
void SetDefaultHyperParameterRanges(DefaultHyperParameterRanges &&value)
Definition Algorithm.h:112
bool DefaultHyperParameterRangesHasBeenSet() const
Definition Algorithm.h:110
Algorithm & AddDefaultResourceConfig(const Aws::String &key, const Aws::String &value)
Definition Algorithm.h:128
Algorithm & AddDefaultResourceConfig(const Aws::String &key, Aws::String &&value)
Definition Algorithm.h:130
Algorithm & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition Algorithm.h:174
void SetTrainingInputMode(Aws::String &&value)
Definition Algorithm.h:144
void SetRoleArn(Aws::String &&value)
Definition Algorithm.h:158
bool DefaultHyperParametersHasBeenSet() const
Definition Algorithm.h:89
Algorithm & AddDefaultHyperParameters(const Aws::String &key, const Aws::String &value)
Definition Algorithm.h:94
void SetName(const Aws::String &value)
Definition Algorithm.h:50
void SetDefaultResourceConfig(const Aws::Map< Aws::String, Aws::String > &value)
Definition Algorithm.h:124
const Aws::String & GetAlgorithmArn() const
Definition Algorithm.h:62
Algorithm & WithRoleArn(const Aws::String &value)
Definition Algorithm.h:160
Algorithm & WithName(const Aws::String &value)
Definition Algorithm.h:53
Algorithm & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition Algorithm.h:185
Algorithm & AddDefaultHyperParameters(const char *key, const char *value)
Definition Algorithm.h:100
const AlgorithmImage & GetAlgorithmImage() const
Definition Algorithm.h:76
Algorithm & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition Algorithm.h:173
void SetAlgorithmArn(Aws::String &&value)
Definition Algorithm.h:65
const Aws::Map< Aws::String, Aws::String > & GetDefaultResourceConfig() const
Definition Algorithm.h:122
void SetTrainingInputMode(const Aws::String &value)
Definition Algorithm.h:143
AWS_PERSONALIZE_API Algorithm(Aws::Utils::Json::JsonView jsonValue)
Algorithm & WithName(const char *value)
Definition Algorithm.h:55
Algorithm & WithTrainingInputMode(const char *value)
Definition Algorithm.h:148
void SetAlgorithmImage(AlgorithmImage &&value)
Definition Algorithm.h:79
Algorithm & AddDefaultResourceConfig(const char *key, const char *value)
Definition Algorithm.h:134
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition Algorithm.h:184
Algorithm & WithAlgorithmArn(const char *value)
Definition Algorithm.h:69
Algorithm & AddDefaultHyperParameters(const Aws::String &key, Aws::String &&value)
Definition Algorithm.h:96
AWS_PERSONALIZE_API Algorithm & operator=(Aws::Utils::Json::JsonView jsonValue)
Algorithm & WithDefaultResourceConfig(const Aws::Map< Aws::String, Aws::String > &value)
Definition Algorithm.h:126
Algorithm & WithDefaultHyperParameterRanges(const DefaultHyperParameterRanges &value)
Definition Algorithm.h:113
Algorithm & AddDefaultResourceConfig(const char *key, Aws::String &&value)
Definition Algorithm.h:132
Algorithm & AddDefaultResourceConfig(Aws::String &&key, Aws::String &&value)
Definition Algorithm.h:131
Algorithm & AddDefaultHyperParameters(Aws::String &&key, const Aws::String &value)
Definition Algorithm.h:95
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
Algorithm & WithTrainingInputMode(const Aws::String &value)
Definition Algorithm.h:146
const Aws::String & GetTrainingInputMode() const
Definition Algorithm.h:141
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Algorithm.h:181
const DefaultHyperParameterRanges & GetDefaultHyperParameterRanges() const
Definition Algorithm.h:109
void SetAlgorithmImage(const AlgorithmImage &value)
Definition Algorithm.h:78
void SetAlgorithmArn(const char *value)
Definition Algorithm.h:66
Algorithm & AddDefaultResourceConfig(Aws::String &&key, const char *value)
Definition Algorithm.h:133
Algorithm & WithDefaultHyperParameterRanges(DefaultHyperParameterRanges &&value)
Definition Algorithm.h:114
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition Algorithm.h:183
void SetDefaultHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Algorithm.h:90
Algorithm & WithAlgorithmImage(AlgorithmImage &&value)
Definition Algorithm.h:81
void SetDefaultHyperParameterRanges(const DefaultHyperParameterRanges &value)
Definition Algorithm.h:111
void SetTrainingInputMode(const char *value)
Definition Algorithm.h:145
void SetAlgorithmArn(const Aws::String &value)
Definition Algorithm.h:64
Algorithm & WithDefaultResourceConfig(Aws::Map< Aws::String, Aws::String > &&value)
Definition Algorithm.h:127
Algorithm & WithDefaultHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Algorithm.h:92
const Aws::String & GetRoleArn() const
Definition Algorithm.h:155
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