AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDBSnapshotRequest.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& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
46 
54  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
55 
63  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
64 
72  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
73 
81  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
82 
90  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(value); return *this;}
91 
99  inline CreateDBSnapshotRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
100 
108  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
109 
117  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
118 
126  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
127 
135  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
136 
144  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
145 
153  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(value); return *this;}
154 
162  inline CreateDBSnapshotRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
163 
164 
165  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 
167 
168  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
169 
170 
171  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
172 
173 
174  inline CreateDBSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
175 
176 
177  inline CreateDBSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
178 
179 
180  inline CreateDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
181 
182 
183  inline CreateDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
184 
185  private:
186  Aws::String m_dBSnapshotIdentifier;
187  bool m_dBSnapshotIdentifierHasBeenSet;
188  Aws::String m_dBInstanceIdentifier;
189  bool m_dBInstanceIdentifierHasBeenSet;
190  Aws::Vector<Tag> m_tags;
191  bool m_tagsHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace RDS
196 } // namespace Aws
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateDBSnapshotRequest & AddTags(Tag &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const Aws::String &value)
CreateDBSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBSnapshotRequest & WithDBInstanceIdentifier(const Aws::String &value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(const char *value)
const Aws::String & GetDBInstanceIdentifier() const
CreateDBSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBSnapshotRequest & WithDBSnapshotIdentifier(Aws::String &&value)
CreateDBSnapshotRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDBSnapshotIdentifier(const Aws::String &value)
const Aws::String & GetDBSnapshotIdentifier() const
const Aws::Vector< Tag > & GetTags() const
void SetDBInstanceIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateDBSnapshotRequest & WithDBInstanceIdentifier(Aws::String &&value)