AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectionSummary.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apprunner/model/ProviderType.h>
10#include <aws/apprunner/model/ConnectionStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppRunner
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPRUNNER_API ConnectionSummary() = default;
39 AWS_APPRUNNER_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
49 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
50 template<typename ConnectionNameT = Aws::String>
51 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
52 template<typename ConnectionNameT = Aws::String>
53 ConnectionSummary& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
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) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
64 template<typename ConnectionArnT = Aws::String>
65 ConnectionSummary& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
67
69
72 inline ProviderType GetProviderType() const { return m_providerType; }
73 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
74 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
75 inline ConnectionSummary& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
77
79
84 inline ConnectionStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(ConnectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
87 inline ConnectionSummary& WithStatus(ConnectionStatus value) { SetStatus(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
95 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 ConnectionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
101 private:
102
103 Aws::String m_connectionName;
104 bool m_connectionNameHasBeenSet = false;
105
106 Aws::String m_connectionArn;
107 bool m_connectionArnHasBeenSet = false;
108
109 ProviderType m_providerType{ProviderType::NOT_SET};
110 bool m_providerTypeHasBeenSet = false;
111
113 bool m_statusHasBeenSet = false;
114
115 Aws::Utils::DateTime m_createdAt{};
116 bool m_createdAtHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace AppRunner
121} // 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