AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDataProviderRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/DataProviderSettings.h>
12#include <aws/dms/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DatabaseMigrationService {
18namespace Model {
19
23 public:
24 AWS_DATABASEMIGRATIONSERVICE_API CreateDataProviderRequest() = 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 "CreateDataProvider"; }
31
32 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetDataProviderName() const { return m_dataProviderName; }
41 inline bool DataProviderNameHasBeenSet() const { return m_dataProviderNameHasBeenSet; }
42 template <typename DataProviderNameT = Aws::String>
43 void SetDataProviderName(DataProviderNameT&& value) {
44 m_dataProviderNameHasBeenSet = true;
45 m_dataProviderName = std::forward<DataProviderNameT>(value);
46 }
47 template <typename DataProviderNameT = Aws::String>
48 CreateDataProviderRequest& WithDataProviderName(DataProviderNameT&& value) {
49 SetDataProviderName(std::forward<DataProviderNameT>(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
82 inline const Aws::String& GetEngine() const { return m_engine; }
83 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
84 template <typename EngineT = Aws::String>
85 void SetEngine(EngineT&& value) {
86 m_engineHasBeenSet = true;
87 m_engine = std::forward<EngineT>(value);
88 }
89 template <typename EngineT = Aws::String>
91 SetEngine(std::forward<EngineT>(value));
92 return *this;
93 }
95
97
100 inline bool GetVirtual() const { return m_virtual; }
101 inline bool VirtualHasBeenSet() const { return m_virtualHasBeenSet; }
102 inline void SetVirtual(bool value) {
103 m_virtualHasBeenSet = true;
104 m_virtual = value;
105 }
107 SetVirtual(value);
108 return *this;
109 }
111
113
116 inline const DataProviderSettings& GetSettings() const { return m_settings; }
117 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
118 template <typename SettingsT = DataProviderSettings>
119 void SetSettings(SettingsT&& value) {
120 m_settingsHasBeenSet = true;
121 m_settings = std::forward<SettingsT>(value);
122 }
123 template <typename SettingsT = DataProviderSettings>
125 SetSettings(std::forward<SettingsT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Vector<Tag>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Vector<Tag>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsT = Tag>
148 m_tagsHasBeenSet = true;
149 m_tags.emplace_back(std::forward<TagsT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_dataProviderName;
155
156 Aws::String m_description;
157
158 Aws::String m_engine;
159
160 bool m_virtual{false};
161
162 DataProviderSettings m_settings;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_dataProviderNameHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_engineHasBeenSet = false;
168 bool m_virtualHasBeenSet = false;
169 bool m_settingsHasBeenSet = false;
170 bool m_tagsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace DatabaseMigrationService
175} // namespace Aws
CreateDataProviderRequest & WithDataProviderName(DataProviderNameT &&value)
CreateDataProviderRequest & WithDescription(DescriptionT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATABASEMIGRATIONSERVICE_API CreateDataProviderRequest()=default
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