AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/model/ConnectionStatus.h>
9#include <aws/codeconnections/model/ProviderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CodeConnections {
22namespace Model {
23
34 public:
35 AWS_CODECONNECTIONS_API Connection() = default;
36 AWS_CODECONNECTIONS_API Connection(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CODECONNECTIONS_API Connection& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CODECONNECTIONS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
45 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
46 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
47 template <typename ConnectionNameT = Aws::String>
48 void SetConnectionName(ConnectionNameT&& value) {
49 m_connectionNameHasBeenSet = true;
50 m_connectionName = std::forward<ConnectionNameT>(value);
51 }
52 template <typename ConnectionNameT = Aws::String>
53 Connection& WithConnectionName(ConnectionNameT&& value) {
54 SetConnectionName(std::forward<ConnectionNameT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
67 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
68 template <typename ConnectionArnT = Aws::String>
69 void SetConnectionArn(ConnectionArnT&& value) {
70 m_connectionArnHasBeenSet = true;
71 m_connectionArn = std::forward<ConnectionArnT>(value);
72 }
73 template <typename ConnectionArnT = Aws::String>
74 Connection& WithConnectionArn(ConnectionArnT&& value) {
75 SetConnectionArn(std::forward<ConnectionArnT>(value));
76 return *this;
77 }
79
81
85 inline ProviderType GetProviderType() const { return m_providerType; }
86 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
87 inline void SetProviderType(ProviderType value) {
88 m_providerTypeHasBeenSet = true;
89 m_providerType = value;
90 }
92 SetProviderType(value);
93 return *this;
94 }
96
98
103 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
104 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
105 template <typename OwnerAccountIdT = Aws::String>
106 void SetOwnerAccountId(OwnerAccountIdT&& value) {
107 m_ownerAccountIdHasBeenSet = true;
108 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
109 }
110 template <typename OwnerAccountIdT = Aws::String>
111 Connection& WithOwnerAccountId(OwnerAccountIdT&& value) {
112 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
113 return *this;
114 }
116
118
121 inline ConnectionStatus GetConnectionStatus() const { return m_connectionStatus; }
122 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
124 m_connectionStatusHasBeenSet = true;
125 m_connectionStatus = value;
126 }
128 SetConnectionStatus(value);
129 return *this;
130 }
132
134
138 inline const Aws::String& GetHostArn() const { return m_hostArn; }
139 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
140 template <typename HostArnT = Aws::String>
141 void SetHostArn(HostArnT&& value) {
142 m_hostArnHasBeenSet = true;
143 m_hostArn = std::forward<HostArnT>(value);
144 }
145 template <typename HostArnT = Aws::String>
146 Connection& WithHostArn(HostArnT&& value) {
147 SetHostArn(std::forward<HostArnT>(value));
148 return *this;
149 }
151
153
159 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
160 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
161 template <typename ProviderEndpointT = Aws::String>
162 void SetProviderEndpoint(ProviderEndpointT&& value) {
163 m_providerEndpointHasBeenSet = true;
164 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
165 }
166 template <typename ProviderEndpointT = Aws::String>
167 Connection& WithProviderEndpoint(ProviderEndpointT&& value) {
168 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_connectionName;
174
175 Aws::String m_connectionArn;
176
177 ProviderType m_providerType{ProviderType::NOT_SET};
178
179 Aws::String m_ownerAccountId;
180
182
183 Aws::String m_hostArn;
184
185 Aws::String m_providerEndpoint;
186 bool m_connectionNameHasBeenSet = false;
187 bool m_connectionArnHasBeenSet = false;
188 bool m_providerTypeHasBeenSet = false;
189 bool m_ownerAccountIdHasBeenSet = false;
190 bool m_connectionStatusHasBeenSet = false;
191 bool m_hostArnHasBeenSet = false;
192 bool m_providerEndpointHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace CodeConnections
197} // namespace Aws
const Aws::String & GetConnectionName() const
Definition Connection.h:45
AWS_CODECONNECTIONS_API Connection & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Connection & WithHostArn(HostArnT &&value)
Definition Connection.h:146
const Aws::String & GetProviderEndpoint() const
Definition Connection.h:159
Connection & WithConnectionStatus(ConnectionStatus value)
Definition Connection.h:127
Connection & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:111
AWS_CODECONNECTIONS_API Connection()=default
void SetProviderType(ProviderType value)
Definition Connection.h:87
const Aws::String & GetHostArn() const
Definition Connection.h:138
Connection & WithProviderEndpoint(ProviderEndpointT &&value)
Definition Connection.h:167
void SetProviderEndpoint(ProviderEndpointT &&value)
Definition Connection.h:162
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:106
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:74
AWS_CODECONNECTIONS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionStatus GetConnectionStatus() const
Definition Connection.h:121
AWS_CODECONNECTIONS_API Connection(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetConnectionArn() const
Definition Connection.h:66
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:69
void SetConnectionStatus(ConnectionStatus value)
Definition Connection.h:123
const Aws::String & GetOwnerAccountId() const
Definition Connection.h:103
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:53
void SetConnectionName(ConnectionNameT &&value)
Definition Connection.h:48
Connection & WithProviderType(ProviderType value)
Definition Connection.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String