AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Recipe.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Personalize {
21namespace Model {
22
31class Recipe {
32 public:
33 AWS_PERSONALIZE_API Recipe() = default;
34 AWS_PERSONALIZE_API Recipe(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API Recipe& 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 Recipe& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRecipeArn() const { return m_recipeArn; }
61 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
62 template <typename RecipeArnT = Aws::String>
63 void SetRecipeArn(RecipeArnT&& value) {
64 m_recipeArnHasBeenSet = true;
65 m_recipeArn = std::forward<RecipeArnT>(value);
66 }
67 template <typename RecipeArnT = Aws::String>
68 Recipe& WithRecipeArn(RecipeArnT&& value) {
69 SetRecipeArn(std::forward<RecipeArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetAlgorithmArn() const { return m_algorithmArn; }
80 inline bool AlgorithmArnHasBeenSet() const { return m_algorithmArnHasBeenSet; }
81 template <typename AlgorithmArnT = Aws::String>
82 void SetAlgorithmArn(AlgorithmArnT&& value) {
83 m_algorithmArnHasBeenSet = true;
84 m_algorithmArn = std::forward<AlgorithmArnT>(value);
85 }
86 template <typename AlgorithmArnT = Aws::String>
87 Recipe& WithAlgorithmArn(AlgorithmArnT&& value) {
88 SetAlgorithmArn(std::forward<AlgorithmArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetFeatureTransformationArn() const { return m_featureTransformationArn; }
98 inline bool FeatureTransformationArnHasBeenSet() const { return m_featureTransformationArnHasBeenSet; }
99 template <typename FeatureTransformationArnT = Aws::String>
100 void SetFeatureTransformationArn(FeatureTransformationArnT&& value) {
101 m_featureTransformationArnHasBeenSet = true;
102 m_featureTransformationArn = std::forward<FeatureTransformationArnT>(value);
103 }
104 template <typename FeatureTransformationArnT = Aws::String>
105 Recipe& WithFeatureTransformationArn(FeatureTransformationArnT&& value) {
106 SetFeatureTransformationArn(std::forward<FeatureTransformationArnT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 template <typename StatusT = Aws::String>
118 void SetStatus(StatusT&& value) {
119 m_statusHasBeenSet = true;
120 m_status = std::forward<StatusT>(value);
121 }
122 template <typename StatusT = Aws::String>
123 Recipe& WithStatus(StatusT&& value) {
124 SetStatus(std::forward<StatusT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDescription() const { return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 template <typename DescriptionT = Aws::String>
136 void SetDescription(DescriptionT&& value) {
137 m_descriptionHasBeenSet = true;
138 m_description = std::forward<DescriptionT>(value);
139 }
140 template <typename DescriptionT = Aws::String>
141 Recipe& WithDescription(DescriptionT&& value) {
142 SetDescription(std::forward<DescriptionT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
152 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
153 template <typename CreationDateTimeT = Aws::Utils::DateTime>
154 void SetCreationDateTime(CreationDateTimeT&& value) {
155 m_creationDateTimeHasBeenSet = true;
156 m_creationDateTime = std::forward<CreationDateTimeT>(value);
157 }
158 template <typename CreationDateTimeT = Aws::Utils::DateTime>
159 Recipe& WithCreationDateTime(CreationDateTimeT&& value) {
160 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetRecipeType() const { return m_recipeType; }
171 inline bool RecipeTypeHasBeenSet() const { return m_recipeTypeHasBeenSet; }
172 template <typename RecipeTypeT = Aws::String>
173 void SetRecipeType(RecipeTypeT&& value) {
174 m_recipeTypeHasBeenSet = true;
175 m_recipeType = std::forward<RecipeTypeT>(value);
176 }
177 template <typename RecipeTypeT = Aws::String>
178 Recipe& WithRecipeType(RecipeTypeT&& value) {
179 SetRecipeType(std::forward<RecipeTypeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
189 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
190 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
191 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
192 m_lastUpdatedDateTimeHasBeenSet = true;
193 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
194 }
195 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
196 Recipe& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
197 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_name;
203
204 Aws::String m_recipeArn;
205
206 Aws::String m_algorithmArn;
207
208 Aws::String m_featureTransformationArn;
209
210 Aws::String m_status;
211
212 Aws::String m_description;
213
214 Aws::Utils::DateTime m_creationDateTime{};
215
216 Aws::String m_recipeType;
217
218 Aws::Utils::DateTime m_lastUpdatedDateTime{};
219 bool m_nameHasBeenSet = false;
220 bool m_recipeArnHasBeenSet = false;
221 bool m_algorithmArnHasBeenSet = false;
222 bool m_featureTransformationArnHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_descriptionHasBeenSet = false;
225 bool m_creationDateTimeHasBeenSet = false;
226 bool m_recipeTypeHasBeenSet = false;
227 bool m_lastUpdatedDateTimeHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace Personalize
232} // namespace Aws
AWS_PERSONALIZE_API Recipe & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Recipe.h:42
const Aws::String & GetAlgorithmArn() const
Definition Recipe.h:79
bool FeatureTransformationArnHasBeenSet() const
Definition Recipe.h:98
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Recipe.h:154
Recipe & WithDescription(DescriptionT &&value)
Definition Recipe.h:141
Recipe & WithAlgorithmArn(AlgorithmArnT &&value)
Definition Recipe.h:87
void SetDescription(DescriptionT &&value)
Definition Recipe.h:136
bool RecipeArnHasBeenSet() const
Definition Recipe.h:61
bool LastUpdatedDateTimeHasBeenSet() const
Definition Recipe.h:189
bool CreationDateTimeHasBeenSet() const
Definition Recipe.h:152
const Aws::String & GetDescription() const
Definition Recipe.h:133
const Aws::String & GetRecipeType() const
Definition Recipe.h:170
void SetAlgorithmArn(AlgorithmArnT &&value)
Definition Recipe.h:82
AWS_PERSONALIZE_API Recipe()=default
void SetStatus(StatusT &&value)
Definition Recipe.h:118
Recipe & WithRecipeType(RecipeTypeT &&value)
Definition Recipe.h:178
void SetRecipeArn(RecipeArnT &&value)
Definition Recipe.h:63
Recipe & WithFeatureTransformationArn(FeatureTransformationArnT &&value)
Definition Recipe.h:105
void SetFeatureTransformationArn(FeatureTransformationArnT &&value)
Definition Recipe.h:100
const Aws::String & GetStatus() const
Definition Recipe.h:115
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Recipe.h:188
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRecipeType(RecipeTypeT &&value)
Definition Recipe.h:173
const Aws::String & GetFeatureTransformationArn() const
Definition Recipe.h:97
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Recipe.h:151
AWS_PERSONALIZE_API Recipe(Aws::Utils::Json::JsonView jsonValue)
Recipe & WithStatus(StatusT &&value)
Definition Recipe.h:123
void SetName(NameT &&value)
Definition Recipe.h:45
Recipe & WithCreationDateTime(CreationDateTimeT &&value)
Definition Recipe.h:159
bool RecipeTypeHasBeenSet() const
Definition Recipe.h:171
Recipe & WithRecipeArn(RecipeArnT &&value)
Definition Recipe.h:68
bool DescriptionHasBeenSet() const
Definition Recipe.h:134
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Recipe.h:191
const Aws::String & GetRecipeArn() const
Definition Recipe.h:60
Recipe & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Recipe.h:196
bool AlgorithmArnHasBeenSet() const
Definition Recipe.h:80
Recipe & WithName(NameT &&value)
Definition Recipe.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue