AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PhysicalEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/AwsLocation.h>
10#include <aws/datazone/model/GlueConnection.h>
11#include <aws/datazone/model/Protocol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
31 public:
32 AWS_DATAZONE_API PhysicalEndpoint() = default;
33 AWS_DATAZONE_API PhysicalEndpoint(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
49 PhysicalEndpoint& WithAwsLocation(AwsLocationT&& value) {
50 SetAwsLocation(std::forward<AwsLocationT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetGlueConnectionName() const { return m_glueConnectionName; }
60 inline bool GlueConnectionNameHasBeenSet() const { return m_glueConnectionNameHasBeenSet; }
61 template <typename GlueConnectionNameT = Aws::String>
62 void SetGlueConnectionName(GlueConnectionNameT&& value) {
63 m_glueConnectionNameHasBeenSet = true;
64 m_glueConnectionName = std::forward<GlueConnectionNameT>(value);
65 }
66 template <typename GlueConnectionNameT = Aws::String>
67 PhysicalEndpoint& WithGlueConnectionName(GlueConnectionNameT&& value) {
68 SetGlueConnectionName(std::forward<GlueConnectionNameT>(value));
69 return *this;
70 }
72
74
77 inline const GlueConnection& GetGlueConnection() const { return m_glueConnection; }
78 inline bool GlueConnectionHasBeenSet() const { return m_glueConnectionHasBeenSet; }
79 template <typename GlueConnectionT = GlueConnection>
80 void SetGlueConnection(GlueConnectionT&& value) {
81 m_glueConnectionHasBeenSet = true;
82 m_glueConnection = std::forward<GlueConnectionT>(value);
83 }
84 template <typename GlueConnectionT = GlueConnection>
85 PhysicalEndpoint& WithGlueConnection(GlueConnectionT&& value) {
86 SetGlueConnection(std::forward<GlueConnectionT>(value));
87 return *this;
88 }
90
92
96 inline bool GetEnableTrustedIdentityPropagation() const { return m_enableTrustedIdentityPropagation; }
97 inline bool EnableTrustedIdentityPropagationHasBeenSet() const { return m_enableTrustedIdentityPropagationHasBeenSet; }
98 inline void SetEnableTrustedIdentityPropagation(bool value) {
99 m_enableTrustedIdentityPropagationHasBeenSet = true;
100 m_enableTrustedIdentityPropagation = value;
101 }
104 return *this;
105 }
107
109
112 inline const Aws::String& GetHost() const { return m_host; }
113 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
114 template <typename HostT = Aws::String>
115 void SetHost(HostT&& value) {
116 m_hostHasBeenSet = true;
117 m_host = std::forward<HostT>(value);
118 }
119 template <typename HostT = Aws::String>
120 PhysicalEndpoint& WithHost(HostT&& value) {
121 SetHost(std::forward<HostT>(value));
122 return *this;
123 }
125
127
130 inline int GetPort() const { return m_port; }
131 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
132 inline void SetPort(int value) {
133 m_portHasBeenSet = true;
134 m_port = value;
135 }
136 inline PhysicalEndpoint& WithPort(int value) {
137 SetPort(value);
138 return *this;
139 }
141
143
146 inline Protocol GetProtocol() const { return m_protocol; }
147 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
148 inline void SetProtocol(Protocol value) {
149 m_protocolHasBeenSet = true;
150 m_protocol = value;
151 }
153 SetProtocol(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetStage() const { return m_stage; }
163 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
164 template <typename StageT = Aws::String>
165 void SetStage(StageT&& value) {
166 m_stageHasBeenSet = true;
167 m_stage = std::forward<StageT>(value);
168 }
169 template <typename StageT = Aws::String>
170 PhysicalEndpoint& WithStage(StageT&& value) {
171 SetStage(std::forward<StageT>(value));
172 return *this;
173 }
175 private:
176 AwsLocation m_awsLocation;
177
178 Aws::String m_glueConnectionName;
179
180 GlueConnection m_glueConnection;
181
182 bool m_enableTrustedIdentityPropagation{false};
183
184 Aws::String m_host;
185
186 int m_port{0};
187
188 Protocol m_protocol{Protocol::NOT_SET};
189
190 Aws::String m_stage;
191 bool m_awsLocationHasBeenSet = false;
192 bool m_glueConnectionNameHasBeenSet = false;
193 bool m_glueConnectionHasBeenSet = false;
194 bool m_enableTrustedIdentityPropagationHasBeenSet = false;
195 bool m_hostHasBeenSet = false;
196 bool m_portHasBeenSet = false;
197 bool m_protocolHasBeenSet = false;
198 bool m_stageHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace DataZone
203} // namespace Aws
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)
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)
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
Aws::Utils::Json::JsonValue JsonValue