AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ConnectionStatus.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeStarconnections {
22namespace Model {
23
34 public:
35 AWS_CODESTARCONNECTIONS_API Connection() = default;
36 AWS_CODESTARCONNECTIONS_API Connection(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARCONNECTIONS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() 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 private:
152 Aws::String m_connectionName;
153
154 Aws::String m_connectionArn;
155
156 ProviderType m_providerType{ProviderType::NOT_SET};
157
158 Aws::String m_ownerAccountId;
159
161
162 Aws::String m_hostArn;
163 bool m_connectionNameHasBeenSet = false;
164 bool m_connectionArnHasBeenSet = false;
165 bool m_providerTypeHasBeenSet = false;
166 bool m_ownerAccountIdHasBeenSet = false;
167 bool m_connectionStatusHasBeenSet = false;
168 bool m_hostArnHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace CodeStarconnections
173} // namespace Aws
Connection & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:111
AWS_CODESTARCONNECTIONS_API Connection()=default
void SetConnectionStatus(ConnectionStatus value)
Definition Connection.h:123
AWS_CODESTARCONNECTIONS_API Connection(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:69
void SetConnectionName(ConnectionNameT &&value)
Definition Connection.h:48
const Aws::String & GetHostArn() const
Definition Connection.h:138
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:74
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:106
const Aws::String & GetConnectionArn() const
Definition Connection.h:66
Connection & WithHostArn(HostArnT &&value)
Definition Connection.h:146
Connection & WithConnectionStatus(ConnectionStatus value)
Definition Connection.h:127
const Aws::String & GetConnectionName() const
Definition Connection.h:45
ConnectionStatus GetConnectionStatus() const
Definition Connection.h:121
AWS_CODESTARCONNECTIONS_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerAccountId() const
Definition Connection.h:103
Connection & WithProviderType(ProviderType value)
Definition Connection.h:91
void SetProviderType(ProviderType value)
Definition Connection.h:87
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue