AWS SDK for C++  1.9.157
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 
167  inline const Aws::Vector<Aws::String>& GetValuesToAdd() const{ return m_valuesToAdd; }
168 
179  inline bool ValuesToAddHasBeenSet() const { return m_valuesToAddHasBeenSet; }
180 
191  inline void SetValuesToAdd(const Aws::Vector<Aws::String>& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = value; }
192 
203  inline void SetValuesToAdd(Aws::Vector<Aws::String>&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = std::move(value); }
204 
215  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(const Aws::Vector<Aws::String>& value) { SetValuesToAdd(value); return *this;}
216 
227  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(Aws::Vector<Aws::String>&& value) { SetValuesToAdd(std::move(value)); return *this;}
228 
239  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
240 
251  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(std::move(value)); return *this; }
252 
263  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const char* value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
264 
265 
276  inline const Aws::Vector<Aws::String>& GetValuesToRemove() const{ return m_valuesToRemove; }
277 
288  inline bool ValuesToRemoveHasBeenSet() const { return m_valuesToRemoveHasBeenSet; }
289 
300  inline void SetValuesToRemove(const Aws::Vector<Aws::String>& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
301 
312  inline void SetValuesToRemove(Aws::Vector<Aws::String>&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = std::move(value); }
313 
324  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(const Aws::Vector<Aws::String>& value) { SetValuesToRemove(value); return *this;}
325 
336  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(Aws::Vector<Aws::String>&& value) { SetValuesToRemove(std::move(value)); return *this;}
337 
348  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
349 
360  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(std::move(value)); return *this; }
361 
372  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
373 
374  private:
375 
376  Aws::String m_dBSnapshotIdentifier;
377  bool m_dBSnapshotIdentifierHasBeenSet;
378 
379  Aws::String m_attributeName;
380  bool m_attributeNameHasBeenSet;
381 
382  Aws::Vector<Aws::String> m_valuesToAdd;
383  bool m_valuesToAddHasBeenSet;
384 
385  Aws::Vector<Aws::String> m_valuesToRemove;
386  bool m_valuesToRemoveHasBeenSet;
387  };
388 
389 } // namespace Model
390 } // namespace RDS
391 } // namespace Aws
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:76
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToRemove
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:348
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithValuesToAdd
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:227
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetValuesToRemove
void SetValuesToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBSnapshotAttributeRequest.h:300
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:71
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithAttributeName
ModifyDBSnapshotAttributeRequest & WithAttributeName(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:136
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetValuesToAdd
void SetValuesToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:203
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::GetDBSnapshotIdentifier
const Aws::String & GetDBSnapshotIdentifier() const
Definition: ModifyDBSnapshotAttributeRequest.h:46
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:66
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithValuesToAdd
ModifyDBSnapshotAttributeRequest & WithValuesToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBSnapshotAttributeRequest.h:215
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::ModifyDBSnapshotAttributeRequest
ModifyDBSnapshotAttributeRequest()
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::ValuesToRemoveHasBeenSet
bool ValuesToRemoveHasBeenSet() const
Definition: ModifyDBSnapshotAttributeRequest.h:288
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToAdd
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:239
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::ValuesToAddHasBeenSet
bool ValuesToAddHasBeenSet() const
Definition: ModifyDBSnapshotAttributeRequest.h:179
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToRemove
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:360
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithValuesToRemove
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBSnapshotAttributeRequest.h:324
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetValuesToRemove
void SetValuesToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:312
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDBSnapshotAttributeRequest.h:34
RDS_EXPORTS.h
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:109
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest
Definition: ModifyDBSnapshotAttributeRequest.h:26
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: ModifyDBSnapshotAttributeRequest.h:100
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithValuesToRemove
ModifyDBSnapshotAttributeRequest & WithValuesToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:336
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithDBSnapshotIdentifier
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:81
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:61
AWSString.h
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::GetValuesToAdd
const Aws::Vector< Aws::String > & GetValuesToAdd() const
Definition: ModifyDBSnapshotAttributeRequest.h:167
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::DBSnapshotIdentifierHasBeenSet
bool DBSnapshotIdentifierHasBeenSet() const
Definition: ModifyDBSnapshotAttributeRequest.h:51
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToAdd
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:251
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:127
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToAdd
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:263
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetValuesToAdd
void SetValuesToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBSnapshotAttributeRequest.h:191
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithAttributeName
ModifyDBSnapshotAttributeRequest & WithAttributeName(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:154
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::AddValuesToRemove
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const char *value)
Definition: ModifyDBSnapshotAttributeRequest.h:372
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBSnapshotAttributeRequest.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: ModifyDBSnapshotAttributeRequest.h:91
RDSRequest.h
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:118
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::WithAttributeName
ModifyDBSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
Definition: ModifyDBSnapshotAttributeRequest.h:145
Aws::RDS::Model::ModifyDBSnapshotAttributeRequest::GetValuesToRemove
const Aws::Vector< Aws::String > & GetValuesToRemove() const
Definition: ModifyDBSnapshotAttributeRequest.h:276