AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/AwsLocation.h>
13#include <aws/datazone/model/Configuration.h>
14#include <aws/datazone/model/ConnectionPropertiesInput.h>
15#include <aws/datazone/model/ConnectionScope.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataZone {
21namespace Model {
22
26 public:
27 AWS_DATAZONE_API CreateConnectionRequest() = 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 "CreateConnection"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
38
41 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
42 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
43 template <typename AwsLocationT = AwsLocation>
44 void SetAwsLocation(AwsLocationT&& value) {
45 m_awsLocationHasBeenSet = true;
46 m_awsLocation = std::forward<AwsLocationT>(value);
47 }
48 template <typename AwsLocationT = AwsLocation>
50 SetAwsLocation(std::forward<AwsLocationT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template <typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) {
64 m_clientTokenHasBeenSet = true;
65 m_clientToken = std::forward<ClientTokenT>(value);
66 }
67 template <typename ClientTokenT = Aws::String>
69 SetClientToken(std::forward<ClientTokenT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
79 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
80 template <typename ConfigurationsT = Aws::Vector<Configuration>>
81 void SetConfigurations(ConfigurationsT&& value) {
82 m_configurationsHasBeenSet = true;
83 m_configurations = std::forward<ConfigurationsT>(value);
84 }
85 template <typename ConfigurationsT = Aws::Vector<Configuration>>
86 CreateConnectionRequest& WithConfigurations(ConfigurationsT&& value) {
87 SetConfigurations(std::forward<ConfigurationsT>(value));
88 return *this;
89 }
90 template <typename ConfigurationsT = Configuration>
91 CreateConnectionRequest& AddConfigurations(ConfigurationsT&& value) {
92 m_configurationsHasBeenSet = true;
93 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
121 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
122 template <typename DomainIdentifierT = Aws::String>
123 void SetDomainIdentifier(DomainIdentifierT&& value) {
124 m_domainIdentifierHasBeenSet = true;
125 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
126 }
127 template <typename DomainIdentifierT = Aws::String>
128 CreateConnectionRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
129 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
139 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
140 template <typename EnvironmentIdentifierT = Aws::String>
141 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
142 m_environmentIdentifierHasBeenSet = true;
143 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
144 }
145 template <typename EnvironmentIdentifierT = Aws::String>
146 CreateConnectionRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
147 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetName() const { return m_name; }
157 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
158 template <typename NameT = Aws::String>
159 void SetName(NameT&& value) {
160 m_nameHasBeenSet = true;
161 m_name = std::forward<NameT>(value);
162 }
163 template <typename NameT = Aws::String>
165 SetName(std::forward<NameT>(value));
166 return *this;
167 }
169
171
174 inline const ConnectionPropertiesInput& GetProps() const { return m_props; }
175 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
176 template <typename PropsT = ConnectionPropertiesInput>
177 void SetProps(PropsT&& value) {
178 m_propsHasBeenSet = true;
179 m_props = std::forward<PropsT>(value);
180 }
181 template <typename PropsT = ConnectionPropertiesInput>
183 SetProps(std::forward<PropsT>(value));
184 return *this;
185 }
187
189
192 inline bool GetEnableTrustedIdentityPropagation() const { return m_enableTrustedIdentityPropagation; }
193 inline bool EnableTrustedIdentityPropagationHasBeenSet() const { return m_enableTrustedIdentityPropagationHasBeenSet; }
194 inline void SetEnableTrustedIdentityPropagation(bool value) {
195 m_enableTrustedIdentityPropagationHasBeenSet = true;
196 m_enableTrustedIdentityPropagation = value;
197 }
200 return *this;
201 }
203
205
208 inline ConnectionScope GetScope() const { return m_scope; }
209 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
210 inline void SetScope(ConnectionScope value) {
211 m_scopeHasBeenSet = true;
212 m_scope = value;
213 }
215 SetScope(value);
216 return *this;
217 }
219 private:
220 AwsLocation m_awsLocation;
221
223
224 Aws::Vector<Configuration> m_configurations;
225
226 Aws::String m_description;
227
228 Aws::String m_domainIdentifier;
229
230 Aws::String m_environmentIdentifier;
231
232 Aws::String m_name;
233
234 ConnectionPropertiesInput m_props;
235
236 bool m_enableTrustedIdentityPropagation{false};
237
239 bool m_awsLocationHasBeenSet = false;
240 bool m_clientTokenHasBeenSet = true;
241 bool m_configurationsHasBeenSet = false;
242 bool m_descriptionHasBeenSet = false;
243 bool m_domainIdentifierHasBeenSet = false;
244 bool m_environmentIdentifierHasBeenSet = false;
245 bool m_nameHasBeenSet = false;
246 bool m_propsHasBeenSet = false;
247 bool m_enableTrustedIdentityPropagationHasBeenSet = false;
248 bool m_scopeHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace DataZone
253} // namespace Aws
CreateConnectionRequest & WithAwsLocation(AwsLocationT &&value)
const Aws::Vector< Configuration > & GetConfigurations() const
CreateConnectionRequest & WithEnableTrustedIdentityPropagation(bool value)
AWS_DATAZONE_API CreateConnectionRequest()=default
CreateConnectionRequest & WithProps(PropsT &&value)
CreateConnectionRequest & AddConfigurations(ConfigurationsT &&value)
virtual const char * GetServiceRequestName() const override
void SetEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateConnectionRequest & WithName(NameT &&value)
CreateConnectionRequest & WithScope(ConnectionScope value)
CreateConnectionRequest & WithDescription(DescriptionT &&value)
CreateConnectionRequest & WithClientToken(ClientTokenT &&value)
const ConnectionPropertiesInput & GetProps() const
CreateConnectionRequest & WithConfigurations(ConfigurationsT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateConnectionRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector