AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyDBSnapshotAttributeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
20 
21 namespace Aws
22 {
23 namespace RDS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
41 
45  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
46 
50  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
51 
55  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
56 
60  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
61 
65  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(value); return *this;}
66 
70  inline ModifyDBSnapshotAttributeRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
71 
77  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
78 
84  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
85 
91  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
92 
98  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
99 
105  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
106 
112  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(value); return *this;}
113 
119  inline ModifyDBSnapshotAttributeRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
120 
130  inline const Aws::Vector<Aws::String>& GetValuesToAdd() const{ return m_valuesToAdd; }
131 
141  inline void SetValuesToAdd(const Aws::Vector<Aws::String>& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = value; }
142 
152  inline void SetValuesToAdd(Aws::Vector<Aws::String>&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd = value; }
153 
163  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(const Aws::Vector<Aws::String>& value) { SetValuesToAdd(value); return *this;}
164 
174  inline ModifyDBSnapshotAttributeRequest& WithValuesToAdd(Aws::Vector<Aws::String>&& value) { SetValuesToAdd(value); return *this;}
175 
185  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
186 
196  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
197 
207  inline ModifyDBSnapshotAttributeRequest& AddValuesToAdd(const char* value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
208 
219  inline const Aws::Vector<Aws::String>& GetValuesToRemove() const{ return m_valuesToRemove; }
220 
231  inline void SetValuesToRemove(const Aws::Vector<Aws::String>& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
232 
243  inline void SetValuesToRemove(Aws::Vector<Aws::String>&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove = value; }
244 
255  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(const Aws::Vector<Aws::String>& value) { SetValuesToRemove(value); return *this;}
256 
267  inline ModifyDBSnapshotAttributeRequest& WithValuesToRemove(Aws::Vector<Aws::String>&& value) { SetValuesToRemove(value); return *this;}
268 
279  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
280 
291  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
292 
303  inline ModifyDBSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
304 
305  private:
306  Aws::String m_dBSnapshotIdentifier;
307  bool m_dBSnapshotIdentifierHasBeenSet;
308  Aws::String m_attributeName;
309  bool m_attributeNameHasBeenSet;
310  Aws::Vector<Aws::String> m_valuesToAdd;
311  bool m_valuesToAddHasBeenSet;
312  Aws::Vector<Aws::String> m_valuesToRemove;
313  bool m_valuesToRemoveHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace RDS
318 } // namespace Aws
const Aws::Vector< Aws::String > & GetValuesToAdd() const
ModifyDBSnapshotAttributeRequest & WithAttributeName(const char *value)
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(Aws::String &&value)
ModifyDBSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
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:27
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
const Aws::Vector< Aws::String > & GetValuesToRemove() const
ModifyDBSnapshotAttributeRequest & WithDBSnapshotIdentifier(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
ModifyDBSnapshotAttributeRequest & AddValuesToAdd(const char *value)
JSON (JavaScript Object Notation).