AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDBClusterSnapshotRequest.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 #include <aws/rds/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace RDS
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
45  inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
46 
54  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
55 
63  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
64 
72  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
73 
81  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
82 
90  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
91 
99  inline CreateDBClusterSnapshotRequest& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;}
100 
108  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
109 
117  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
118 
126  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
127 
135  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
136 
144  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
145 
153  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(value); return *this;}
154 
162  inline CreateDBClusterSnapshotRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
163 
167  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
168 
172  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 
177  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
178 
182  inline CreateDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
183 
187  inline CreateDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
188 
192  inline CreateDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
193 
197  inline CreateDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
198 
199  private:
200  Aws::String m_dBClusterSnapshotIdentifier;
201  bool m_dBClusterSnapshotIdentifierHasBeenSet;
202  Aws::String m_dBClusterIdentifier;
203  bool m_dBClusterIdentifierHasBeenSet;
204  Aws::Vector<Tag> m_tags;
205  bool m_tagsHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace RDS
210 } // namespace Aws
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const Aws::String &value)
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const Aws::String &value)
CreateDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBClusterSnapshotRequest & AddTags(Tag &&value)
CreateDBClusterSnapshotRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(Aws::String &&value)
CreateDBClusterSnapshotRequest & WithDBClusterIdentifier(const char *value)
CreateDBClusterSnapshotRequest & WithDBClusterSnapshotIdentifier(const char *value)
JSON (JavaScript Object Notation).
CreateDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)