AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AwsLocation.h>
12#include <aws/datazone/model/ConnectionPropertiesInput.h>
13#include <aws/datazone/model/ConnectionScope.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API CreateConnectionRequest() = 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 "CreateConnection"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
40 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
41 template <typename AwsLocationT = AwsLocation>
42 void SetAwsLocation(AwsLocationT&& value) {
43 m_awsLocationHasBeenSet = true;
44 m_awsLocation = std::forward<AwsLocationT>(value);
45 }
46 template <typename AwsLocationT = AwsLocation>
48 SetAwsLocation(std::forward<AwsLocationT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetClientToken() const { return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 template <typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) {
62 m_clientTokenHasBeenSet = true;
63 m_clientToken = std::forward<ClientTokenT>(value);
64 }
65 template <typename ClientTokenT = Aws::String>
67 SetClientToken(std::forward<ClientTokenT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
95 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
96 template <typename DomainIdentifierT = Aws::String>
97 void SetDomainIdentifier(DomainIdentifierT&& value) {
98 m_domainIdentifierHasBeenSet = true;
99 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
100 }
101 template <typename DomainIdentifierT = Aws::String>
102 CreateConnectionRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
103 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
113 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
114 template <typename EnvironmentIdentifierT = Aws::String>
115 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
116 m_environmentIdentifierHasBeenSet = true;
117 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
118 }
119 template <typename EnvironmentIdentifierT = Aws::String>
120 CreateConnectionRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
121 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template <typename NameT = Aws::String>
133 void SetName(NameT&& value) {
134 m_nameHasBeenSet = true;
135 m_name = std::forward<NameT>(value);
136 }
137 template <typename NameT = Aws::String>
139 SetName(std::forward<NameT>(value));
140 return *this;
141 }
143
145
148 inline const ConnectionPropertiesInput& GetProps() const { return m_props; }
149 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
150 template <typename PropsT = ConnectionPropertiesInput>
151 void SetProps(PropsT&& value) {
152 m_propsHasBeenSet = true;
153 m_props = std::forward<PropsT>(value);
154 }
155 template <typename PropsT = ConnectionPropertiesInput>
157 SetProps(std::forward<PropsT>(value));
158 return *this;
159 }
161
163
166 inline bool GetEnableTrustedIdentityPropagation() const { return m_enableTrustedIdentityPropagation; }
167 inline bool EnableTrustedIdentityPropagationHasBeenSet() const { return m_enableTrustedIdentityPropagationHasBeenSet; }
168 inline void SetEnableTrustedIdentityPropagation(bool value) {
169 m_enableTrustedIdentityPropagationHasBeenSet = true;
170 m_enableTrustedIdentityPropagation = value;
171 }
174 return *this;
175 }
177
179
182 inline ConnectionScope GetScope() const { return m_scope; }
183 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
184 inline void SetScope(ConnectionScope value) {
185 m_scopeHasBeenSet = true;
186 m_scope = value;
187 }
189 SetScope(value);
190 return *this;
191 }
193 private:
194 AwsLocation m_awsLocation;
195
197
198 Aws::String m_description;
199
200 Aws::String m_domainIdentifier;
201
202 Aws::String m_environmentIdentifier;
203
204 Aws::String m_name;
205
206 ConnectionPropertiesInput m_props;
207
208 bool m_enableTrustedIdentityPropagation{false};
209
211 bool m_awsLocationHasBeenSet = false;
212 bool m_clientTokenHasBeenSet = true;
213 bool m_descriptionHasBeenSet = false;
214 bool m_domainIdentifierHasBeenSet = false;
215 bool m_environmentIdentifierHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_propsHasBeenSet = false;
218 bool m_enableTrustedIdentityPropagationHasBeenSet = false;
219 bool m_scopeHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace DataZone
224} // namespace Aws
CreateConnectionRequest & WithAwsLocation(AwsLocationT &&value)
CreateConnectionRequest & WithEnableTrustedIdentityPropagation(bool value)
AWS_DATAZONE_API CreateConnectionRequest()=default
CreateConnectionRequest & WithProps(PropsT &&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
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