AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
PhysicalEndpoint.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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/AwsLocation.h>
11#include <aws/datazone/model/GlueConnection.h>
12#include <aws/datazone/model/Protocol.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone {
24namespace Model {
25
32 public:
33 AWS_DATAZONE_API PhysicalEndpoint() = default;
34 AWS_DATAZONE_API PhysicalEndpoint(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
43 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
44 template <typename AwsLocationT = AwsLocation>
45 void SetAwsLocation(AwsLocationT&& value) {
46 m_awsLocationHasBeenSet = true;
47 m_awsLocation = std::forward<AwsLocationT>(value);
48 }
49 template <typename AwsLocationT = AwsLocation>
50 PhysicalEndpoint& WithAwsLocation(AwsLocationT&& value) {
51 SetAwsLocation(std::forward<AwsLocationT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetGlueConnectionName() const { return m_glueConnectionName; }
61 inline bool GlueConnectionNameHasBeenSet() const { return m_glueConnectionNameHasBeenSet; }
62 template <typename GlueConnectionNameT = Aws::String>
63 void SetGlueConnectionName(GlueConnectionNameT&& value) {
64 m_glueConnectionNameHasBeenSet = true;
65 m_glueConnectionName = std::forward<GlueConnectionNameT>(value);
66 }
67 template <typename GlueConnectionNameT = Aws::String>
68 PhysicalEndpoint& WithGlueConnectionName(GlueConnectionNameT&& value) {
69 SetGlueConnectionName(std::forward<GlueConnectionNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetGlueConnectionNames() const { return m_glueConnectionNames; }
79 inline bool GlueConnectionNamesHasBeenSet() const { return m_glueConnectionNamesHasBeenSet; }
80 template <typename GlueConnectionNamesT = Aws::Vector<Aws::String>>
81 void SetGlueConnectionNames(GlueConnectionNamesT&& value) {
82 m_glueConnectionNamesHasBeenSet = true;
83 m_glueConnectionNames = std::forward<GlueConnectionNamesT>(value);
84 }
85 template <typename GlueConnectionNamesT = Aws::Vector<Aws::String>>
86 PhysicalEndpoint& WithGlueConnectionNames(GlueConnectionNamesT&& value) {
87 SetGlueConnectionNames(std::forward<GlueConnectionNamesT>(value));
88 return *this;
89 }
90 template <typename GlueConnectionNamesT = Aws::String>
91 PhysicalEndpoint& AddGlueConnectionNames(GlueConnectionNamesT&& value) {
92 m_glueConnectionNamesHasBeenSet = true;
93 m_glueConnectionNames.emplace_back(std::forward<GlueConnectionNamesT>(value));
94 return *this;
95 }
97
99
102 inline const GlueConnection& GetGlueConnection() const { return m_glueConnection; }
103 inline bool GlueConnectionHasBeenSet() const { return m_glueConnectionHasBeenSet; }
104 template <typename GlueConnectionT = GlueConnection>
105 void SetGlueConnection(GlueConnectionT&& value) {
106 m_glueConnectionHasBeenSet = true;
107 m_glueConnection = std::forward<GlueConnectionT>(value);
108 }
109 template <typename GlueConnectionT = GlueConnection>
110 PhysicalEndpoint& WithGlueConnection(GlueConnectionT&& value) {
111 SetGlueConnection(std::forward<GlueConnectionT>(value));
112 return *this;
113 }
115
117
121 inline bool GetEnableTrustedIdentityPropagation() const { return m_enableTrustedIdentityPropagation; }
122 inline bool EnableTrustedIdentityPropagationHasBeenSet() const { return m_enableTrustedIdentityPropagationHasBeenSet; }
123 inline void SetEnableTrustedIdentityPropagation(bool value) {
124 m_enableTrustedIdentityPropagationHasBeenSet = true;
125 m_enableTrustedIdentityPropagation = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::String& GetHost() const { return m_host; }
138 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
139 template <typename HostT = Aws::String>
140 void SetHost(HostT&& value) {
141 m_hostHasBeenSet = true;
142 m_host = std::forward<HostT>(value);
143 }
144 template <typename HostT = Aws::String>
145 PhysicalEndpoint& WithHost(HostT&& value) {
146 SetHost(std::forward<HostT>(value));
147 return *this;
148 }
150
152
155 inline int GetPort() const { return m_port; }
156 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
157 inline void SetPort(int value) {
158 m_portHasBeenSet = true;
159 m_port = value;
160 }
161 inline PhysicalEndpoint& WithPort(int value) {
162 SetPort(value);
163 return *this;
164 }
166
168
171 inline Protocol GetProtocol() const { return m_protocol; }
172 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
173 inline void SetProtocol(Protocol value) {
174 m_protocolHasBeenSet = true;
175 m_protocol = value;
176 }
178 SetProtocol(value);
179 return *this;
180 }
182
184
187 inline const Aws::String& GetStage() const { return m_stage; }
188 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
189 template <typename StageT = Aws::String>
190 void SetStage(StageT&& value) {
191 m_stageHasBeenSet = true;
192 m_stage = std::forward<StageT>(value);
193 }
194 template <typename StageT = Aws::String>
195 PhysicalEndpoint& WithStage(StageT&& value) {
196 SetStage(std::forward<StageT>(value));
197 return *this;
198 }
200 private:
201 AwsLocation m_awsLocation;
202
203 Aws::String m_glueConnectionName;
204
205 Aws::Vector<Aws::String> m_glueConnectionNames;
206
207 GlueConnection m_glueConnection;
208
209 bool m_enableTrustedIdentityPropagation{false};
210
211 Aws::String m_host;
212
213 int m_port{0};
214
215 Protocol m_protocol{Protocol::NOT_SET};
216
217 Aws::String m_stage;
218 bool m_awsLocationHasBeenSet = false;
219 bool m_glueConnectionNameHasBeenSet = false;
220 bool m_glueConnectionNamesHasBeenSet = false;
221 bool m_glueConnectionHasBeenSet = false;
222 bool m_enableTrustedIdentityPropagationHasBeenSet = false;
223 bool m_hostHasBeenSet = false;
224 bool m_portHasBeenSet = false;
225 bool m_protocolHasBeenSet = false;
226 bool m_stageHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace DataZone
231} // namespace Aws
const Aws::Vector< Aws::String > & GetGlueConnectionNames() const
PhysicalEndpoint & WithEnableTrustedIdentityPropagation(bool value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
PhysicalEndpoint & WithGlueConnection(GlueConnectionT &&value)
void SetGlueConnection(GlueConnectionT &&value)
PhysicalEndpoint & WithPort(int value)
void SetGlueConnectionNames(GlueConnectionNamesT &&value)
PhysicalEndpoint & WithHost(HostT &&value)
PhysicalEndpoint & WithStage(StageT &&value)
void SetAwsLocation(AwsLocationT &&value)
AWS_DATAZONE_API PhysicalEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
PhysicalEndpoint & WithGlueConnectionName(GlueConnectionNameT &&value)
AWS_DATAZONE_API PhysicalEndpoint(Aws::Utils::Json::JsonView jsonValue)
PhysicalEndpoint & WithAwsLocation(AwsLocationT &&value)
PhysicalEndpoint & WithGlueConnectionNames(GlueConnectionNamesT &&value)
PhysicalEndpoint & AddGlueConnectionNames(GlueConnectionNamesT &&value)
const Aws::String & GetGlueConnectionName() const
const Aws::String & GetHost() const
void SetGlueConnectionName(GlueConnectionNameT &&value)
PhysicalEndpoint & WithProtocol(Protocol value)
const Aws::String & GetStage() const
const GlueConnection & GetGlueConnection() const
const AwsLocation & GetAwsLocation() const
AWS_DATAZONE_API PhysicalEndpoint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue