AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DatabaseConnection.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/model/DatabaseConnectionMethod.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SsmSap
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SSMSAP_API DatabaseConnection();
38 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const DatabaseConnectionMethod& GetDatabaseConnectionMethod() const{ return m_databaseConnectionMethod; }
46 inline bool DatabaseConnectionMethodHasBeenSet() const { return m_databaseConnectionMethodHasBeenSet; }
47 inline void SetDatabaseConnectionMethod(const DatabaseConnectionMethod& value) { m_databaseConnectionMethodHasBeenSet = true; m_databaseConnectionMethod = value; }
48 inline void SetDatabaseConnectionMethod(DatabaseConnectionMethod&& value) { m_databaseConnectionMethodHasBeenSet = true; m_databaseConnectionMethod = std::move(value); }
52
54
57 inline const Aws::String& GetDatabaseArn() const{ return m_databaseArn; }
58 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
59 inline void SetDatabaseArn(const Aws::String& value) { m_databaseArnHasBeenSet = true; m_databaseArn = value; }
60 inline void SetDatabaseArn(Aws::String&& value) { m_databaseArnHasBeenSet = true; m_databaseArn = std::move(value); }
61 inline void SetDatabaseArn(const char* value) { m_databaseArnHasBeenSet = true; m_databaseArn.assign(value); }
62 inline DatabaseConnection& WithDatabaseArn(const Aws::String& value) { SetDatabaseArn(value); return *this;}
63 inline DatabaseConnection& WithDatabaseArn(Aws::String&& value) { SetDatabaseArn(std::move(value)); return *this;}
64 inline DatabaseConnection& WithDatabaseArn(const char* value) { SetDatabaseArn(value); return *this;}
66
68
71 inline const Aws::String& GetConnectionIp() const{ return m_connectionIp; }
72 inline bool ConnectionIpHasBeenSet() const { return m_connectionIpHasBeenSet; }
73 inline void SetConnectionIp(const Aws::String& value) { m_connectionIpHasBeenSet = true; m_connectionIp = value; }
74 inline void SetConnectionIp(Aws::String&& value) { m_connectionIpHasBeenSet = true; m_connectionIp = std::move(value); }
75 inline void SetConnectionIp(const char* value) { m_connectionIpHasBeenSet = true; m_connectionIp.assign(value); }
76 inline DatabaseConnection& WithConnectionIp(const Aws::String& value) { SetConnectionIp(value); return *this;}
77 inline DatabaseConnection& WithConnectionIp(Aws::String&& value) { SetConnectionIp(std::move(value)); return *this;}
78 inline DatabaseConnection& WithConnectionIp(const char* value) { SetConnectionIp(value); return *this;}
80 private:
81
82 DatabaseConnectionMethod m_databaseConnectionMethod;
83 bool m_databaseConnectionMethodHasBeenSet = false;
84
85 Aws::String m_databaseArn;
86 bool m_databaseArnHasBeenSet = false;
87
88 Aws::String m_connectionIp;
89 bool m_connectionIpHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SsmSap
94} // namespace Aws
DatabaseConnection & WithConnectionIp(const Aws::String &value)
void SetDatabaseConnectionMethod(const DatabaseConnectionMethod &value)
const Aws::String & GetDatabaseArn() const
DatabaseConnection & WithDatabaseArn(const char *value)
DatabaseConnection & WithDatabaseArn(Aws::String &&value)
const Aws::String & GetConnectionIp() const
const DatabaseConnectionMethod & GetDatabaseConnectionMethod() const
DatabaseConnection & WithConnectionIp(Aws::String &&value)
AWS_SSMSAP_API DatabaseConnection(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionIp(Aws::String &&value)
DatabaseConnection & WithDatabaseConnectionMethod(DatabaseConnectionMethod &&value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
DatabaseConnection & WithConnectionIp(const char *value)
DatabaseConnection & WithDatabaseArn(const Aws::String &value)
DatabaseConnection & WithDatabaseConnectionMethod(const DatabaseConnectionMethod &value)
void SetDatabaseArn(const Aws::String &value)
AWS_SSMSAP_API DatabaseConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDatabaseConnectionMethod(DatabaseConnectionMethod &&value)
void SetConnectionIp(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue