AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
RebootDBInstanceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/neptune/Neptune_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Neptune {
15namespace Model {
16
20 public:
21 AWS_NEPTUNE_API RebootDBInstanceRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RebootDBInstance"; }
28
29 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
41 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
42 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
43 template <typename DBInstanceIdentifierT = Aws::String>
44 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
45 m_dBInstanceIdentifierHasBeenSet = true;
46 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
47 }
48 template <typename DBInstanceIdentifierT = Aws::String>
49 RebootDBInstanceRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
50 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
51 return *this;
52 }
54
56
61 inline bool GetForceFailover() const { return m_forceFailover; }
62 inline bool ForceFailoverHasBeenSet() const { return m_forceFailoverHasBeenSet; }
63 inline void SetForceFailover(bool value) {
64 m_forceFailoverHasBeenSet = true;
65 m_forceFailover = value;
66 }
68 SetForceFailover(value);
69 return *this;
70 }
72 private:
73 Aws::String m_dBInstanceIdentifier;
74 bool m_dBInstanceIdentifierHasBeenSet = false;
75
76 bool m_forceFailover{false};
77 bool m_forceFailoverHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Neptune
82} // namespace Aws
RebootDBInstanceRequest & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
RebootDBInstanceRequest & WithForceFailover(bool value)
AWS_NEPTUNE_API RebootDBInstanceRequest()=default
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NEPTUNE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String