AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDataProviderRequest.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dms/model/DataProviderSettings.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/dms/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DatabaseMigrationService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATABASEMIGRATIONSERVICE_API CreateDataProviderRequest() = 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 "CreateDataProvider"; }
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDataProviderName() const { return m_dataProviderName; }
45 inline bool DataProviderNameHasBeenSet() const { return m_dataProviderNameHasBeenSet; }
46 template<typename DataProviderNameT = Aws::String>
47 void SetDataProviderName(DataProviderNameT&& value) { m_dataProviderNameHasBeenSet = true; m_dataProviderName = std::forward<DataProviderNameT>(value); }
48 template<typename DataProviderNameT = Aws::String>
49 CreateDataProviderRequest& WithDataProviderName(DataProviderNameT&& value) { SetDataProviderName(std::forward<DataProviderNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateDataProviderRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
73 inline const Aws::String& GetEngine() const { return m_engine; }
74 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
75 template<typename EngineT = Aws::String>
76 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
77 template<typename EngineT = Aws::String>
78 CreateDataProviderRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
80
82
85 inline bool GetVirtual() const { return m_virtual; }
86 inline bool VirtualHasBeenSet() const { return m_virtualHasBeenSet; }
87 inline void SetVirtual(bool value) { m_virtualHasBeenSet = true; m_virtual = value; }
88 inline CreateDataProviderRequest& WithVirtual(bool value) { SetVirtual(value); return *this;}
90
92
95 inline const DataProviderSettings& GetSettings() const { return m_settings; }
96 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
97 template<typename SettingsT = DataProviderSettings>
98 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
99 template<typename SettingsT = DataProviderSettings>
100 CreateDataProviderRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 CreateDataProviderRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 CreateDataProviderRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116 private:
117
118 Aws::String m_dataProviderName;
119 bool m_dataProviderNameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_engine;
125 bool m_engineHasBeenSet = false;
126
127 bool m_virtual{false};
128 bool m_virtualHasBeenSet = false;
129
130 DataProviderSettings m_settings;
131 bool m_settingsHasBeenSet = false;
132
133 Aws::Vector<Tag> m_tags;
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace DatabaseMigrationService
139} // 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