AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRecommenderRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/RecommenderConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateRecommenderRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRecommender"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateRecommenderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateRecommenderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateRecommenderRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
60 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
61 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
62 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
63 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
64 inline CreateRecommenderRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
65 inline CreateRecommenderRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
66 inline CreateRecommenderRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
68
70
78 inline const Aws::String& GetRecipeArn() const{ return m_recipeArn; }
79 inline bool RecipeArnHasBeenSet() const { return m_recipeArnHasBeenSet; }
80 inline void SetRecipeArn(const Aws::String& value) { m_recipeArnHasBeenSet = true; m_recipeArn = value; }
81 inline void SetRecipeArn(Aws::String&& value) { m_recipeArnHasBeenSet = true; m_recipeArn = std::move(value); }
82 inline void SetRecipeArn(const char* value) { m_recipeArnHasBeenSet = true; m_recipeArn.assign(value); }
83 inline CreateRecommenderRequest& WithRecipeArn(const Aws::String& value) { SetRecipeArn(value); return *this;}
84 inline CreateRecommenderRequest& WithRecipeArn(Aws::String&& value) { SetRecipeArn(std::move(value)); return *this;}
85 inline CreateRecommenderRequest& WithRecipeArn(const char* value) { SetRecipeArn(value); return *this;}
87
89
92 inline const RecommenderConfig& GetRecommenderConfig() const{ return m_recommenderConfig; }
93 inline bool RecommenderConfigHasBeenSet() const { return m_recommenderConfigHasBeenSet; }
94 inline void SetRecommenderConfig(const RecommenderConfig& value) { m_recommenderConfigHasBeenSet = true; m_recommenderConfig = value; }
95 inline void SetRecommenderConfig(RecommenderConfig&& value) { m_recommenderConfigHasBeenSet = true; m_recommenderConfig = std::move(value); }
97 inline CreateRecommenderRequest& WithRecommenderConfig(RecommenderConfig&& value) { SetRecommenderConfig(std::move(value)); return *this;}
99
101
106 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreateRecommenderRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
111 inline CreateRecommenderRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
112 inline CreateRecommenderRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
113 inline CreateRecommenderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_datasetGroupArn;
121 bool m_datasetGroupArnHasBeenSet = false;
122
123 Aws::String m_recipeArn;
124 bool m_recipeArnHasBeenSet = false;
125
126 RecommenderConfig m_recommenderConfig;
127 bool m_recommenderConfigHasBeenSet = false;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_tagsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Personalize
135} // namespace Aws
CreateRecommenderRequest & WithRecommenderConfig(const RecommenderConfig &value)
void SetRecommenderConfig(const RecommenderConfig &value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateRecommenderRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRecommenderRequest & WithDatasetGroupArn(const char *value)
CreateRecommenderRequest & WithDatasetGroupArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateRecommenderRequest & WithName(Aws::String &&value)
CreateRecommenderRequest & WithRecipeArn(Aws::String &&value)
CreateRecommenderRequest & AddTags(const Tag &value)
CreateRecommenderRequest & WithName(const Aws::String &value)
CreateRecommenderRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRecommenderRequest & WithDatasetGroupArn(const Aws::String &value)
CreateRecommenderRequest & WithRecommenderConfig(RecommenderConfig &&value)
CreateRecommenderRequest & WithRecipeArn(const Aws::String &value)
CreateRecommenderRequest & WithRecipeArn(const char *value)
CreateRecommenderRequest & WithName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector