AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailoverDBClusterRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace DocDB
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_DOCDB_API FailoverDBClusterRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "FailoverDBCluster"; }
35
36 AWS_DOCDB_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
49 inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
50 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
51 inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
52 inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
53 inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
55 inline FailoverDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
56 inline FailoverDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
58
60
65 inline const Aws::String& GetTargetDBInstanceIdentifier() const{ return m_targetDBInstanceIdentifier; }
66 inline bool TargetDBInstanceIdentifierHasBeenSet() const { return m_targetDBInstanceIdentifierHasBeenSet; }
67 inline void SetTargetDBInstanceIdentifier(const Aws::String& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = value; }
68 inline void SetTargetDBInstanceIdentifier(Aws::String&& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = std::move(value); }
69 inline void SetTargetDBInstanceIdentifier(const char* value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier.assign(value); }
74 private:
75
76 Aws::String m_dBClusterIdentifier;
77 bool m_dBClusterIdentifierHasBeenSet = false;
78
79 Aws::String m_targetDBInstanceIdentifier;
80 bool m_targetDBInstanceIdentifierHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace DocDB
85} // namespace Aws
void SetDBClusterIdentifier(const Aws::String &value)
AWS_DOCDB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
FailoverDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(Aws::String &&value)
FailoverDBClusterRequest & WithDBClusterIdentifier(const char *value)
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(const Aws::String &value)
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(const char *value)
FailoverDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTargetDBInstanceIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String