AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ConnectionSummary.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
32 public:
33 AWS_APPRUNNER_API ConnectionSummary() = default;
34 AWS_APPRUNNER_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
43 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
44 template <typename ConnectionNameT = Aws::String>
45 void SetConnectionName(ConnectionNameT&& value) {
46 m_connectionNameHasBeenSet = true;
47 m_connectionName = std::forward<ConnectionNameT>(value);
48 }
49 template <typename ConnectionNameT = Aws::String>
50 ConnectionSummary& WithConnectionName(ConnectionNameT&& value) {
51 SetConnectionName(std::forward<ConnectionNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
61 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
62 template <typename ConnectionArnT = Aws::String>
63 void SetConnectionArn(ConnectionArnT&& value) {
64 m_connectionArnHasBeenSet = true;
65 m_connectionArn = std::forward<ConnectionArnT>(value);
66 }
67 template <typename ConnectionArnT = Aws::String>
68 ConnectionSummary& WithConnectionArn(ConnectionArnT&& value) {
69 SetConnectionArn(std::forward<ConnectionArnT>(value));
70 return *this;
71 }
73
75
78 inline ProviderType GetProviderType() const { return m_providerType; }
79 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
80 inline void SetProviderType(ProviderType value) {
81 m_providerTypeHasBeenSet = true;
82 m_providerType = value;
83 }
85 SetProviderType(value);
86 return *this;
87 }
89
91
96 inline ConnectionStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(ConnectionStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) {
116 m_createdAtHasBeenSet = true;
117 m_createdAt = std::forward<CreatedAtT>(value);
118 }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
120 ConnectionSummary& WithCreatedAt(CreatedAtT&& value) {
121 SetCreatedAt(std::forward<CreatedAtT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_connectionName;
127
128 Aws::String m_connectionArn;
129
130 ProviderType m_providerType{ProviderType::NOT_SET};
131
133
134 Aws::Utils::DateTime m_createdAt{};
135 bool m_connectionNameHasBeenSet = false;
136 bool m_connectionArnHasBeenSet = false;
137 bool m_providerTypeHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139 bool m_createdAtHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace AppRunner
144} // namespace Aws
ConnectionSummary & WithProviderType(ProviderType value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetConnectionName(ConnectionNameT &&value)
ConnectionSummary & WithConnectionName(ConnectionNameT &&value)
ConnectionSummary & WithCreatedAt(CreatedAtT &&value)
AWS_APPRUNNER_API ConnectionSummary()=default
void SetConnectionArn(ConnectionArnT &&value)
const Aws::String & GetConnectionArn() const
ConnectionSummary & WithConnectionArn(ConnectionArnT &&value)
AWS_APPRUNNER_API ConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ConnectionStatus value)
AWS_APPRUNNER_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectionName() const
ConnectionSummary & WithStatus(ConnectionStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue