AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeconnections/model/ProviderType.h>
10#include <aws/codeconnections/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 CodeConnections
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_CODECONNECTIONS_API Connection();
41 AWS_CODECONNECTIONS_API Connection(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODECONNECTIONS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODECONNECTIONS_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 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
54 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
55 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
56 inline Connection& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
57 inline Connection& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
58 inline Connection& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
60
62
68 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
69 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
70 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
71 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
72 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
73 inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
74 inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
75 inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
77
79
83 inline const ProviderType& GetProviderType() const{ return m_providerType; }
84 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
85 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
86 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
87 inline Connection& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
88 inline Connection& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
90
92
97 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
98 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
99 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
100 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
101 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
102 inline Connection& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
103 inline Connection& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
104 inline Connection& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
106
108
111 inline const ConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; }
112 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
113 inline void SetConnectionStatus(const ConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
114 inline void SetConnectionStatus(ConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); }
115 inline Connection& WithConnectionStatus(const ConnectionStatus& value) { SetConnectionStatus(value); return *this;}
116 inline Connection& WithConnectionStatus(ConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;}
118
120
124 inline const Aws::String& GetHostArn() const{ return m_hostArn; }
125 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
126 inline void SetHostArn(const Aws::String& value) { m_hostArnHasBeenSet = true; m_hostArn = value; }
127 inline void SetHostArn(Aws::String&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::move(value); }
128 inline void SetHostArn(const char* value) { m_hostArnHasBeenSet = true; m_hostArn.assign(value); }
129 inline Connection& WithHostArn(const Aws::String& value) { SetHostArn(value); return *this;}
130 inline Connection& WithHostArn(Aws::String&& value) { SetHostArn(std::move(value)); return *this;}
131 inline Connection& WithHostArn(const char* value) { SetHostArn(value); return *this;}
133 private:
134
135 Aws::String m_connectionName;
136 bool m_connectionNameHasBeenSet = false;
137
138 Aws::String m_connectionArn;
139 bool m_connectionArnHasBeenSet = false;
140
141 ProviderType m_providerType;
142 bool m_providerTypeHasBeenSet = false;
143
144 Aws::String m_ownerAccountId;
145 bool m_ownerAccountIdHasBeenSet = false;
146
147 ConnectionStatus m_connectionStatus;
148 bool m_connectionStatusHasBeenSet = false;
149
150 Aws::String m_hostArn;
151 bool m_hostArnHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CodeConnections
156} // namespace Aws
void SetConnectionName(Aws::String &&value)
Definition Connection.h:54
const Aws::String & GetConnectionName() const
Definition Connection.h:51
Connection & WithConnectionArn(Aws::String &&value)
Definition Connection.h:74
const ConnectionStatus & GetConnectionStatus() const
Definition Connection.h:111
void SetHostArn(Aws::String &&value)
Definition Connection.h:127
void SetOwnerAccountId(const Aws::String &value)
Definition Connection.h:99
Connection & WithConnectionStatus(ConnectionStatus &&value)
Definition Connection.h:116
void SetConnectionStatus(const ConnectionStatus &value)
Definition Connection.h:113
Connection & WithHostArn(const Aws::String &value)
Definition Connection.h:129
void SetHostArn(const char *value)
Definition Connection.h:128
Connection & WithHostArn(Aws::String &&value)
Definition Connection.h:130
Connection & WithConnectionName(const Aws::String &value)
Definition Connection.h:56
AWS_CODECONNECTIONS_API Connection(Aws::Utils::Json::JsonView jsonValue)
void SetHostArn(const Aws::String &value)
Definition Connection.h:126
const ProviderType & GetProviderType() const
Definition Connection.h:83
Connection & WithConnectionName(Aws::String &&value)
Definition Connection.h:57
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectionName(const Aws::String &value)
Definition Connection.h:53
AWS_CODECONNECTIONS_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionArn(const char *value)
Definition Connection.h:72
const Aws::String & GetHostArn() const
Definition Connection.h:124
Connection & WithConnectionArn(const Aws::String &value)
Definition Connection.h:73
void SetConnectionArn(const Aws::String &value)
Definition Connection.h:70
Connection & WithOwnerAccountId(const char *value)
Definition Connection.h:104
void SetProviderType(ProviderType &&value)
Definition Connection.h:86
Connection & WithProviderType(ProviderType &&value)
Definition Connection.h:88
void SetOwnerAccountId(Aws::String &&value)
Definition Connection.h:100
Connection & WithConnectionStatus(const ConnectionStatus &value)
Definition Connection.h:115
void SetConnectionArn(Aws::String &&value)
Definition Connection.h:71
const Aws::String & GetConnectionArn() const
Definition Connection.h:68
AWS_CODECONNECTIONS_API Connection()
void SetConnectionName(const char *value)
Definition Connection.h:55
void SetOwnerAccountId(const char *value)
Definition Connection.h:101
void SetConnectionStatus(ConnectionStatus &&value)
Definition Connection.h:114
Connection & WithHostArn(const char *value)
Definition Connection.h:131
Connection & WithOwnerAccountId(const Aws::String &value)
Definition Connection.h:102
Connection & WithOwnerAccountId(Aws::String &&value)
Definition Connection.h:103
void SetProviderType(const ProviderType &value)
Definition Connection.h:85
const Aws::String & GetOwnerAccountId() const
Definition Connection.h:97
Connection & WithProviderType(const ProviderType &value)
Definition Connection.h:87
Connection & WithConnectionName(const char *value)
Definition Connection.h:58
Connection & WithConnectionArn(const char *value)
Definition Connection.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue