AWS SDK for C++  0.14.3
AWS SDK for C++
RdsDbInstance.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  RdsDbInstance();
41  RdsDbInstance& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetRdsDbInstanceArn() const{ return m_rdsDbInstanceArn; }
48 
52  inline void SetRdsDbInstanceArn(const Aws::String& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = value; }
53 
57  inline void SetRdsDbInstanceArn(Aws::String&& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = value; }
58 
62  inline void SetRdsDbInstanceArn(const char* value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn.assign(value); }
63 
67  inline RdsDbInstance& WithRdsDbInstanceArn(const Aws::String& value) { SetRdsDbInstanceArn(value); return *this;}
68 
72  inline RdsDbInstance& WithRdsDbInstanceArn(Aws::String&& value) { SetRdsDbInstanceArn(value); return *this;}
73 
77  inline RdsDbInstance& WithRdsDbInstanceArn(const char* value) { SetRdsDbInstanceArn(value); return *this;}
78 
82  inline const Aws::String& GetDbInstanceIdentifier() const{ return m_dbInstanceIdentifier; }
83 
87  inline void SetDbInstanceIdentifier(const Aws::String& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = value; }
88 
92  inline void SetDbInstanceIdentifier(Aws::String&& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = value; }
93 
97  inline void SetDbInstanceIdentifier(const char* value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier.assign(value); }
98 
102  inline RdsDbInstance& WithDbInstanceIdentifier(const Aws::String& value) { SetDbInstanceIdentifier(value); return *this;}
103 
107  inline RdsDbInstance& WithDbInstanceIdentifier(Aws::String&& value) { SetDbInstanceIdentifier(value); return *this;}
108 
112  inline RdsDbInstance& WithDbInstanceIdentifier(const char* value) { SetDbInstanceIdentifier(value); return *this;}
113 
117  inline const Aws::String& GetDbUser() const{ return m_dbUser; }
118 
122  inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
123 
127  inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
128 
132  inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
133 
137  inline RdsDbInstance& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
138 
142  inline RdsDbInstance& WithDbUser(Aws::String&& value) { SetDbUser(value); return *this;}
143 
147  inline RdsDbInstance& WithDbUser(const char* value) { SetDbUser(value); return *this;}
148 
153  inline const Aws::String& GetDbPassword() const{ return m_dbPassword; }
154 
159  inline void SetDbPassword(const Aws::String& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = value; }
160 
165  inline void SetDbPassword(Aws::String&& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = value; }
166 
171  inline void SetDbPassword(const char* value) { m_dbPasswordHasBeenSet = true; m_dbPassword.assign(value); }
172 
177  inline RdsDbInstance& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;}
178 
183  inline RdsDbInstance& WithDbPassword(Aws::String&& value) { SetDbPassword(value); return *this;}
184 
189  inline RdsDbInstance& WithDbPassword(const char* value) { SetDbPassword(value); return *this;}
190 
194  inline const Aws::String& GetRegion() const{ return m_region; }
195 
199  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
200 
204  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
205 
209  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
210 
214  inline RdsDbInstance& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
215 
219  inline RdsDbInstance& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
220 
224  inline RdsDbInstance& WithRegion(const char* value) { SetRegion(value); return *this;}
225 
229  inline const Aws::String& GetAddress() const{ return m_address; }
230 
234  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
235 
239  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = value; }
240 
244  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
245 
249  inline RdsDbInstance& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
250 
254  inline RdsDbInstance& WithAddress(Aws::String&& value) { SetAddress(value); return *this;}
255 
259  inline RdsDbInstance& WithAddress(const char* value) { SetAddress(value); return *this;}
260 
264  inline const Aws::String& GetEngine() const{ return m_engine; }
265 
269  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
270 
274  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = value; }
275 
279  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
280 
284  inline RdsDbInstance& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
285 
289  inline RdsDbInstance& WithEngine(Aws::String&& value) { SetEngine(value); return *this;}
290 
294  inline RdsDbInstance& WithEngine(const char* value) { SetEngine(value); return *this;}
295 
299  inline const Aws::String& GetStackId() const{ return m_stackId; }
300 
304  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
305 
309  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
310 
314  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
315 
319  inline RdsDbInstance& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
320 
324  inline RdsDbInstance& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
325 
329  inline RdsDbInstance& WithStackId(const char* value) { SetStackId(value); return *this;}
330 
337  inline bool GetMissingOnRds() const{ return m_missingOnRds; }
338 
345  inline void SetMissingOnRds(bool value) { m_missingOnRdsHasBeenSet = true; m_missingOnRds = value; }
346 
353  inline RdsDbInstance& WithMissingOnRds(bool value) { SetMissingOnRds(value); return *this;}
354 
355  private:
356  Aws::String m_rdsDbInstanceArn;
357  bool m_rdsDbInstanceArnHasBeenSet;
358  Aws::String m_dbInstanceIdentifier;
359  bool m_dbInstanceIdentifierHasBeenSet;
360  Aws::String m_dbUser;
361  bool m_dbUserHasBeenSet;
362  Aws::String m_dbPassword;
363  bool m_dbPasswordHasBeenSet;
364  Aws::String m_region;
365  bool m_regionHasBeenSet;
366  Aws::String m_address;
367  bool m_addressHasBeenSet;
368  Aws::String m_engine;
369  bool m_engineHasBeenSet;
370  Aws::String m_stackId;
371  bool m_stackIdHasBeenSet;
372  bool m_missingOnRds;
373  bool m_missingOnRdsHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace OpsWorks
378 } // namespace Aws
RdsDbInstance & WithDbInstanceIdentifier(const char *value)
void SetStackId(const Aws::String &value)
RdsDbInstance & WithDbPassword(const Aws::String &value)
void SetAddress(Aws::String &&value)
const Aws::String & GetDbUser() const
void SetAddress(const char *value)
RdsDbInstance & WithEngine(Aws::String &&value)
void SetStackId(const char *value)
RdsDbInstance & WithStackId(const Aws::String &value)
void SetRegion(const char *value)
RdsDbInstance & WithRdsDbInstanceArn(const char *value)
Definition: RdsDbInstance.h:77
RdsDbInstance & WithRegion(Aws::String &&value)
RdsDbInstance & WithRdsDbInstanceArn(const Aws::String &value)
Definition: RdsDbInstance.h:67
RdsDbInstance & WithDbPassword(Aws::String &&value)
void SetDbUser(Aws::String &&value)
RdsDbInstance & WithMissingOnRds(bool value)
RdsDbInstance & WithDbInstanceIdentifier(Aws::String &&value)
void SetDbUser(const char *value)
RdsDbInstance & WithStackId(Aws::String &&value)
RdsDbInstance & WithDbPassword(const char *value)
RdsDbInstance & WithRegion(const char *value)
RdsDbInstance & WithAddress(const char *value)
RdsDbInstance & WithDbUser(const char *value)
void SetRdsDbInstanceArn(const Aws::String &value)
Definition: RdsDbInstance.h:52
RdsDbInstance & WithAddress(const Aws::String &value)
void SetStackId(Aws::String &&value)
RdsDbInstance & WithEngine(const Aws::String &value)
const Aws::String & GetDbInstanceIdentifier() const
Definition: RdsDbInstance.h:82
RdsDbInstance & WithDbUser(const Aws::String &value)
void SetEngine(const Aws::String &value)
void SetRegion(Aws::String &&value)
const Aws::String & GetEngine() const
void SetEngine(const char *value)
RdsDbInstance & WithDbUser(Aws::String &&value)
void SetDbPassword(Aws::String &&value)
const Aws::String & GetStackId() const
void SetDbInstanceIdentifier(Aws::String &&value)
Definition: RdsDbInstance.h:92
const Aws::String & GetRegion() const
void SetRdsDbInstanceArn(Aws::String &&value)
Definition: RdsDbInstance.h:57
RdsDbInstance & WithRdsDbInstanceArn(Aws::String &&value)
Definition: RdsDbInstance.h:72
RdsDbInstance & WithStackId(const char *value)
const Aws::String & GetRdsDbInstanceArn() const
Definition: RdsDbInstance.h:47
void SetEngine(Aws::String &&value)
void SetRdsDbInstanceArn(const char *value)
Definition: RdsDbInstance.h:62
RdsDbInstance & WithRegion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
void SetRegion(const Aws::String &value)
RdsDbInstance & WithAddress(Aws::String &&value)
void SetDbPassword(const char *value)
void SetDbInstanceIdentifier(const char *value)
Definition: RdsDbInstance.h:97
void SetDbInstanceIdentifier(const Aws::String &value)
Definition: RdsDbInstance.h:87
void SetDbPassword(const Aws::String &value)
RdsDbInstance & WithEngine(const char *value)
RdsDbInstance & WithDbInstanceIdentifier(const Aws::String &value)
const Aws::String & GetAddress() const
void SetAddress(const Aws::String &value)
void SetDbUser(const Aws::String &value)
const Aws::String & GetDbPassword() const
JSON (JavaScript Object Notation).