AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/codestar-connections/model/ConnectionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeStarconnections
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_CODESTARCONNECTIONS_API Connection() = default;
41 AWS_CODESTARCONNECTIONS_API Connection(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODESTARCONNECTIONS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
52 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
53 template<typename ConnectionNameT = Aws::String>
54 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
55 template<typename ConnectionNameT = Aws::String>
56 Connection& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
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) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
70 template<typename ConnectionArnT = Aws::String>
71 Connection& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
73
75
79 inline ProviderType GetProviderType() const { return m_providerType; }
80 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
81 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
82 inline Connection& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
84
86
91 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
92 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
93 template<typename OwnerAccountIdT = Aws::String>
94 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
95 template<typename OwnerAccountIdT = Aws::String>
96 Connection& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
98
100
103 inline ConnectionStatus GetConnectionStatus() const { return m_connectionStatus; }
104 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
105 inline void SetConnectionStatus(ConnectionStatus value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
108
110
114 inline const Aws::String& GetHostArn() const { return m_hostArn; }
115 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
116 template<typename HostArnT = Aws::String>
117 void SetHostArn(HostArnT&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::forward<HostArnT>(value); }
118 template<typename HostArnT = Aws::String>
119 Connection& WithHostArn(HostArnT&& value) { SetHostArn(std::forward<HostArnT>(value)); return *this;}
121 private:
122
123 Aws::String m_connectionName;
124 bool m_connectionNameHasBeenSet = false;
125
126 Aws::String m_connectionArn;
127 bool m_connectionArnHasBeenSet = false;
128
129 ProviderType m_providerType{ProviderType::NOT_SET};
130 bool m_providerTypeHasBeenSet = false;
131
132 Aws::String m_ownerAccountId;
133 bool m_ownerAccountIdHasBeenSet = false;
134
136 bool m_connectionStatusHasBeenSet = false;
137
138 Aws::String m_hostArn;
139 bool m_hostArnHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CodeStarconnections
144} // namespace Aws
Connection & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:96
AWS_CODESTARCONNECTIONS_API Connection()=default
void SetConnectionStatus(ConnectionStatus value)
Definition Connection.h:105
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:54
const Aws::String & GetHostArn() const
Definition Connection.h:114
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:71
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Connection.h:94
const Aws::String & GetConnectionArn() const
Definition Connection.h:66
Connection & WithHostArn(HostArnT &&value)
Definition Connection.h:119
Connection & WithConnectionStatus(ConnectionStatus value)
Definition Connection.h:106
const Aws::String & GetConnectionName() const
Definition Connection.h:51
ConnectionStatus GetConnectionStatus() const
Definition Connection.h:103
AWS_CODESTARCONNECTIONS_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerAccountId() const
Definition Connection.h:91
Connection & WithProviderType(ProviderType value)
Definition Connection.h:82
void SetProviderType(ProviderType value)
Definition Connection.h:81
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue