AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateSchemaMappingRequest.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/SchemaInputAttribute.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EntityResolution {
18namespace Model {
19
23 public:
24 AWS_ENTITYRESOLUTION_API CreateSchemaMappingRequest() = 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 "CreateSchemaMapping"; }
31
32 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
40 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
41 template <typename SchemaNameT = Aws::String>
42 void SetSchemaName(SchemaNameT&& value) {
43 m_schemaNameHasBeenSet = true;
44 m_schemaName = std::forward<SchemaNameT>(value);
45 }
46 template <typename SchemaNameT = Aws::String>
48 SetSchemaName(std::forward<SchemaNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Vector<SchemaInputAttribute>& GetMappedInputFields() const { return m_mappedInputFields; }
78 inline bool MappedInputFieldsHasBeenSet() const { return m_mappedInputFieldsHasBeenSet; }
79 template <typename MappedInputFieldsT = Aws::Vector<SchemaInputAttribute>>
80 void SetMappedInputFields(MappedInputFieldsT&& value) {
81 m_mappedInputFieldsHasBeenSet = true;
82 m_mappedInputFields = std::forward<MappedInputFieldsT>(value);
83 }
84 template <typename MappedInputFieldsT = Aws::Vector<SchemaInputAttribute>>
86 SetMappedInputFields(std::forward<MappedInputFieldsT>(value));
87 return *this;
88 }
89 template <typename MappedInputFieldsT = SchemaInputAttribute>
90 CreateSchemaMappingRequest& AddMappedInputFields(MappedInputFieldsT&& value) {
91 m_mappedInputFieldsHasBeenSet = true;
92 m_mappedInputFields.emplace_back(std::forward<MappedInputFieldsT>(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 CreateSchemaMappingRequest& 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_schemaName;
122
123 Aws::String m_description;
124
125 Aws::Vector<SchemaInputAttribute> m_mappedInputFields;
126
128 bool m_schemaNameHasBeenSet = false;
129 bool m_descriptionHasBeenSet = false;
130 bool m_mappedInputFieldsHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace EntityResolution
136} // namespace Aws
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override
CreateSchemaMappingRequest & AddMappedInputFields(MappedInputFieldsT &&value)
CreateSchemaMappingRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< SchemaInputAttribute > & GetMappedInputFields() const
CreateSchemaMappingRequest & WithSchemaName(SchemaNameT &&value)
CreateSchemaMappingRequest & WithMappedInputFields(MappedInputFieldsT &&value)
CreateSchemaMappingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ENTITYRESOLUTION_API CreateSchemaMappingRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() 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