AWS SDK for C++  0.12.9
AWS SDK for C++
RegisterRdsDbInstanceRequest.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
19 
20 namespace Aws
21 {
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetStackId() const{ return m_stackId; }
41 
45  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
46 
50  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
51 
55  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
56 
60  inline RegisterRdsDbInstanceRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
61 
65  inline RegisterRdsDbInstanceRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
66 
70  inline RegisterRdsDbInstanceRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
71 
75  inline const Aws::String& GetRdsDbInstanceArn() const{ return m_rdsDbInstanceArn; }
76 
80  inline void SetRdsDbInstanceArn(const Aws::String& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = value; }
81 
85  inline void SetRdsDbInstanceArn(Aws::String&& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = value; }
86 
90  inline void SetRdsDbInstanceArn(const char* value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn.assign(value); }
91 
95  inline RegisterRdsDbInstanceRequest& WithRdsDbInstanceArn(const Aws::String& value) { SetRdsDbInstanceArn(value); return *this;}
96 
100  inline RegisterRdsDbInstanceRequest& WithRdsDbInstanceArn(Aws::String&& value) { SetRdsDbInstanceArn(value); return *this;}
101 
105  inline RegisterRdsDbInstanceRequest& WithRdsDbInstanceArn(const char* value) { SetRdsDbInstanceArn(value); return *this;}
106 
110  inline const Aws::String& GetDbUser() const{ return m_dbUser; }
111 
115  inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
116 
120  inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
121 
125  inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
126 
130  inline RegisterRdsDbInstanceRequest& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
131 
135  inline RegisterRdsDbInstanceRequest& WithDbUser(Aws::String&& value) { SetDbUser(value); return *this;}
136 
140  inline RegisterRdsDbInstanceRequest& WithDbUser(const char* value) { SetDbUser(value); return *this;}
141 
145  inline const Aws::String& GetDbPassword() const{ return m_dbPassword; }
146 
150  inline void SetDbPassword(const Aws::String& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = value; }
151 
155  inline void SetDbPassword(Aws::String&& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = value; }
156 
160  inline void SetDbPassword(const char* value) { m_dbPasswordHasBeenSet = true; m_dbPassword.assign(value); }
161 
165  inline RegisterRdsDbInstanceRequest& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;}
166 
170  inline RegisterRdsDbInstanceRequest& WithDbPassword(Aws::String&& value) { SetDbPassword(value); return *this;}
171 
175  inline RegisterRdsDbInstanceRequest& WithDbPassword(const char* value) { SetDbPassword(value); return *this;}
176 
177  private:
178  Aws::String m_stackId;
179  bool m_stackIdHasBeenSet;
180  Aws::String m_rdsDbInstanceArn;
181  bool m_rdsDbInstanceArnHasBeenSet;
182  Aws::String m_dbUser;
183  bool m_dbUserHasBeenSet;
184  Aws::String m_dbPassword;
185  bool m_dbPasswordHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace OpsWorks
190 } // namespace Aws
RegisterRdsDbInstanceRequest & WithRdsDbInstanceArn(Aws::String &&value)
RegisterRdsDbInstanceRequest & WithRdsDbInstanceArn(const char *value)
RegisterRdsDbInstanceRequest & WithDbPassword(Aws::String &&value)
RegisterRdsDbInstanceRequest & WithRdsDbInstanceArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
RegisterRdsDbInstanceRequest & WithDbPassword(const Aws::String &value)
RegisterRdsDbInstanceRequest & WithDbUser(const char *value)
RegisterRdsDbInstanceRequest & WithStackId(const Aws::String &value)
RegisterRdsDbInstanceRequest & WithDbUser(Aws::String &&value)
RegisterRdsDbInstanceRequest & WithDbPassword(const char *value)
RegisterRdsDbInstanceRequest & WithDbUser(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
RegisterRdsDbInstanceRequest & WithStackId(const char *value)
RegisterRdsDbInstanceRequest & WithStackId(Aws::String &&value)
JSON (JavaScript Object Notation).