AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSchemaMappingRequest.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/entityresolution/EntityResolutionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/entityresolution/model/SchemaInputAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EntityResolution
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ENTITYRESOLUTION_API CreateSchemaMappingRequest() = default;
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 "CreateSchemaMapping"; }
34
35 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
44 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
45 template<typename SchemaNameT = Aws::String>
46 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
47 template<typename SchemaNameT = Aws::String>
48 CreateSchemaMappingRequest& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateSchemaMappingRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
69 inline const Aws::Vector<SchemaInputAttribute>& GetMappedInputFields() const { return m_mappedInputFields; }
70 inline bool MappedInputFieldsHasBeenSet() const { return m_mappedInputFieldsHasBeenSet; }
71 template<typename MappedInputFieldsT = Aws::Vector<SchemaInputAttribute>>
72 void SetMappedInputFields(MappedInputFieldsT&& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields = std::forward<MappedInputFieldsT>(value); }
73 template<typename MappedInputFieldsT = Aws::Vector<SchemaInputAttribute>>
74 CreateSchemaMappingRequest& WithMappedInputFields(MappedInputFieldsT&& value) { SetMappedInputFields(std::forward<MappedInputFieldsT>(value)); return *this;}
75 template<typename MappedInputFieldsT = SchemaInputAttribute>
76 CreateSchemaMappingRequest& AddMappedInputFields(MappedInputFieldsT&& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields.emplace_back(std::forward<MappedInputFieldsT>(value)); return *this; }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 CreateSchemaMappingRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateSchemaMappingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_schemaName;
97 bool m_schemaNameHasBeenSet = false;
98
99 Aws::String m_description;
100 bool m_descriptionHasBeenSet = false;
101
102 Aws::Vector<SchemaInputAttribute> m_mappedInputFields;
103 bool m_mappedInputFieldsHasBeenSet = false;
104
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EntityResolution
111} // 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