AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyDBSnapshotAttributeRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RDS
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_RDS_API ModifyDBSnapshotAttributeRequest() = default;
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 "ModifyDBSnapshotAttribute"; }
35
36 AWS_RDS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
48 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
49 template<typename DBSnapshotIdentifierT = Aws::String>
50 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value); }
51 template<typename DBSnapshotIdentifierT = Aws::String>
52 ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) { SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value)); return *this;}
54
56
63 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
64 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
65 template<typename AttributeNameT = Aws::String>
66 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
67 template<typename AttributeNameT = Aws::String>
68 ModifyDBSnapshotAttributeRequest& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
70
72
82 inline const Aws::Vector<Aws::String>& GetValuesToAdd() const { return m_valuesToAdd; }
83 inline bool ValuesToAddHasBeenSet() const { return m_valuesToAddHasBeenSet; }
84 template<typename ValuesToAddT = Aws::Vector<Aws::String>>
85 void SetValuesToAdd(ValuesToAddT&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = std::forward<ValuesToAddT>(value); }
86 template<typename ValuesToAddT = Aws::Vector<Aws::String>>
87 ModifyDBSnapshotAttributeRequest& WithValuesToAdd(ValuesToAddT&& value) { SetValuesToAdd(std::forward<ValuesToAddT>(value)); return *this;}
88 template<typename ValuesToAddT = Aws::String>
89 ModifyDBSnapshotAttributeRequest& AddValuesToAdd(ValuesToAddT&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.emplace_back(std::forward<ValuesToAddT>(value)); return *this; }
91
93
103 inline const Aws::Vector<Aws::String>& GetValuesToRemove() const { return m_valuesToRemove; }
104 inline bool ValuesToRemoveHasBeenSet() const { return m_valuesToRemoveHasBeenSet; }
105 template<typename ValuesToRemoveT = Aws::Vector<Aws::String>>
106 void SetValuesToRemove(ValuesToRemoveT&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = std::forward<ValuesToRemoveT>(value); }
107 template<typename ValuesToRemoveT = Aws::Vector<Aws::String>>
108 ModifyDBSnapshotAttributeRequest& WithValuesToRemove(ValuesToRemoveT&& value) { SetValuesToRemove(std::forward<ValuesToRemoveT>(value)); return *this;}
109 template<typename ValuesToRemoveT = Aws::String>
110 ModifyDBSnapshotAttributeRequest& AddValuesToRemove(ValuesToRemoveT&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.emplace_back(std::forward<ValuesToRemoveT>(value)); return *this; }
112 private:
113
114 Aws::String m_dBSnapshotIdentifier;
115 bool m_dBSnapshotIdentifierHasBeenSet = false;
116
117 Aws::String m_attributeName;
118 bool m_attributeNameHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_valuesToAdd;
121 bool m_valuesToAddHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_valuesToRemove;
124 bool m_valuesToRemoveHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace RDS
129} // namespace Aws
const Aws::Vector< Aws::String > & GetValuesToRemove() const
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(ValuesToAddT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(ValuesToAddT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(ValuesToRemoveT &&value)
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(ValuesToRemoveT &&value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(AttributeNameT &&value)
const Aws::Vector< Aws::String > & GetValuesToAdd() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector