AWS SDK for C++

AWS SDK for C++ Version 1.11.797

Loading...
Searching...
No Matches
CreateRecommenderSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/customer-profiles/CustomerProfilesRequest.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/RecommenderSchemaField.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CustomerProfiles {
18namespace Model {
19
23 public:
24 AWS_CUSTOMERPROFILES_API CreateRecommenderSchemaRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRecommenderSchema"; }
31
32 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetDomainName() const { return m_domainName; }
39 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
40 template <typename DomainNameT = Aws::String>
41 void SetDomainName(DomainNameT&& value) {
42 m_domainNameHasBeenSet = true;
43 m_domainName = std::forward<DomainNameT>(value);
44 }
45 template <typename DomainNameT = Aws::String>
47 SetDomainName(std::forward<DomainNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetRecommenderSchemaName() const { return m_recommenderSchemaName; }
58 inline bool RecommenderSchemaNameHasBeenSet() const { return m_recommenderSchemaNameHasBeenSet; }
59 template <typename RecommenderSchemaNameT = Aws::String>
60 void SetRecommenderSchemaName(RecommenderSchemaNameT&& value) {
61 m_recommenderSchemaNameHasBeenSet = true;
62 m_recommenderSchemaName = std::forward<RecommenderSchemaNameT>(value);
63 }
64 template <typename RecommenderSchemaNameT = Aws::String>
66 SetRecommenderSchemaName(std::forward<RecommenderSchemaNameT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Map<Aws::String, Aws::Vector<RecommenderSchemaField>>& GetFields() const { return m_fields; }
78 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
79 template <typename FieldsT = Aws::Map<Aws::String, Aws::Vector<RecommenderSchemaField>>>
80 void SetFields(FieldsT&& value) {
81 m_fieldsHasBeenSet = true;
82 m_fields = std::forward<FieldsT>(value);
83 }
84 template <typename FieldsT = Aws::Map<Aws::String, Aws::Vector<RecommenderSchemaField>>>
86 SetFields(std::forward<FieldsT>(value));
87 return *this;
88 }
89 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = Aws::Vector<RecommenderSchemaField>>
90 CreateRecommenderSchemaRequest& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
91 m_fieldsHasBeenSet = true;
92 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 CreateRecommenderSchemaRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_domainName;
122
123 Aws::String m_recommenderSchemaName;
124
126
128 bool m_domainNameHasBeenSet = false;
129 bool m_recommenderSchemaNameHasBeenSet = false;
130 bool m_fieldsHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace CustomerProfiles
136} // namespace Aws
CreateRecommenderSchemaRequest & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateRecommenderSchemaRequest & WithDomainName(DomainNameT &&value)
CreateRecommenderSchemaRequest & WithRecommenderSchemaName(RecommenderSchemaNameT &&value)
AWS_CUSTOMERPROFILES_API CreateRecommenderSchemaRequest()=default
const Aws::Map< Aws::String, Aws::Vector< RecommenderSchemaField > > & GetFields() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRecommenderSchemaRequest & AddTags(TagsKeyT &&key, TagsValueT &&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