AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Recommender.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/RecommenderConfig.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/personalize/model/RecommenderUpdateSummary.h>
12#include <aws/core/utils/memory/stl/AWSMap.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
40 {
41 public:
42 AWS_PERSONALIZE_API Recommender();
43 AWS_PERSONALIZE_API Recommender(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PERSONALIZE_API Recommender& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetRecommenderArn() const{ return m_recommenderArn; }
53 inline bool RecommenderArnHasBeenSet() const { return m_recommenderArnHasBeenSet; }
54 inline void SetRecommenderArn(const Aws::String& value) { m_recommenderArnHasBeenSet = true; m_recommenderArn = value; }
55 inline void SetRecommenderArn(Aws::String&& value) { m_recommenderArnHasBeenSet = true; m_recommenderArn = std::move(value); }
56 inline void SetRecommenderArn(const char* value) { m_recommenderArnHasBeenSet = true; m_recommenderArn.assign(value); }
57 inline Recommender& WithRecommenderArn(const Aws::String& value) { SetRecommenderArn(value); return *this;}
58 inline Recommender& WithRecommenderArn(Aws::String&& value) { SetRecommenderArn(std::move(value)); return *this;}
59 inline Recommender& WithRecommenderArn(const char* value) { SetRecommenderArn(value); return *this;}
61
63
67 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
68 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
69 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
70 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
71 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
72 inline Recommender& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
73 inline Recommender& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
74 inline Recommender& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline Recommender& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline Recommender& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline Recommender& WithName(const char* value) { SetName(value); return *this;}
90
92
96 inline const Aws::String& GetRecipeArn() const{ return m_recipeArn; }
97 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
98 inline void SetRecipeArn(const Aws::String& value) { m_recipeArnHasBeenSet = true; m_recipeArn = value; }
99 inline void SetRecipeArn(Aws::String&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::move(value); }
100 inline void SetRecipeArn(const char* value) { m_recipeArnHasBeenSet = true; m_recipeArn.assign(value); }
101 inline Recommender& WithRecipeArn(const Aws::String& value) { SetRecipeArn(value); return *this;}
102 inline Recommender& WithRecipeArn(Aws::String&& value) { SetRecipeArn(std::move(value)); return *this;}
103 inline Recommender& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;}
105
107
110 inline const RecommenderConfig& GetRecommenderConfig() const{ return m_recommenderConfig; }
111 inline bool RecommenderConfigHasBeenSet() const { return m_recommenderConfigHasBeenSet; }
112 inline void SetRecommenderConfig(const RecommenderConfig& value) { m_recommenderConfigHasBeenSet = true; m_recommenderConfig = value; }
113 inline void SetRecommenderConfig(RecommenderConfig&& value) { m_recommenderConfigHasBeenSet = true; m_recommenderConfig = std::move(value); }
114 inline Recommender& WithRecommenderConfig(const RecommenderConfig& value) { SetRecommenderConfig(value); return *this;}
115 inline Recommender& WithRecommenderConfig(RecommenderConfig&& value) { SetRecommenderConfig(std::move(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
123 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
124 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
125 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
126 inline Recommender& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
127 inline Recommender& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
135 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
136 inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
137 inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
139 inline Recommender& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
141
143
150 inline const Aws::String& GetStatus() const{ return m_status; }
151 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
152 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
153 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
154 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
155 inline Recommender& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
156 inline Recommender& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
157 inline Recommender& WithStatus(const char* value) { SetStatus(value); return *this;}
159
161
164 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
165 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
166 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
167 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
168 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
169 inline Recommender& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
170 inline Recommender& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
171 inline Recommender& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
173
175
178 inline const RecommenderUpdateSummary& GetLatestRecommenderUpdate() const{ return m_latestRecommenderUpdate; }
179 inline bool LatestRecommenderUpdateHasBeenSet() const { return m_latestRecommenderUpdateHasBeenSet; }
180 inline void SetLatestRecommenderUpdate(const RecommenderUpdateSummary& value) { m_latestRecommenderUpdateHasBeenSet = true; m_latestRecommenderUpdate = value; }
181 inline void SetLatestRecommenderUpdate(RecommenderUpdateSummary&& value) { m_latestRecommenderUpdateHasBeenSet = true; m_latestRecommenderUpdate = std::move(value); }
185
187
193 inline const Aws::Map<Aws::String, double>& GetModelMetrics() const{ return m_modelMetrics; }
194 inline bool ModelMetricsHasBeenSet() const { return m_modelMetricsHasBeenSet; }
195 inline void SetModelMetrics(const Aws::Map<Aws::String, double>& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics = value; }
196 inline void SetModelMetrics(Aws::Map<Aws::String, double>&& value) { m_modelMetricsHasBeenSet = true; m_modelMetrics = std::move(value); }
197 inline Recommender& WithModelMetrics(const Aws::Map<Aws::String, double>& value) { SetModelMetrics(value); return *this;}
198 inline Recommender& WithModelMetrics(Aws::Map<Aws::String, double>&& value) { SetModelMetrics(std::move(value)); return *this;}
199 inline Recommender& AddModelMetrics(const Aws::String& key, double value) { m_modelMetricsHasBeenSet = true; m_modelMetrics.emplace(key, value); return *this; }
200 inline Recommender& AddModelMetrics(Aws::String&& key, double value) { m_modelMetricsHasBeenSet = true; m_modelMetrics.emplace(std::move(key), value); return *this; }
201 inline Recommender& AddModelMetrics(const char* key, double value) { m_modelMetricsHasBeenSet = true; m_modelMetrics.emplace(key, value); return *this; }
203 private:
204
205 Aws::String m_recommenderArn;
206 bool m_recommenderArnHasBeenSet = false;
207
208 Aws::String m_datasetGroupArn;
209 bool m_datasetGroupArnHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_recipeArn;
215 bool m_recipeArnHasBeenSet = false;
216
217 RecommenderConfig m_recommenderConfig;
218 bool m_recommenderConfigHasBeenSet = false;
219
220 Aws::Utils::DateTime m_creationDateTime;
221 bool m_creationDateTimeHasBeenSet = false;
222
223 Aws::Utils::DateTime m_lastUpdatedDateTime;
224 bool m_lastUpdatedDateTimeHasBeenSet = false;
225
226 Aws::String m_status;
227 bool m_statusHasBeenSet = false;
228
229 Aws::String m_failureReason;
230 bool m_failureReasonHasBeenSet = false;
231
232 RecommenderUpdateSummary m_latestRecommenderUpdate;
233 bool m_latestRecommenderUpdateHasBeenSet = false;
234
235 Aws::Map<Aws::String, double> m_modelMetrics;
236 bool m_modelMetricsHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace Personalize
241} // namespace Aws
Recommender & WithFailureReason(Aws::String &&value)
Recommender & WithRecommenderArn(const Aws::String &value)
Definition Recommender.h:57
Recommender & WithDatasetGroupArn(const char *value)
Definition Recommender.h:74
void SetCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(Aws::String &&value)
Definition Recommender.h:84
Recommender & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Recommender & WithRecommenderArn(const char *value)
Definition Recommender.h:59
Recommender & WithRecommenderConfig(const RecommenderConfig &value)
void SetRecipeArn(Aws::String &&value)
Definition Recommender.h:99
void SetFailureReason(const Aws::String &value)
void SetRecommenderArn(Aws::String &&value)
Definition Recommender.h:55
const Aws::String & GetRecommenderArn() const
Definition Recommender.h:52
void SetRecipeArn(const char *value)
Recommender & WithStatus(const char *value)
Recommender & WithLatestRecommenderUpdate(const RecommenderUpdateSummary &value)
Recommender & WithStatus(const Aws::String &value)
Recommender & WithDatasetGroupArn(const Aws::String &value)
Definition Recommender.h:72
Recommender & WithDatasetGroupArn(Aws::String &&value)
Definition Recommender.h:73
void SetStatus(Aws::String &&value)
Recommender & WithModelMetrics(Aws::Map< Aws::String, double > &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDatasetGroupArn(Aws::String &&value)
Definition Recommender.h:70
AWS_PERSONALIZE_API Recommender()
const RecommenderConfig & GetRecommenderConfig() const
Recommender & WithFailureReason(const Aws::String &value)
const Aws::String & GetStatus() const
void SetModelMetrics(Aws::Map< Aws::String, double > &&value)
Recommender & WithRecipeArn(Aws::String &&value)
Recommender & WithFailureReason(const char *value)
const RecommenderUpdateSummary & GetLatestRecommenderUpdate() const
AWS_PERSONALIZE_API Recommender(Aws::Utils::Json::JsonView jsonValue)
Recommender & WithCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(const char *value)
Definition Recommender.h:85
void SetModelMetrics(const Aws::Map< Aws::String, double > &value)
void SetDatasetGroupArn(const char *value)
Definition Recommender.h:71
void SetRecommenderConfig(const RecommenderConfig &value)
Recommender & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
void SetRecommenderArn(const Aws::String &value)
Definition Recommender.h:54
const Aws::String & GetDatasetGroupArn() const
Definition Recommender.h:67
void SetDatasetGroupArn(const Aws::String &value)
Definition Recommender.h:69
Recommender & WithName(const char *value)
Definition Recommender.h:88
const Aws::Utils::DateTime & GetCreationDateTime() const
Recommender & WithName(Aws::String &&value)
Definition Recommender.h:87
void SetStatus(const char *value)
Recommender & AddModelMetrics(const char *key, double value)
Recommender & WithLatestRecommenderUpdate(RecommenderUpdateSummary &&value)
void SetName(const Aws::String &value)
Definition Recommender.h:83
void SetRecommenderConfig(RecommenderConfig &&value)
Recommender & WithCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetFailureReason() const
Recommender & AddModelMetrics(Aws::String &&key, double value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Recommender & WithModelMetrics(const Aws::Map< Aws::String, double > &value)
const Aws::String & GetRecipeArn() const
Definition Recommender.h:96
void SetLatestRecommenderUpdate(const RecommenderUpdateSummary &value)
void SetFailureReason(const char *value)
Recommender & WithRecommenderArn(Aws::String &&value)
Definition Recommender.h:58
Recommender & WithStatus(Aws::String &&value)
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
AWS_PERSONALIZE_API Recommender & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, double > & GetModelMetrics() const
void SetLatestRecommenderUpdate(RecommenderUpdateSummary &&value)
void SetRecommenderArn(const char *value)
Definition Recommender.h:56
void SetStatus(const Aws::String &value)
void SetRecipeArn(const Aws::String &value)
Definition Recommender.h:98
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Recommender & WithRecipeArn(const Aws::String &value)
Recommender & AddModelMetrics(const Aws::String &key, double value)
Recommender & WithRecommenderConfig(RecommenderConfig &&value)
Recommender & WithName(const Aws::String &value)
Definition Recommender.h:86
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
Definition Recommender.h:81
void SetFailureReason(Aws::String &&value)
Recommender & WithRecipeArn(const char *value)
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