AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PhysicalEndpoint.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AwsLocation.h>
9#include <aws/datazone/model/GlueConnection.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/Protocol.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DATAZONE_API PhysicalEndpoint() = default;
38 AWS_DATAZONE_API PhysicalEndpoint(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
48 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
49 template<typename AwsLocationT = AwsLocation>
50 void SetAwsLocation(AwsLocationT&& value) { m_awsLocationHasBeenSet = true; m_awsLocation = std::forward<AwsLocationT>(value); }
51 template<typename AwsLocationT = AwsLocation>
52 PhysicalEndpoint& WithAwsLocation(AwsLocationT&& value) { SetAwsLocation(std::forward<AwsLocationT>(value)); return *this;}
54
56
59 inline const GlueConnection& GetGlueConnection() const { return m_glueConnection; }
60 inline bool GlueConnectionHasBeenSet() const { return m_glueConnectionHasBeenSet; }
61 template<typename GlueConnectionT = GlueConnection>
62 void SetGlueConnection(GlueConnectionT&& value) { m_glueConnectionHasBeenSet = true; m_glueConnection = std::forward<GlueConnectionT>(value); }
63 template<typename GlueConnectionT = GlueConnection>
64 PhysicalEndpoint& WithGlueConnection(GlueConnectionT&& value) { SetGlueConnection(std::forward<GlueConnectionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetGlueConnectionName() const { return m_glueConnectionName; }
72 inline bool GlueConnectionNameHasBeenSet() const { return m_glueConnectionNameHasBeenSet; }
73 template<typename GlueConnectionNameT = Aws::String>
74 void SetGlueConnectionName(GlueConnectionNameT&& value) { m_glueConnectionNameHasBeenSet = true; m_glueConnectionName = std::forward<GlueConnectionNameT>(value); }
75 template<typename GlueConnectionNameT = Aws::String>
76 PhysicalEndpoint& WithGlueConnectionName(GlueConnectionNameT&& value) { SetGlueConnectionName(std::forward<GlueConnectionNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetHost() const { return m_host; }
84 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
85 template<typename HostT = Aws::String>
86 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
87 template<typename HostT = Aws::String>
88 PhysicalEndpoint& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
90
92
95 inline int GetPort() const { return m_port; }
96 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
97 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
98 inline PhysicalEndpoint& WithPort(int value) { SetPort(value); return *this;}
100
102
105 inline Protocol GetProtocol() const { return m_protocol; }
106 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
107 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
108 inline PhysicalEndpoint& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
110
112
115 inline const Aws::String& GetStage() const { return m_stage; }
116 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
117 template<typename StageT = Aws::String>
118 void SetStage(StageT&& value) { m_stageHasBeenSet = true; m_stage = std::forward<StageT>(value); }
119 template<typename StageT = Aws::String>
120 PhysicalEndpoint& WithStage(StageT&& value) { SetStage(std::forward<StageT>(value)); return *this;}
122 private:
123
124 AwsLocation m_awsLocation;
125 bool m_awsLocationHasBeenSet = false;
126
127 GlueConnection m_glueConnection;
128 bool m_glueConnectionHasBeenSet = false;
129
130 Aws::String m_glueConnectionName;
131 bool m_glueConnectionNameHasBeenSet = false;
132
133 Aws::String m_host;
134 bool m_hostHasBeenSet = false;
135
136 int m_port{0};
137 bool m_portHasBeenSet = false;
138
139 Protocol m_protocol{Protocol::NOT_SET};
140 bool m_protocolHasBeenSet = false;
141
142 Aws::String m_stage;
143 bool m_stageHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace DataZone
148} // namespace Aws
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