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/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
35 {
36 public:
37 AWS_APPRUNNER_API Connection();
38 AWS_APPRUNNER_API Connection(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPRUNNER_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
48 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
49 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
50 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
51 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
52 inline Connection& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
53 inline Connection& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
54 inline Connection& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
56
58
61 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
62 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
63 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
64 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
65 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
66 inline Connection& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
67 inline Connection& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
68 inline Connection& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
70
72
75 inline const ProviderType& GetProviderType() const{ return m_providerType; }
76 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
77 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
78 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
79 inline Connection& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
80 inline Connection& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
82
84
89 inline const ConnectionStatus& GetStatus() const{ return m_status; }
90 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
91 inline void SetStatus(const ConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
92 inline void SetStatus(ConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
93 inline Connection& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;}
94 inline Connection& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
104 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
105 inline Connection& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
106 inline Connection& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_connectionName;
111 bool m_connectionNameHasBeenSet = false;
112
113 Aws::String m_connectionArn;
114 bool m_connectionArnHasBeenSet = false;
115
116 ProviderType m_providerType;
117 bool m_providerTypeHasBeenSet = false;
118
119 ConnectionStatus m_status;
120 bool m_statusHasBeenSet = false;
121
122 Aws::Utils::DateTime m_createdAt;
123 bool m_createdAtHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace AppRunner
128} // namespace Aws
Connection & WithStatus(const ConnectionStatus &value)
Definition Connection.h:93
Connection & WithConnectionArn(const char *value)
Definition Connection.h:68
Connection & WithProviderType(const ProviderType &value)
Definition Connection.h:79
void SetConnectionArn(const Aws::String &value)
Definition Connection.h:63
Connection & WithProviderType(ProviderType &&value)
Definition Connection.h:80
Connection & WithConnectionArn(const Aws::String &value)
Definition Connection.h:66
Connection & WithConnectionName(Aws::String &&value)
Definition Connection.h:53
const Aws::String & GetConnectionArn() const
Definition Connection.h:61
void SetProviderType(ProviderType &&value)
Definition Connection.h:78
AWS_APPRUNNER_API Connection()
Connection & WithConnectionArn(Aws::String &&value)
Definition Connection.h:67
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connection.h:101
const Aws::String & GetConnectionName() const
Definition Connection.h:47
void SetConnectionName(const char *value)
Definition Connection.h:51
AWS_APPRUNNER_API Connection(Aws::Utils::Json::JsonView jsonValue)
const ProviderType & GetProviderType() const
Definition Connection.h:75
Connection & WithConnectionName(const char *value)
Definition Connection.h:54
void SetConnectionName(const Aws::String &value)
Definition Connection.h:49
void SetConnectionName(Aws::String &&value)
Definition Connection.h:50
void SetProviderType(const ProviderType &value)
Definition Connection.h:77
void SetStatus(ConnectionStatus &&value)
Definition Connection.h:92
Connection & WithStatus(ConnectionStatus &&value)
Definition Connection.h:94
void SetStatus(const ConnectionStatus &value)
Definition Connection.h:91
void SetConnectionArn(Aws::String &&value)
Definition Connection.h:64
Connection & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Connection.h:105
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Connection.h:104
Connection & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Connection.h:106
AWS_APPRUNNER_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Connection.h:103
Connection & WithConnectionName(const Aws::String &value)
Definition Connection.h:52
const ConnectionStatus & GetStatus() const
Definition Connection.h:89
void SetConnectionArn(const char *value)
Definition Connection.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue