AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyDBSnapshotAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace RDS
16 {
17 namespace 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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
47 
51  inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
52 
56  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
57 
61  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
62 
66  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
67 
71  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
72 
76  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
77 
81  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
82 
83 
91  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
92 
100  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
101 
109  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
110 
118  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
119 
127  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
128 
136  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
137 
145  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
146 
154  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
155 
156 
166  inline const Aws::Vector<Aws::String>& GetValuesToAdd() const{ return m_valuesToAdd; }
167 
177  inline bool ValuesToAddHasBeenSet() const { return m_valuesToAddHasBeenSet; }
178 
188  inline void SetValuesToAdd(const Aws::Vector<Aws::String>& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = value; }
189 
199  inline void SetValuesToAdd(Aws::Vector<Aws::String>&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = std::move(value); }
200 
210  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(const Aws::Vector<Aws::String>& value) { SetValuesToAdd(value); return *this;}
211 
221  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(Aws::Vector<Aws::String>&& value) { SetValuesToAdd(std::move(value)); return *this;}
222 
232  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
233 
243  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(std::move(value)); return *this; }
244 
254  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const char* value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
255 
256 
267  inline const Aws::Vector<Aws::String>& GetValuesToRemove() const{ return m_valuesToRemove; }
268 
279  inline bool ValuesToRemoveHasBeenSet() const { return m_valuesToRemoveHasBeenSet; }
280 
291  inline void SetValuesToRemove(const Aws::Vector<Aws::String>& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
292 
303  inline void SetValuesToRemove(Aws::Vector<Aws::String>&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = std::move(value); }
304 
315  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(const Aws::Vector<Aws::String>& value) { SetValuesToRemove(value); return *this;}
316 
327  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(Aws::Vector<Aws::String>&& value) { SetValuesToRemove(std::move(value)); return *this;}
328 
339  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
340 
351  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(std::move(value)); return *this; }
352 
363  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
364 
365  private:
366 
367  Aws::String m_dBSnapshotIdentifier;
368  bool m_dBSnapshotIdentifierHasBeenSet;
369 
370  Aws::String m_attributeName;
371  bool m_attributeNameHasBeenSet;
372 
373  Aws::Vector<Aws::String> m_valuesToAdd;
374  bool m_valuesToAddHasBeenSet;
375 
376  Aws::Vector<Aws::String> m_valuesToRemove;
377  bool m_valuesToRemoveHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace RDS
382 } // namespace Aws
const Aws::Vector< Aws::String > & GetValuesToRemove() const
ModifyDBSnapshotAttributeRequest & WithAttributeName(const char *value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
const Aws::Vector< Aws::String > & GetValuesToAdd() const
void SetValuesToAdd(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(Aws::Vector< Aws::String > &&value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const char *value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(Aws::Vector< Aws::String > &&value)
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(const Aws::Vector< Aws::String > &value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const char *value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(Aws::String &&value)
void SetValuesToRemove(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const char *value)