AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AutoMLConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.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
33 public:
34 AWS_PERSONALIZE_API AutoMLConfig() = default;
35 AWS_PERSONALIZE_API AutoMLConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PERSONALIZE_API AutoMLConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMetricName() const { return m_metricName; }
44 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
45 template <typename MetricNameT = Aws::String>
46 void SetMetricName(MetricNameT&& value) {
47 m_metricNameHasBeenSet = true;
48 m_metricName = std::forward<MetricNameT>(value);
49 }
50 template <typename MetricNameT = Aws::String>
51 AutoMLConfig& WithMetricName(MetricNameT&& value) {
52 SetMetricName(std::forward<MetricNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetRecipeList() const { return m_recipeList; }
62 inline bool RecipeListHasBeenSet() const { return m_recipeListHasBeenSet; }
63 template <typename RecipeListT = Aws::Vector<Aws::String>>
64 void SetRecipeList(RecipeListT&& value) {
65 m_recipeListHasBeenSet = true;
66 m_recipeList = std::forward<RecipeListT>(value);
67 }
68 template <typename RecipeListT = Aws::Vector<Aws::String>>
69 AutoMLConfig& WithRecipeList(RecipeListT&& value) {
70 SetRecipeList(std::forward<RecipeListT>(value));
71 return *this;
72 }
73 template <typename RecipeListT = Aws::String>
74 AutoMLConfig& AddRecipeList(RecipeListT&& value) {
75 m_recipeListHasBeenSet = true;
76 m_recipeList.emplace_back(std::forward<RecipeListT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_metricName;
82
83 Aws::Vector<Aws::String> m_recipeList;
84 bool m_metricNameHasBeenSet = false;
85 bool m_recipeListHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Personalize
90} // namespace Aws
void SetRecipeList(RecipeListT &&value)
const Aws::Vector< Aws::String > & GetRecipeList() const
AutoMLConfig & AddRecipeList(RecipeListT &&value)
void SetMetricName(MetricNameT &&value)
AutoMLConfig & WithRecipeList(RecipeListT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PERSONALIZE_API AutoMLConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API AutoMLConfig()=default
AutoMLConfig & WithMetricName(MetricNameT &&value)
const Aws::String & GetMetricName() const
AWS_PERSONALIZE_API AutoMLConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue