AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyDBSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RDS {
15namespace Model {
16
20 public:
21 AWS_RDS_API ModifyDBSnapshotRequest() = 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 "ModifyDBSnapshot"; }
28
29 AWS_RDS_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
40 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
41 template <typename DBSnapshotIdentifierT = Aws::String>
42 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
43 m_dBSnapshotIdentifierHasBeenSet = true;
44 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
45 }
46 template <typename DBSnapshotIdentifierT = Aws::String>
47 ModifyDBSnapshotRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
48 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
49 return *this;
50 }
52
54
85 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
86 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
87 template <typename EngineVersionT = Aws::String>
88 void SetEngineVersion(EngineVersionT&& value) {
89 m_engineVersionHasBeenSet = true;
90 m_engineVersion = std::forward<EngineVersionT>(value);
91 }
92 template <typename EngineVersionT = Aws::String>
93 ModifyDBSnapshotRequest& WithEngineVersion(EngineVersionT&& value) {
94 SetEngineVersion(std::forward<EngineVersionT>(value));
95 return *this;
96 }
98
100
108 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
109 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
110 template <typename OptionGroupNameT = Aws::String>
111 void SetOptionGroupName(OptionGroupNameT&& value) {
112 m_optionGroupNameHasBeenSet = true;
113 m_optionGroupName = std::forward<OptionGroupNameT>(value);
114 }
115 template <typename OptionGroupNameT = Aws::String>
116 ModifyDBSnapshotRequest& WithOptionGroupName(OptionGroupNameT&& value) {
117 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_dBSnapshotIdentifier;
123
124 Aws::String m_engineVersion;
125
126 Aws::String m_optionGroupName;
127 bool m_dBSnapshotIdentifierHasBeenSet = false;
128 bool m_engineVersionHasBeenSet = false;
129 bool m_optionGroupNameHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace RDS
134} // namespace Aws
AWS_RDS_API Aws::String SerializePayload() const override
ModifyDBSnapshotRequest & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
ModifyDBSnapshotRequest & WithEngineVersion(EngineVersionT &&value)
const Aws::String & GetDBSnapshotIdentifier() const
ModifyDBSnapshotRequest & WithOptionGroupName(OptionGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
AWS_RDS_API ModifyDBSnapshotRequest()=default
void SetOptionGroupName(OptionGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String