AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
50 inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
51 inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
54 inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
56
58
65 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
66 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
67 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
68 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
69 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
71 inline ModifyDBSnapshotAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
72 inline ModifyDBSnapshotAttributeRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
74
76
86 inline const Aws::Vector<Aws::String>& GetValuesToAdd() const{ return m_valuesToAdd; }
87 inline bool ValuesToAddHasBeenSet() const { return m_valuesToAddHasBeenSet; }
88 inline void SetValuesToAdd(const Aws::Vector<Aws::String>& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = value; }
89 inline void SetValuesToAdd(Aws::Vector<Aws::String>&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = std::move(value); }
92 inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
93 inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(std::move(value)); return *this; }
94 inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const char* value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
96
98
108 inline const Aws::Vector<Aws::String>& GetValuesToRemove() const{ return m_valuesToRemove; }
109 inline bool ValuesToRemoveHasBeenSet() const { return m_valuesToRemoveHasBeenSet; }
110 inline void SetValuesToRemove(const Aws::Vector<Aws::String>& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
111 inline void SetValuesToRemove(Aws::Vector<Aws::String>&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = std::move(value); }
114 inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
115 inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(std::move(value)); return *this; }
116 inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
118 private:
119
120 Aws::String m_dBSnapshotIdentifier;
121 bool m_dBSnapshotIdentifierHasBeenSet = false;
122
123 Aws::String m_attributeName;
124 bool m_attributeNameHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_valuesToAdd;
127 bool m_valuesToAddHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_valuesToRemove;
130 bool m_valuesToRemoveHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace RDS
135} // namespace Aws
const Aws::Vector< Aws::String > & GetValuesToRemove() const
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const char *value)
AWS_RDS_API Aws::String SerializePayload() const override
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(const Aws::Vector< Aws::String > &value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const char *value)
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(Aws::Vector< Aws::String > &&value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(Aws::Vector< Aws::String > &&value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const Aws::String &value)
void SetValuesToAdd(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const char *value)
const Aws::Vector< Aws::String > & GetValuesToAdd() const
ModifyDBSnapshotAttributeRequest & WithAttributeName(const char *value)
void SetValuesToRemove(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector