AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 Algorithm& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_algorithmArnHasBeenSet = true; m_algorithmArn = std::forward<AlgorithmArnT>(value); }
64 template<typename AlgorithmArnT = Aws::String>
65 Algorithm& WithAlgorithmArn(AlgorithmArnT&& value) { SetAlgorithmArn(std::forward<AlgorithmArnT>(value)); return *this;}
67
69
72 inline const AlgorithmImage& GetAlgorithmImage() const { return m_algorithmImage; }
73 inline bool AlgorithmImageHasBeenSet() const { return m_algorithmImageHasBeenSet; }
74 template<typename AlgorithmImageT = AlgorithmImage>
75 void SetAlgorithmImage(AlgorithmImageT&& value) { m_algorithmImageHasBeenSet = true; m_algorithmImage = std::forward<AlgorithmImageT>(value); }
76 template<typename AlgorithmImageT = AlgorithmImage>
77 Algorithm& WithAlgorithmImage(AlgorithmImageT&& value) { SetAlgorithmImage(std::forward<AlgorithmImageT>(value)); return *this;}
79
81
84 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultHyperParameters() const { return m_defaultHyperParameters; }
85 inline bool DefaultHyperParametersHasBeenSet() const { return m_defaultHyperParametersHasBeenSet; }
86 template<typename DefaultHyperParametersT = Aws::Map<Aws::String, Aws::String>>
87 void SetDefaultHyperParameters(DefaultHyperParametersT&& value) { m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters = std::forward<DefaultHyperParametersT>(value); }
88 template<typename DefaultHyperParametersT = Aws::Map<Aws::String, Aws::String>>
89 Algorithm& WithDefaultHyperParameters(DefaultHyperParametersT&& value) { SetDefaultHyperParameters(std::forward<DefaultHyperParametersT>(value)); return *this;}
90 template<typename DefaultHyperParametersKeyT = Aws::String, typename DefaultHyperParametersValueT = Aws::String>
91 Algorithm& AddDefaultHyperParameters(DefaultHyperParametersKeyT&& key, DefaultHyperParametersValueT&& value) {
92 m_defaultHyperParametersHasBeenSet = true; m_defaultHyperParameters.emplace(std::forward<DefaultHyperParametersKeyT>(key), std::forward<DefaultHyperParametersValueT>(value)); return *this;
93 }
95
97
102 inline const DefaultHyperParameterRanges& GetDefaultHyperParameterRanges() const { return m_defaultHyperParameterRanges; }
103 inline bool DefaultHyperParameterRangesHasBeenSet() const { return m_defaultHyperParameterRangesHasBeenSet; }
104 template<typename DefaultHyperParameterRangesT = DefaultHyperParameterRanges>
105 void SetDefaultHyperParameterRanges(DefaultHyperParameterRangesT&& value) { m_defaultHyperParameterRangesHasBeenSet = true; m_defaultHyperParameterRanges = std::forward<DefaultHyperParameterRangesT>(value); }
106 template<typename DefaultHyperParameterRangesT = DefaultHyperParameterRanges>
107 Algorithm& WithDefaultHyperParameterRanges(DefaultHyperParameterRangesT&& value) { SetDefaultHyperParameterRanges(std::forward<DefaultHyperParameterRangesT>(value)); return *this;}
109
111
115 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultResourceConfig() const { return m_defaultResourceConfig; }
116 inline bool DefaultResourceConfigHasBeenSet() const { return m_defaultResourceConfigHasBeenSet; }
117 template<typename DefaultResourceConfigT = Aws::Map<Aws::String, Aws::String>>
118 void SetDefaultResourceConfig(DefaultResourceConfigT&& value) { m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig = std::forward<DefaultResourceConfigT>(value); }
119 template<typename DefaultResourceConfigT = Aws::Map<Aws::String, Aws::String>>
120 Algorithm& WithDefaultResourceConfig(DefaultResourceConfigT&& value) { SetDefaultResourceConfig(std::forward<DefaultResourceConfigT>(value)); return *this;}
121 template<typename DefaultResourceConfigKeyT = Aws::String, typename DefaultResourceConfigValueT = Aws::String>
122 Algorithm& AddDefaultResourceConfig(DefaultResourceConfigKeyT&& key, DefaultResourceConfigValueT&& value) {
123 m_defaultResourceConfigHasBeenSet = true; m_defaultResourceConfig.emplace(std::forward<DefaultResourceConfigKeyT>(key), std::forward<DefaultResourceConfigValueT>(value)); return *this;
124 }
126
128
131 inline const Aws::String& GetTrainingInputMode() const { return m_trainingInputMode; }
132 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
133 template<typename TrainingInputModeT = Aws::String>
134 void SetTrainingInputMode(TrainingInputModeT&& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = std::forward<TrainingInputModeT>(value); }
135 template<typename TrainingInputModeT = Aws::String>
136 Algorithm& WithTrainingInputMode(TrainingInputModeT&& value) { SetTrainingInputMode(std::forward<TrainingInputModeT>(value)); return *this;}
138
140
143 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
144 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
145 template<typename RoleArnT = Aws::String>
146 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
147 template<typename RoleArnT = Aws::String>
148 Algorithm& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
156 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
157 template<typename CreationDateTimeT = Aws::Utils::DateTime>
158 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
159 template<typename CreationDateTimeT = Aws::Utils::DateTime>
160 Algorithm& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
168 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
169 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
170 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
171 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
172 Algorithm& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
174 private:
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_algorithmArn;
180 bool m_algorithmArnHasBeenSet = false;
181
182 AlgorithmImage m_algorithmImage;
183 bool m_algorithmImageHasBeenSet = false;
184
185 Aws::Map<Aws::String, Aws::String> m_defaultHyperParameters;
186 bool m_defaultHyperParametersHasBeenSet = false;
187
188 DefaultHyperParameterRanges m_defaultHyperParameterRanges;
189 bool m_defaultHyperParameterRangesHasBeenSet = false;
190
191 Aws::Map<Aws::String, Aws::String> m_defaultResourceConfig;
192 bool m_defaultResourceConfigHasBeenSet = false;
193
194 Aws::String m_trainingInputMode;
195 bool m_trainingInputModeHasBeenSet = false;
196
197 Aws::String m_roleArn;
198 bool m_roleArnHasBeenSet = false;
199
200 Aws::Utils::DateTime m_creationDateTime{};
201 bool m_creationDateTimeHasBeenSet = false;
202
203 Aws::Utils::DateTime m_lastUpdatedDateTime{};
204 bool m_lastUpdatedDateTimeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Personalize
209} // namespace Aws
Algorithm & WithDefaultHyperParameterRanges(DefaultHyperParameterRangesT &&value)
Definition Algorithm.h:107
const Aws::String & GetName() const
Definition Algorithm.h:48
bool DefaultResourceConfigHasBeenSet() const
Definition Algorithm.h:116
void SetDefaultResourceConfig(DefaultResourceConfigT &&value)
Definition Algorithm.h:118
Algorithm & WithAlgorithmImage(AlgorithmImageT &&value)
Definition Algorithm.h:77
void SetDefaultHyperParameters(DefaultHyperParametersT &&value)
Definition Algorithm.h:87
void SetAlgorithmArn(AlgorithmArnT &&value)
Definition Algorithm.h:63
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Algorithm.h:155
Algorithm & AddDefaultHyperParameters(DefaultHyperParametersKeyT &&key, DefaultHyperParametersValueT &&value)
Definition Algorithm.h:91
void SetTrainingInputMode(TrainingInputModeT &&value)
Definition Algorithm.h:134
void SetDefaultHyperParameterRanges(DefaultHyperParameterRangesT &&value)
Definition Algorithm.h:105
Algorithm & WithCreationDateTime(CreationDateTimeT &&value)
Definition Algorithm.h:160
const Aws::Map< Aws::String, Aws::String > & GetDefaultHyperParameters() const
Definition Algorithm.h:84
void SetRoleArn(RoleArnT &&value)
Definition Algorithm.h:146
bool DefaultHyperParameterRangesHasBeenSet() const
Definition Algorithm.h:103
void SetAlgorithmImage(AlgorithmImageT &&value)
Definition Algorithm.h:75
Algorithm & WithDefaultResourceConfig(DefaultResourceConfigT &&value)
Definition Algorithm.h:120
Algorithm & WithAlgorithmArn(AlgorithmArnT &&value)
Definition Algorithm.h:65
bool DefaultHyperParametersHasBeenSet() const
Definition Algorithm.h:85
Algorithm & AddDefaultResourceConfig(DefaultResourceConfigKeyT &&key, DefaultResourceConfigValueT &&value)
Definition Algorithm.h:122
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Algorithm.h:158
const Aws::String & GetAlgorithmArn() const
Definition Algorithm.h:60
const AlgorithmImage & GetAlgorithmImage() const
Definition Algorithm.h:72
void SetName(NameT &&value)
Definition Algorithm.h:51
Algorithm & WithName(NameT &&value)
Definition Algorithm.h:53
const Aws::Map< Aws::String, Aws::String > & GetDefaultResourceConfig() const
Definition Algorithm.h:115
Algorithm & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Algorithm.h:172
AWS_PERSONALIZE_API Algorithm(Aws::Utils::Json::JsonView jsonValue)
Algorithm & WithDefaultHyperParameters(DefaultHyperParametersT &&value)
Definition Algorithm.h:89
Algorithm & WithTrainingInputMode(TrainingInputModeT &&value)
Definition Algorithm.h:136
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:131
AWS_PERSONALIZE_API Algorithm()=default
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Algorithm.h:167
const DefaultHyperParameterRanges & GetDefaultHyperParameterRanges() const
Definition Algorithm.h:102
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Algorithm.h:170
Algorithm & WithRoleArn(RoleArnT &&value)
Definition Algorithm.h:148
const Aws::String & GetRoleArn() const
Definition Algorithm.h:143
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