AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyDBClusterSnapshotAttributeRequest.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& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
41 
45  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
46 
50  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
51 
55  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
56 
60  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
61 
65  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
66 
70  inline ModifyDBClusterSnapshotAttributeRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(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 ModifyDBClusterSnapshotAttributeRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
106 
112  inline ModifyDBClusterSnapshotAttributeRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(value); return *this;}
113 
119  inline ModifyDBClusterSnapshotAttributeRequest& 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 ModifyDBClusterSnapshotAttributeRequest& WithValuesToAdd(const Aws::Vector<Aws::String>& value) { SetValuesToAdd(value); return *this;}
164 
174  inline ModifyDBClusterSnapshotAttributeRequest& WithValuesToAdd(Aws::Vector<Aws::String>&& value) { SetValuesToAdd(value); return *this;}
175 
185  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToAdd(const Aws::String& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
186 
196  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToAdd(Aws::String&& value) { m_valuesToAddHasBeenSet = true; m_valuesToAdd.push_back(value); return *this; }
197 
207  inline ModifyDBClusterSnapshotAttributeRequest& 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 ModifyDBClusterSnapshotAttributeRequest& WithValuesToRemove(const Aws::Vector<Aws::String>& value) { SetValuesToRemove(value); return *this;}
256 
267  inline ModifyDBClusterSnapshotAttributeRequest& WithValuesToRemove(Aws::Vector<Aws::String>&& value) { SetValuesToRemove(value); return *this;}
268 
279  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(const Aws::String& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
280 
291  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(Aws::String&& value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
292 
303  inline ModifyDBClusterSnapshotAttributeRequest& AddValuesToRemove(const char* value) { m_valuesToRemoveHasBeenSet = true; m_valuesToRemove.push_back(value); return *this; }
304 
305  private:
306  Aws::String m_dBClusterSnapshotIdentifier;
307  bool m_dBClusterSnapshotIdentifierHasBeenSet;
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
ModifyDBClusterSnapshotAttributeRequest & WithValuesToAdd(Aws::Vector< Aws::String > &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(const Aws::String &value)
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(const Aws::String &value)
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(const char *value)
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(const char *value)
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(const char *value)
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(Aws::String &&value)
ModifyDBClusterSnapshotAttributeRequest & WithDBClusterSnapshotIdentifier(const Aws::String &value)
ModifyDBClusterSnapshotAttributeRequest & WithValuesToRemove(Aws::Vector< Aws::String > &&value)
ModifyDBClusterSnapshotAttributeRequest & WithValuesToAdd(const Aws::Vector< Aws::String > &value)
ModifyDBClusterSnapshotAttributeRequest & WithAttributeName(Aws::String &&value)
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyDBClusterSnapshotAttributeRequest & AddValuesToAdd(const Aws::String &value)
ModifyDBClusterSnapshotAttributeRequest & AddValuesToRemove(Aws::String &&value)
ModifyDBClusterSnapshotAttributeRequest & WithValuesToRemove(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).