AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RebootDBInstanceRequest.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 RebootDBInstanceRequest();
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 "RebootDBInstance"; }
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& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
50 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
51 inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
52 inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
53 inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
55 inline RebootDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
56 inline RebootDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
58
60
65 inline bool GetForceFailover() const{ return m_forceFailover; }
66 inline bool ForceFailoverHasBeenSet() const { return m_forceFailoverHasBeenSet; }
67 inline void SetForceFailover(bool value) { m_forceFailoverHasBeenSet = true; m_forceFailover = value; }
68 inline RebootDBInstanceRequest& WithForceFailover(bool value) { SetForceFailover(value); return *this;}
70 private:
71
72 Aws::String m_dBInstanceIdentifier;
73 bool m_dBInstanceIdentifierHasBeenSet = false;
74
75 bool m_forceFailover;
76 bool m_forceFailoverHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DocDB
81} // namespace Aws
RebootDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
RebootDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
AWS_DOCDB_API Aws::String SerializePayload() const override
RebootDBInstanceRequest & WithForceFailover(bool value)
RebootDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBInstanceIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String