AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/ConnectionStatus.h>
9#include <aws/apprunner/model/ProviderType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppRunner {
23namespace Model {
24
31 public:
32 AWS_APPRUNNER_API Connection() = default;
33 AWS_APPRUNNER_API Connection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPRUNNER_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
42 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
43 template <typename ConnectionNameT = Aws::String>
44 void SetConnectionName(ConnectionNameT&& value) {
45 m_connectionNameHasBeenSet = true;
46 m_connectionName = std::forward<ConnectionNameT>(value);
47 }
48 template <typename ConnectionNameT = Aws::String>
49 Connection& WithConnectionName(ConnectionNameT&& value) {
50 SetConnectionName(std::forward<ConnectionNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
60 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
61 template <typename ConnectionArnT = Aws::String>
62 void SetConnectionArn(ConnectionArnT&& value) {
63 m_connectionArnHasBeenSet = true;
64 m_connectionArn = std::forward<ConnectionArnT>(value);
65 }
66 template <typename ConnectionArnT = Aws::String>
67 Connection& WithConnectionArn(ConnectionArnT&& value) {
68 SetConnectionArn(std::forward<ConnectionArnT>(value));
69 return *this;
70 }
72
74
77 inline ProviderType GetProviderType() const { return m_providerType; }
78 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
79 inline void SetProviderType(ProviderType value) {
80 m_providerTypeHasBeenSet = true;
81 m_providerType = value;
82 }
84 SetProviderType(value);
85 return *this;
86 }
88
90
95 inline ConnectionStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(ConnectionStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) {
115 m_createdAtHasBeenSet = true;
116 m_createdAt = std::forward<CreatedAtT>(value);
117 }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 Connection& WithCreatedAt(CreatedAtT&& value) {
120 SetCreatedAt(std::forward<CreatedAtT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_connectionName;
126
127 Aws::String m_connectionArn;
128
129 ProviderType m_providerType{ProviderType::NOT_SET};
130
132
133 Aws::Utils::DateTime m_createdAt{};
134 bool m_connectionNameHasBeenSet = false;
135 bool m_connectionArnHasBeenSet = false;
136 bool m_providerTypeHasBeenSet = false;
137 bool m_statusHasBeenSet = false;
138 bool m_createdAtHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace AppRunner
143} // namespace Aws
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:49
const Aws::String & GetConnectionArn() const
Definition Connection.h:59
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connection.h:111
Connection & WithConnectionArn(ConnectionArnT &&value)
Definition Connection.h:67
const Aws::String & GetConnectionName() const
Definition Connection.h:41
AWS_APPRUNNER_API Connection()=default
AWS_APPRUNNER_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & WithProviderType(ProviderType value)
Definition Connection.h:83
void SetCreatedAt(CreatedAtT &&value)
Definition Connection.h:114
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectionName(ConnectionNameT &&value)
Definition Connection.h:44
AWS_APPRUNNER_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
Connection & WithStatus(ConnectionStatus value)
Definition Connection.h:101
void SetStatus(ConnectionStatus value)
Definition Connection.h:97
void SetProviderType(ProviderType value)
Definition Connection.h:79
ConnectionStatus GetStatus() const
Definition Connection.h:95
ProviderType GetProviderType() const
Definition Connection.h:77
void SetConnectionArn(ConnectionArnT &&value)
Definition Connection.h:62
Connection & WithCreatedAt(CreatedAtT &&value)
Definition Connection.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue