AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyEndpointRequest.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
21 
22 namespace Aws
23 {
24 namespace DatabaseMigrationService
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
45 
50  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
51 
56  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
57 
62  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
63 
68  inline ModifyEndpointRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
69 
74  inline ModifyEndpointRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(value); return *this;}
75 
80  inline ModifyEndpointRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
81 
87  inline const Aws::String& GetEndpointIdentifier() const{ return m_endpointIdentifier; }
88 
94  inline void SetEndpointIdentifier(const Aws::String& value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier = value; }
95 
101  inline void SetEndpointIdentifier(Aws::String&& value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier = value; }
102 
108  inline void SetEndpointIdentifier(const char* value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier.assign(value); }
109 
115  inline ModifyEndpointRequest& WithEndpointIdentifier(const Aws::String& value) { SetEndpointIdentifier(value); return *this;}
116 
122  inline ModifyEndpointRequest& WithEndpointIdentifier(Aws::String&& value) { SetEndpointIdentifier(value); return *this;}
123 
129  inline ModifyEndpointRequest& WithEndpointIdentifier(const char* value) { SetEndpointIdentifier(value); return *this;}
130 
134  inline const ReplicationEndpointTypeValue& GetEndpointType() const{ return m_endpointType; }
135 
139  inline void SetEndpointType(const ReplicationEndpointTypeValue& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
140 
144  inline void SetEndpointType(ReplicationEndpointTypeValue&& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
145 
149  inline ModifyEndpointRequest& WithEndpointType(const ReplicationEndpointTypeValue& value) { SetEndpointType(value); return *this;}
150 
154  inline ModifyEndpointRequest& WithEndpointType(ReplicationEndpointTypeValue&& value) { SetEndpointType(value); return *this;}
155 
160  inline const Aws::String& GetEngineName() const{ return m_engineName; }
161 
166  inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
167 
172  inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
173 
178  inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
179 
184  inline ModifyEndpointRequest& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
185 
190  inline ModifyEndpointRequest& WithEngineName(Aws::String&& value) { SetEngineName(value); return *this;}
191 
196  inline ModifyEndpointRequest& WithEngineName(const char* value) { SetEngineName(value); return *this;}
197 
201  inline const Aws::String& GetUsername() const{ return m_username; }
202 
206  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
207 
211  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
212 
216  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
217 
221  inline ModifyEndpointRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
222 
226  inline ModifyEndpointRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
227 
231  inline ModifyEndpointRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
232 
236  inline const Aws::String& GetPassword() const{ return m_password; }
237 
241  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
242 
246  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
247 
251  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
252 
256  inline ModifyEndpointRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
257 
261  inline ModifyEndpointRequest& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
262 
266  inline ModifyEndpointRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
267 
271  inline const Aws::String& GetServerName() const{ return m_serverName; }
272 
276  inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
277 
281  inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
282 
286  inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
287 
291  inline ModifyEndpointRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
292 
296  inline ModifyEndpointRequest& WithServerName(Aws::String&& value) { SetServerName(value); return *this;}
297 
301  inline ModifyEndpointRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
302 
306  inline int GetPort() const{ return m_port; }
307 
311  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
312 
316  inline ModifyEndpointRequest& WithPort(int value) { SetPort(value); return *this;}
317 
321  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
322 
326  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
327 
331  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
332 
336  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
337 
341  inline ModifyEndpointRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
342 
346  inline ModifyEndpointRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(value); return *this;}
347 
351  inline ModifyEndpointRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
352 
356  inline const Aws::String& GetExtraConnectionAttributes() const{ return m_extraConnectionAttributes; }
357 
361  inline void SetExtraConnectionAttributes(const Aws::String& value) { m_extraConnectionAttributesHasBeenSet = true; m_extraConnectionAttributes = value; }
362 
366  inline void SetExtraConnectionAttributes(Aws::String&& value) { m_extraConnectionAttributesHasBeenSet = true; m_extraConnectionAttributes = value; }
367 
371  inline void SetExtraConnectionAttributes(const char* value) { m_extraConnectionAttributesHasBeenSet = true; m_extraConnectionAttributes.assign(value); }
372 
376  inline ModifyEndpointRequest& WithExtraConnectionAttributes(const Aws::String& value) { SetExtraConnectionAttributes(value); return *this;}
377 
381  inline ModifyEndpointRequest& WithExtraConnectionAttributes(Aws::String&& value) { SetExtraConnectionAttributes(value); return *this;}
382 
386  inline ModifyEndpointRequest& WithExtraConnectionAttributes(const char* value) { SetExtraConnectionAttributes(value); return *this;}
387 
392  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
393 
398  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
399 
404  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
405 
410  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
411 
416  inline ModifyEndpointRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
417 
422  inline ModifyEndpointRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(value); return *this;}
423 
428  inline ModifyEndpointRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
429 
434  inline const DmsSslModeValue& GetSslMode() const{ return m_sslMode; }
435 
440  inline void SetSslMode(const DmsSslModeValue& value) { m_sslModeHasBeenSet = true; m_sslMode = value; }
441 
446  inline void SetSslMode(DmsSslModeValue&& value) { m_sslModeHasBeenSet = true; m_sslMode = value; }
447 
452  inline ModifyEndpointRequest& WithSslMode(const DmsSslModeValue& value) { SetSslMode(value); return *this;}
453 
458  inline ModifyEndpointRequest& WithSslMode(DmsSslModeValue&& value) { SetSslMode(value); return *this;}
459 
460  private:
461  Aws::String m_endpointArn;
462  bool m_endpointArnHasBeenSet;
463  Aws::String m_endpointIdentifier;
464  bool m_endpointIdentifierHasBeenSet;
465  ReplicationEndpointTypeValue m_endpointType;
466  bool m_endpointTypeHasBeenSet;
467  Aws::String m_engineName;
468  bool m_engineNameHasBeenSet;
469  Aws::String m_username;
470  bool m_usernameHasBeenSet;
471  Aws::String m_password;
472  bool m_passwordHasBeenSet;
473  Aws::String m_serverName;
474  bool m_serverNameHasBeenSet;
475  int m_port;
476  bool m_portHasBeenSet;
477  Aws::String m_databaseName;
478  bool m_databaseNameHasBeenSet;
479  Aws::String m_extraConnectionAttributes;
480  bool m_extraConnectionAttributesHasBeenSet;
481  Aws::String m_certificateArn;
482  bool m_certificateArnHasBeenSet;
483  DmsSslModeValue m_sslMode;
484  bool m_sslModeHasBeenSet;
485  };
486 
487 } // namespace Model
488 } // namespace DatabaseMigrationService
489 } // namespace Aws
const ReplicationEndpointTypeValue & GetEndpointType() const
ModifyEndpointRequest & WithServerName(Aws::String &&value)
ModifyEndpointRequest & WithPassword(const Aws::String &value)
ModifyEndpointRequest & WithEndpointIdentifier(const char *value)
ModifyEndpointRequest & WithEndpointArn(const char *value)
ModifyEndpointRequest & WithCertificateArn(Aws::String &&value)
ModifyEndpointRequest & WithDatabaseName(Aws::String &&value)
ModifyEndpointRequest & WithEndpointIdentifier(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ModifyEndpointRequest & WithServerName(const char *value)
ModifyEndpointRequest & WithEndpointIdentifier(const Aws::String &value)
ModifyEndpointRequest & WithSslMode(const DmsSslModeValue &value)
ModifyEndpointRequest & WithSslMode(DmsSslModeValue &&value)
ModifyEndpointRequest & WithEngineName(const Aws::String &value)
ModifyEndpointRequest & WithEndpointArn(Aws::String &&value)
#define AWS_DATABASEMIGRATIONSERVICE_API
void SetEndpointType(ReplicationEndpointTypeValue &&value)
ModifyEndpointRequest & WithPassword(Aws::String &&value)
ModifyEndpointRequest & WithExtraConnectionAttributes(const Aws::String &value)
ModifyEndpointRequest & WithExtraConnectionAttributes(const char *value)
ModifyEndpointRequest & WithServerName(const Aws::String &value)
ModifyEndpointRequest & WithDatabaseName(const Aws::String &value)
ModifyEndpointRequest & WithCertificateArn(const char *value)
ModifyEndpointRequest & WithEndpointType(const ReplicationEndpointTypeValue &value)
ModifyEndpointRequest & WithUsername(Aws::String &&value)
void SetEndpointType(const ReplicationEndpointTypeValue &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyEndpointRequest & WithEngineName(Aws::String &&value)
ModifyEndpointRequest & WithEndpointType(ReplicationEndpointTypeValue &&value)
ModifyEndpointRequest & WithPassword(const char *value)
ModifyEndpointRequest & WithUsername(const Aws::String &value)
ModifyEndpointRequest & WithEndpointArn(const Aws::String &value)
ModifyEndpointRequest & WithDatabaseName(const char *value)
ModifyEndpointRequest & WithUsername(const char *value)
ModifyEndpointRequest & WithCertificateArn(const Aws::String &value)
ModifyEndpointRequest & WithExtraConnectionAttributes(Aws::String &&value)
JSON (JavaScript Object Notation).
ModifyEndpointRequest & WithEngineName(const char *value)