AWS SDK for C++  1.9.109
AWS SDK for C++
ModifyDBClusterSnapshotAttributeRequest.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 "ModifyDBClusterSnapshotAttribute"; }
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& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
47 
51  inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
52 
56  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
57 
61  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::move(value); }
62 
66  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
67 
71  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
72 
76  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(std::move(value)); return *this;}
77 
81  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(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 ModifyDBClusterSnapshotAttributeRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
137 
145  inline ModifyDBClusterSnapshotAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
146 
154  inline ModifyDBClusterSnapshotAttributeRequest& 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 ModifyDBClusterSnapshotAttributeRequest& WithValuesToAdd(const Aws::Vector<Aws::String>& value) { SetValuesToAdd(value); return *this;}
216 
227  inline ModifyDBClusterSnapshotAttributeRequest& WithValuesToAdd(Aws::Vector<Aws::String>&& value) { SetValuesToAdd(std::move(value)); return *this;}
228 
239  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
240 
251  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(std::move(value)); return *this; }
252 
263  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToAdd(const char* value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
264 
265 
277  inline const Aws::Vector<Aws::String>& GetValuesToRemove() const{ return m_valuesToRemove; }
278 
290  inline bool ValuesToRemoveHasBeenSet() const { return m_valuesToRemoveHasBeenSet; }
291 
303  inline void SetValuesToRemove(const Aws::Vector<Aws::String>& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
304 
316  inline void SetValuesToRemove(Aws::Vector<Aws::String>&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = std::move(value); }
317 
329  inline ModifyDBClusterSnapshotAttributeRequest& WithValuesToRemove(const Aws::Vector<Aws::String>& value) { SetValuesToRemove(value); return *this;}
330 
342  inline ModifyDBClusterSnapshotAttributeRequest& WithValuesToRemove(Aws::Vector<Aws::String>&& value) { SetValuesToRemove(std::move(value)); return *this;}
343 
355  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
356 
368  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(std::move(value)); return *this; }
369 
381  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
382 
383  private:
384 
385  Aws::String m_dBClusterSnapshotIdentifier;
386  bool m_dBClusterSnapshotIdentifierHasBeenSet;
387 
388  Aws::String m_attributeName;
389  bool m_attributeNameHasBeenSet;
390 
391  Aws::Vector<Aws::String> m_valuesToAdd;
392  bool m_valuesToAddHasBeenSet;
393 
394  Aws::Vector<Aws::String> m_valuesToRemove;
395  bool m_valuesToRemoveHasBeenSet;
396  };
397 
398 } // namespace Model
399 } // namespace RDS
400 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDBClusterSnapshotAttributeRequest.h:34
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToRemove
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:355
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:66
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToRemove
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:368
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithDBClusterSnapshotIdentifier
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:71
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::GetValuesToRemove
const Aws::Vector< Aws::String > & GetValuesToRemove() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:277
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToAdd
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:251
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:100
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithValuesToAdd
ModifyDBClusterSnapshotAttributeRequest & WithValuesToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:215
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::ValuesToAddHasBeenSet
bool ValuesToAddHasBeenSet() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:179
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:91
AWSVector.h
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:127
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithAttributeName
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:145
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetValuesToRemove
void SetValuesToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:316
RDS_EXPORTS.h
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::ModifyDBClusterSnapshotAttributeRequest
ModifyDBClusterSnapshotAttributeRequest()
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetValuesToRemove
void SetValuesToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:303
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:109
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::DBClusterSnapshotIdentifierHasBeenSet
bool DBClusterSnapshotIdentifierHasBeenSet() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:51
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetValuesToAdd
void SetValuesToAdd(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:191
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest
Definition: ModifyDBClusterSnapshotAttributeRequest.h:26
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithValuesToRemove
ModifyDBClusterSnapshotAttributeRequest & WithValuesToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:342
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToAdd
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:263
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToAdd
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:239
AWSString.h
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithValuesToRemove
ModifyDBClusterSnapshotAttributeRequest & WithValuesToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:329
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::ValuesToRemoveHasBeenSet
bool ValuesToRemoveHasBeenSet() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:290
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithValuesToAdd
ModifyDBClusterSnapshotAttributeRequest & WithValuesToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:227
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:118
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:56
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithDBClusterSnapshotIdentifier
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:81
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetValuesToAdd
void SetValuesToAdd(Aws::Vector< Aws::String > &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:203
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithDBClusterSnapshotIdentifier
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:76
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithAttributeName
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:154
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::GetValuesToAdd
const Aws::Vector< Aws::String > & GetValuesToAdd() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:167
RDSRequest.h
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::GetDBClusterSnapshotIdentifier
const Aws::String & GetDBClusterSnapshotIdentifier() const
Definition: ModifyDBClusterSnapshotAttributeRequest.h:46
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::SetDBClusterSnapshotIdentifier
void SetDBClusterSnapshotIdentifier(Aws::String &&value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:61
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::WithAttributeName
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(const Aws::String &value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:136
Aws::RDS::Model::ModifyDBClusterSnapshotAttributeRequest::AddValuesToRemove
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(const char *value)
Definition: ModifyDBClusterSnapshotAttributeRequest.h:381