AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Database.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-sap/model/DatabaseType.h>
11#include <aws/ssm-sap/model/DatabaseStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ssm-sap/model/ApplicationCredential.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SsmSap
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SSMSAP_API Database();
41 AWS_SSMSAP_API Database(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSMSAP_API Database& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
51 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
52 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
53 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
54 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
55 inline Database& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
56 inline Database& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
57 inline Database& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
59
61
64 inline const Aws::String& GetComponentId() const{ return m_componentId; }
65 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
66 inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; }
67 inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); }
68 inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); }
69 inline Database& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;}
70 inline Database& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;}
71 inline Database& WithComponentId(const char* value) { SetComponentId(value); return *this;}
73
75
78 inline const Aws::Vector<ApplicationCredential>& GetCredentials() const{ return m_credentials; }
79 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
80 inline void SetCredentials(const Aws::Vector<ApplicationCredential>& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
81 inline void SetCredentials(Aws::Vector<ApplicationCredential>&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
82 inline Database& WithCredentials(const Aws::Vector<ApplicationCredential>& value) { SetCredentials(value); return *this;}
83 inline Database& WithCredentials(Aws::Vector<ApplicationCredential>&& value) { SetCredentials(std::move(value)); return *this;}
84 inline Database& AddCredentials(const ApplicationCredential& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(value); return *this; }
85 inline Database& AddCredentials(ApplicationCredential&& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::String& GetDatabaseId() const{ return m_databaseId; }
93 inline bool DatabaseIdHasBeenSet() const { return m_databaseIdHasBeenSet; }
94 inline void SetDatabaseId(const Aws::String& value) { m_databaseIdHasBeenSet = true; m_databaseId = value; }
95 inline void SetDatabaseId(Aws::String&& value) { m_databaseIdHasBeenSet = true; m_databaseId = std::move(value); }
96 inline void SetDatabaseId(const char* value) { m_databaseIdHasBeenSet = true; m_databaseId.assign(value); }
97 inline Database& WithDatabaseId(const Aws::String& value) { SetDatabaseId(value); return *this;}
98 inline Database& WithDatabaseId(Aws::String&& value) { SetDatabaseId(std::move(value)); return *this;}
99 inline Database& WithDatabaseId(const char* value) { SetDatabaseId(value); return *this;}
101
103
106 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
107 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
108 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
109 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
110 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
111 inline Database& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
112 inline Database& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
113 inline Database& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
115
117
120 inline const DatabaseType& GetDatabaseType() const{ return m_databaseType; }
121 inline bool DatabaseTypeHasBeenSet() const { return m_databaseTypeHasBeenSet; }
122 inline void SetDatabaseType(const DatabaseType& value) { m_databaseTypeHasBeenSet = true; m_databaseType = value; }
123 inline void SetDatabaseType(DatabaseType&& value) { m_databaseTypeHasBeenSet = true; m_databaseType = std::move(value); }
124 inline Database& WithDatabaseType(const DatabaseType& value) { SetDatabaseType(value); return *this;}
125 inline Database& WithDatabaseType(DatabaseType&& value) { SetDatabaseType(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetArn() const{ return m_arn; }
133 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
134 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
135 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
136 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
137 inline Database& WithArn(const Aws::String& value) { SetArn(value); return *this;}
138 inline Database& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
139 inline Database& WithArn(const char* value) { SetArn(value); return *this;}
141
143
146 inline const DatabaseStatus& GetStatus() const{ return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(const DatabaseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
149 inline void SetStatus(DatabaseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
150 inline Database& WithStatus(const DatabaseStatus& value) { SetStatus(value); return *this;}
151 inline Database& WithStatus(DatabaseStatus&& value) { SetStatus(std::move(value)); return *this;}
153
155
158 inline const Aws::String& GetPrimaryHost() const{ return m_primaryHost; }
159 inline bool PrimaryHostHasBeenSet() const { return m_primaryHostHasBeenSet; }
160 inline void SetPrimaryHost(const Aws::String& value) { m_primaryHostHasBeenSet = true; m_primaryHost = value; }
161 inline void SetPrimaryHost(Aws::String&& value) { m_primaryHostHasBeenSet = true; m_primaryHost = std::move(value); }
162 inline void SetPrimaryHost(const char* value) { m_primaryHostHasBeenSet = true; m_primaryHost.assign(value); }
163 inline Database& WithPrimaryHost(const Aws::String& value) { SetPrimaryHost(value); return *this;}
164 inline Database& WithPrimaryHost(Aws::String&& value) { SetPrimaryHost(std::move(value)); return *this;}
165 inline Database& WithPrimaryHost(const char* value) { SetPrimaryHost(value); return *this;}
167
169
172 inline int GetSQLPort() const{ return m_sQLPort; }
173 inline bool SQLPortHasBeenSet() const { return m_sQLPortHasBeenSet; }
174 inline void SetSQLPort(int value) { m_sQLPortHasBeenSet = true; m_sQLPort = value; }
175 inline Database& WithSQLPort(int value) { SetSQLPort(value); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
183 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
184 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
185 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
186 inline Database& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
187 inline Database& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
189
191
195 inline const Aws::Vector<Aws::String>& GetConnectedComponentArns() const{ return m_connectedComponentArns; }
196 inline bool ConnectedComponentArnsHasBeenSet() const { return m_connectedComponentArnsHasBeenSet; }
197 inline void SetConnectedComponentArns(const Aws::Vector<Aws::String>& value) { m_connectedComponentArnsHasBeenSet = true; m_connectedComponentArns = value; }
198 inline void SetConnectedComponentArns(Aws::Vector<Aws::String>&& value) { m_connectedComponentArnsHasBeenSet = true; m_connectedComponentArns = std::move(value); }
201 inline Database& AddConnectedComponentArns(const Aws::String& value) { m_connectedComponentArnsHasBeenSet = true; m_connectedComponentArns.push_back(value); return *this; }
202 inline Database& AddConnectedComponentArns(Aws::String&& value) { m_connectedComponentArnsHasBeenSet = true; m_connectedComponentArns.push_back(std::move(value)); return *this; }
203 inline Database& AddConnectedComponentArns(const char* value) { m_connectedComponentArnsHasBeenSet = true; m_connectedComponentArns.push_back(value); return *this; }
205 private:
206
207 Aws::String m_applicationId;
208 bool m_applicationIdHasBeenSet = false;
209
210 Aws::String m_componentId;
211 bool m_componentIdHasBeenSet = false;
212
214 bool m_credentialsHasBeenSet = false;
215
216 Aws::String m_databaseId;
217 bool m_databaseIdHasBeenSet = false;
218
219 Aws::String m_databaseName;
220 bool m_databaseNameHasBeenSet = false;
221
222 DatabaseType m_databaseType;
223 bool m_databaseTypeHasBeenSet = false;
224
225 Aws::String m_arn;
226 bool m_arnHasBeenSet = false;
227
228 DatabaseStatus m_status;
229 bool m_statusHasBeenSet = false;
230
231 Aws::String m_primaryHost;
232 bool m_primaryHostHasBeenSet = false;
233
234 int m_sQLPort;
235 bool m_sQLPortHasBeenSet = false;
236
237 Aws::Utils::DateTime m_lastUpdated;
238 bool m_lastUpdatedHasBeenSet = false;
239
240 Aws::Vector<Aws::String> m_connectedComponentArns;
241 bool m_connectedComponentArnsHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace SsmSap
246} // namespace Aws
Database & WithCredentials(const Aws::Vector< ApplicationCredential > &value)
Definition Database.h:82
const Aws::String & GetComponentId() const
Definition Database.h:64
const Aws::String & GetDatabaseId() const
Definition Database.h:92
Database & WithPrimaryHost(Aws::String &&value)
Definition Database.h:164
const DatabaseStatus & GetStatus() const
Definition Database.h:146
Database & WithStatus(DatabaseStatus &&value)
Definition Database.h:151
Database & WithComponentId(const Aws::String &value)
Definition Database.h:69
void SetArn(Aws::String &&value)
Definition Database.h:135
Database & WithDatabaseName(const Aws::String &value)
Definition Database.h:111
void SetStatus(const DatabaseStatus &value)
Definition Database.h:148
void SetCredentials(const Aws::Vector< ApplicationCredential > &value)
Definition Database.h:80
Database & WithDatabaseId(const Aws::String &value)
Definition Database.h:97
Database & WithComponentId(const char *value)
Definition Database.h:71
bool DatabaseTypeHasBeenSet() const
Definition Database.h:121
void SetConnectedComponentArns(Aws::Vector< Aws::String > &&value)
Definition Database.h:198
bool ConnectedComponentArnsHasBeenSet() const
Definition Database.h:196
Database & AddConnectedComponentArns(const Aws::String &value)
Definition Database.h:201
void SetArn(const Aws::String &value)
Definition Database.h:134
const Aws::String & GetPrimaryHost() const
Definition Database.h:158
Database & WithArn(Aws::String &&value)
Definition Database.h:138
Database & WithConnectedComponentArns(const Aws::Vector< Aws::String > &value)
Definition Database.h:199
Database & WithComponentId(Aws::String &&value)
Definition Database.h:70
Database & AddConnectedComponentArns(Aws::String &&value)
Definition Database.h:202
void SetDatabaseId(const char *value)
Definition Database.h:96
const Aws::String & GetArn() const
Definition Database.h:132
void SetPrimaryHost(const Aws::String &value)
Definition Database.h:160
void SetComponentId(const char *value)
Definition Database.h:68
const Aws::Vector< ApplicationCredential > & GetCredentials() const
Definition Database.h:78
AWS_SSMSAP_API Database(Aws::Utils::Json::JsonView jsonValue)
void SetDatabaseName(const Aws::String &value)
Definition Database.h:108
Database & WithLastUpdated(Aws::Utils::DateTime &&value)
Definition Database.h:187
Database & WithApplicationId(const char *value)
Definition Database.h:57
Database & WithApplicationId(Aws::String &&value)
Definition Database.h:56
bool ApplicationIdHasBeenSet() const
Definition Database.h:51
void SetApplicationId(const Aws::String &value)
Definition Database.h:52
Database & WithConnectedComponentArns(Aws::Vector< Aws::String > &&value)
Definition Database.h:200
void SetSQLPort(int value)
Definition Database.h:174
void SetDatabaseId(const Aws::String &value)
Definition Database.h:94
bool DatabaseIdHasBeenSet() const
Definition Database.h:93
const Aws::String & GetDatabaseName() const
Definition Database.h:106
void SetPrimaryHost(Aws::String &&value)
Definition Database.h:161
Database & WithDatabaseType(const DatabaseType &value)
Definition Database.h:124
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastUpdatedHasBeenSet() const
Definition Database.h:183
const Aws::Vector< Aws::String > & GetConnectedComponentArns() const
Definition Database.h:195
Database & WithDatabaseName(Aws::String &&value)
Definition Database.h:112
void SetCredentials(Aws::Vector< ApplicationCredential > &&value)
Definition Database.h:81
Database & WithApplicationId(const Aws::String &value)
Definition Database.h:55
void SetDatabaseName(const char *value)
Definition Database.h:110
void SetComponentId(Aws::String &&value)
Definition Database.h:67
Database & AddConnectedComponentArns(const char *value)
Definition Database.h:203
void SetApplicationId(const char *value)
Definition Database.h:54
void SetDatabaseName(Aws::String &&value)
Definition Database.h:109
Database & WithLastUpdated(const Aws::Utils::DateTime &value)
Definition Database.h:186
const Aws::String & GetApplicationId() const
Definition Database.h:50
Database & AddCredentials(ApplicationCredential &&value)
Definition Database.h:85
Database & WithDatabaseId(Aws::String &&value)
Definition Database.h:98
Database & WithPrimaryHost(const char *value)
Definition Database.h:165
bool PrimaryHostHasBeenSet() const
Definition Database.h:159
void SetArn(const char *value)
Definition Database.h:136
bool DatabaseNameHasBeenSet() const
Definition Database.h:107
Database & WithArn(const char *value)
Definition Database.h:139
Database & WithPrimaryHost(const Aws::String &value)
Definition Database.h:163
Database & WithStatus(const DatabaseStatus &value)
Definition Database.h:150
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Database.h:182
void SetDatabaseType(DatabaseType &&value)
Definition Database.h:123
Database & WithArn(const Aws::String &value)
Definition Database.h:137
bool StatusHasBeenSet() const
Definition Database.h:147
Database & WithDatabaseName(const char *value)
Definition Database.h:113
bool ComponentIdHasBeenSet() const
Definition Database.h:65
AWS_SSMSAP_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
Database & WithSQLPort(int value)
Definition Database.h:175
Database & AddCredentials(const ApplicationCredential &value)
Definition Database.h:84
void SetComponentId(const Aws::String &value)
Definition Database.h:66
bool SQLPortHasBeenSet() const
Definition Database.h:173
void SetDatabaseType(const DatabaseType &value)
Definition Database.h:122
void SetDatabaseId(Aws::String &&value)
Definition Database.h:95
Database & WithCredentials(Aws::Vector< ApplicationCredential > &&value)
Definition Database.h:83
void SetLastUpdated(Aws::Utils::DateTime &&value)
Definition Database.h:185
void SetApplicationId(Aws::String &&value)
Definition Database.h:53
void SetPrimaryHost(const char *value)
Definition Database.h:162
const DatabaseType & GetDatabaseType() const
Definition Database.h:120
Database & WithDatabaseType(DatabaseType &&value)
Definition Database.h:125
void SetLastUpdated(const Aws::Utils::DateTime &value)
Definition Database.h:184
void SetConnectedComponentArns(const Aws::Vector< Aws::String > &value)
Definition Database.h:197
Database & WithDatabaseId(const char *value)
Definition Database.h:99
void SetStatus(DatabaseStatus &&value)
Definition Database.h:149
bool CredentialsHasBeenSet() const
Definition Database.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue