AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateConnectorProfileRequest.h
1
6#pragma once
7#include <aws/appflow/AppflowRequest.h>
8#include <aws/appflow/Appflow_EXPORTS.h>
9#include <aws/appflow/model/ConnectionMode.h>
10#include <aws/appflow/model/ConnectorProfileConfig.h>
11#include <aws/appflow/model/ConnectorType.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Appflow {
19namespace Model {
20
24 public:
25 AWS_APPFLOW_API CreateConnectorProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectorProfile"; }
32
33 AWS_APPFLOW_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetConnectorProfileName() const { return m_connectorProfileName; }
41 inline bool ConnectorProfileNameHasBeenSet() const { return m_connectorProfileNameHasBeenSet; }
42 template <typename ConnectorProfileNameT = Aws::String>
43 void SetConnectorProfileName(ConnectorProfileNameT&& value) {
44 m_connectorProfileNameHasBeenSet = true;
45 m_connectorProfileName = std::forward<ConnectorProfileNameT>(value);
46 }
47 template <typename ConnectorProfileNameT = Aws::String>
49 SetConnectorProfileName(std::forward<ConnectorProfileNameT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetKmsArn() const { return m_kmsArn; }
62 inline bool KmsArnHasBeenSet() const { return m_kmsArnHasBeenSet; }
63 template <typename KmsArnT = Aws::String>
64 void SetKmsArn(KmsArnT&& value) {
65 m_kmsArnHasBeenSet = true;
66 m_kmsArn = std::forward<KmsArnT>(value);
67 }
68 template <typename KmsArnT = Aws::String>
70 SetKmsArn(std::forward<KmsArnT>(value));
71 return *this;
72 }
74
76
79 inline ConnectorType GetConnectorType() const { return m_connectorType; }
80 inline bool ConnectorTypeHasBeenSet() const { return m_connectorTypeHasBeenSet; }
81 inline void SetConnectorType(ConnectorType value) {
82 m_connectorTypeHasBeenSet = true;
83 m_connectorType = value;
84 }
86 SetConnectorType(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetConnectorLabel() const { return m_connectorLabel; }
98 inline bool ConnectorLabelHasBeenSet() const { return m_connectorLabelHasBeenSet; }
99 template <typename ConnectorLabelT = Aws::String>
100 void SetConnectorLabel(ConnectorLabelT&& value) {
101 m_connectorLabelHasBeenSet = true;
102 m_connectorLabel = std::forward<ConnectorLabelT>(value);
103 }
104 template <typename ConnectorLabelT = Aws::String>
106 SetConnectorLabel(std::forward<ConnectorLabelT>(value));
107 return *this;
108 }
110
112
117 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
118 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
120 m_connectionModeHasBeenSet = true;
121 m_connectionMode = value;
122 }
124 SetConnectionMode(value);
125 return *this;
126 }
128
130
133 inline const ConnectorProfileConfig& GetConnectorProfileConfig() const { return m_connectorProfileConfig; }
134 inline bool ConnectorProfileConfigHasBeenSet() const { return m_connectorProfileConfigHasBeenSet; }
135 template <typename ConnectorProfileConfigT = ConnectorProfileConfig>
136 void SetConnectorProfileConfig(ConnectorProfileConfigT&& value) {
137 m_connectorProfileConfigHasBeenSet = true;
138 m_connectorProfileConfig = std::forward<ConnectorProfileConfigT>(value);
139 }
140 template <typename ConnectorProfileConfigT = ConnectorProfileConfig>
142 SetConnectorProfileConfig(std::forward<ConnectorProfileConfigT>(value));
143 return *this;
144 }
146
148
161 inline const Aws::String& GetClientToken() const { return m_clientToken; }
162 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
163 template <typename ClientTokenT = Aws::String>
164 void SetClientToken(ClientTokenT&& value) {
165 m_clientTokenHasBeenSet = true;
166 m_clientToken = std::forward<ClientTokenT>(value);
167 }
168 template <typename ClientTokenT = Aws::String>
170 SetClientToken(std::forward<ClientTokenT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_connectorProfileName;
176
177 Aws::String m_kmsArn;
178
179 ConnectorType m_connectorType{ConnectorType::NOT_SET};
180
181 Aws::String m_connectorLabel;
182
183 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
184
185 ConnectorProfileConfig m_connectorProfileConfig;
186
188 bool m_connectorProfileNameHasBeenSet = false;
189 bool m_kmsArnHasBeenSet = false;
190 bool m_connectorTypeHasBeenSet = false;
191 bool m_connectorLabelHasBeenSet = false;
192 bool m_connectionModeHasBeenSet = false;
193 bool m_connectorProfileConfigHasBeenSet = false;
194 bool m_clientTokenHasBeenSet = true;
195};
196
197} // namespace Model
198} // namespace Appflow
199} // namespace Aws
CreateConnectorProfileRequest & WithClientToken(ClientTokenT &&value)
CreateConnectorProfileRequest & WithConnectorProfileConfig(ConnectorProfileConfigT &&value)
CreateConnectorProfileRequest & WithConnectorLabel(ConnectorLabelT &&value)
CreateConnectorProfileRequest & WithConnectionMode(ConnectionMode value)
AWS_APPFLOW_API CreateConnectorProfileRequest()=default
const ConnectorProfileConfig & GetConnectorProfileConfig() const
CreateConnectorProfileRequest & WithConnectorType(ConnectorType value)
CreateConnectorProfileRequest & WithKmsArn(KmsArnT &&value)
CreateConnectorProfileRequest & WithConnectorProfileName(ConnectorProfileNameT &&value)
AWS_APPFLOW_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String