AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DeploymentBackend.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DatabaseConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
30 public:
31 AWS_AMPLIFYGEN3_API DeploymentBackend() = default;
32 AWS_AMPLIFYGEN3_API DeploymentBackend(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetMigrationsDirectory() const { return m_migrationsDirectory; }
42 inline bool MigrationsDirectoryHasBeenSet() const { return m_migrationsDirectoryHasBeenSet; }
43 template <typename MigrationsDirectoryT = Aws::String>
44 void SetMigrationsDirectory(MigrationsDirectoryT&& value) {
45 m_migrationsDirectoryHasBeenSet = true;
46 m_migrationsDirectory = std::forward<MigrationsDirectoryT>(value);
47 }
48 template <typename MigrationsDirectoryT = Aws::String>
49 DeploymentBackend& WithMigrationsDirectory(MigrationsDirectoryT&& value) {
50 SetMigrationsDirectory(std::forward<MigrationsDirectoryT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAuth() const { return m_auth; }
61 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
62 template <typename AuthT = Aws::String>
63 void SetAuth(AuthT&& value) {
64 m_authHasBeenSet = true;
65 m_auth = std::forward<AuthT>(value);
66 }
67 template <typename AuthT = Aws::String>
68 DeploymentBackend& WithAuth(AuthT&& value) {
69 SetAuth(std::forward<AuthT>(value));
70 return *this;
71 }
73
75
79 inline const DatabaseConfig& GetDatabase() const { return m_database; }
80 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
81 template <typename DatabaseT = DatabaseConfig>
82 void SetDatabase(DatabaseT&& value) {
83 m_databaseHasBeenSet = true;
84 m_database = std::forward<DatabaseT>(value);
85 }
86 template <typename DatabaseT = DatabaseConfig>
87 DeploymentBackend& WithDatabase(DatabaseT&& value) {
88 SetDatabase(std::forward<DatabaseT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_migrationsDirectory;
94
95 Aws::String m_auth;
96
97 DatabaseConfig m_database;
98 bool m_migrationsDirectoryHasBeenSet = false;
99 bool m_authHasBeenSet = false;
100 bool m_databaseHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AmplifyGen3
105} // namespace Aws
const Aws::String & GetMigrationsDirectory() const
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentBackend & WithAuth(AuthT &&value)
const DatabaseConfig & GetDatabase() const
DeploymentBackend & WithDatabase(DatabaseT &&value)
DeploymentBackend & WithMigrationsDirectory(MigrationsDirectoryT &&value)
AWS_AMPLIFYGEN3_API DeploymentBackend(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API DeploymentBackend & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API DeploymentBackend()=default
void SetMigrationsDirectory(MigrationsDirectoryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue