AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateIdNamespaceRequest.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/entityresolution/EntityResolutionRequest.h>
11#include <aws/entityresolution/EntityResolution_EXPORTS.h>
12#include <aws/entityresolution/model/IdNamespaceIdMappingWorkflowProperties.h>
13#include <aws/entityresolution/model/IdNamespaceInputSource.h>
14#include <aws/entityresolution/model/IdNamespaceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EntityResolution {
20namespace Model {
21
25 public:
26 AWS_ENTITYRESOLUTION_API CreateIdNamespaceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateIdNamespace"; }
33
34 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetIdNamespaceName() const { return m_idNamespaceName; }
41 inline bool IdNamespaceNameHasBeenSet() const { return m_idNamespaceNameHasBeenSet; }
42 template <typename IdNamespaceNameT = Aws::String>
43 void SetIdNamespaceName(IdNamespaceNameT&& value) {
44 m_idNamespaceNameHasBeenSet = true;
45 m_idNamespaceName = std::forward<IdNamespaceNameT>(value);
46 }
47 template <typename IdNamespaceNameT = Aws::String>
48 CreateIdNamespaceRequest& WithIdNamespaceName(IdNamespaceNameT&& value) {
49 SetIdNamespaceName(std::forward<IdNamespaceNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<IdNamespaceInputSource>& GetInputSourceConfig() const { return m_inputSourceConfig; }
78 inline bool InputSourceConfigHasBeenSet() const { return m_inputSourceConfigHasBeenSet; }
79 template <typename InputSourceConfigT = Aws::Vector<IdNamespaceInputSource>>
80 void SetInputSourceConfig(InputSourceConfigT&& value) {
81 m_inputSourceConfigHasBeenSet = true;
82 m_inputSourceConfig = std::forward<InputSourceConfigT>(value);
83 }
84 template <typename InputSourceConfigT = Aws::Vector<IdNamespaceInputSource>>
85 CreateIdNamespaceRequest& WithInputSourceConfig(InputSourceConfigT&& value) {
86 SetInputSourceConfig(std::forward<InputSourceConfigT>(value));
87 return *this;
88 }
89 template <typename InputSourceConfigT = IdNamespaceInputSource>
90 CreateIdNamespaceRequest& AddInputSourceConfig(InputSourceConfigT&& value) {
91 m_inputSourceConfigHasBeenSet = true;
92 m_inputSourceConfig.emplace_back(std::forward<InputSourceConfigT>(value));
93 return *this;
94 }
96
98
104 return m_idMappingWorkflowProperties;
105 }
106 inline bool IdMappingWorkflowPropertiesHasBeenSet() const { return m_idMappingWorkflowPropertiesHasBeenSet; }
107 template <typename IdMappingWorkflowPropertiesT = Aws::Vector<IdNamespaceIdMappingWorkflowProperties>>
108 void SetIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT&& value) {
109 m_idMappingWorkflowPropertiesHasBeenSet = true;
110 m_idMappingWorkflowProperties = std::forward<IdMappingWorkflowPropertiesT>(value);
111 }
112 template <typename IdMappingWorkflowPropertiesT = Aws::Vector<IdNamespaceIdMappingWorkflowProperties>>
113 CreateIdNamespaceRequest& WithIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT&& value) {
114 SetIdMappingWorkflowProperties(std::forward<IdMappingWorkflowPropertiesT>(value));
115 return *this;
116 }
117 template <typename IdMappingWorkflowPropertiesT = IdNamespaceIdMappingWorkflowProperties>
118 CreateIdNamespaceRequest& AddIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT&& value) {
119 m_idMappingWorkflowPropertiesHasBeenSet = true;
120 m_idMappingWorkflowProperties.emplace_back(std::forward<IdMappingWorkflowPropertiesT>(value));
121 return *this;
122 }
124
126
133 inline IdNamespaceType GetType() const { return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(IdNamespaceType value) {
136 m_typeHasBeenSet = true;
137 m_type = value;
138 }
140 SetType(value);
141 return *this;
142 }
144
146
151 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
152 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
153 template <typename RoleArnT = Aws::String>
154 void SetRoleArn(RoleArnT&& value) {
155 m_roleArnHasBeenSet = true;
156 m_roleArn = std::forward<RoleArnT>(value);
157 }
158 template <typename RoleArnT = Aws::String>
160 SetRoleArn(std::forward<RoleArnT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 void SetTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags = std::forward<TagsT>(value);
175 }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 SetTags(std::forward<TagsT>(value));
179 return *this;
180 }
181 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
182 CreateIdNamespaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_idNamespaceName;
190
191 Aws::String m_description;
192
193 Aws::Vector<IdNamespaceInputSource> m_inputSourceConfig;
194
195 Aws::Vector<IdNamespaceIdMappingWorkflowProperties> m_idMappingWorkflowProperties;
196
198
199 Aws::String m_roleArn;
200
202 bool m_idNamespaceNameHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_inputSourceConfigHasBeenSet = false;
205 bool m_idMappingWorkflowPropertiesHasBeenSet = false;
206 bool m_typeHasBeenSet = false;
207 bool m_roleArnHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace EntityResolution
213} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateIdNamespaceRequest & WithInputSourceConfig(InputSourceConfigT &&value)
CreateIdNamespaceRequest & WithType(IdNamespaceType value)
const Aws::Vector< IdNamespaceIdMappingWorkflowProperties > & GetIdMappingWorkflowProperties() const
CreateIdNamespaceRequest & WithIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT &&value)
CreateIdNamespaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateIdNamespaceRequest & WithIdNamespaceName(IdNamespaceNameT &&value)
void SetIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT &&value)
CreateIdNamespaceRequest & AddInputSourceConfig(InputSourceConfigT &&value)
AWS_ENTITYRESOLUTION_API CreateIdNamespaceRequest()=default
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override
CreateIdNamespaceRequest & AddIdMappingWorkflowProperties(IdMappingWorkflowPropertiesT &&value)
CreateIdNamespaceRequest & WithDescription(DescriptionT &&value)
CreateIdNamespaceRequest & WithRoleArn(RoleArnT &&value)
const Aws::Vector< IdNamespaceInputSource > & GetInputSourceConfig() const
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
std::vector< T, Aws::Allocator< T > > Vector