AWS SDK for C++  0.14.3
AWS SDK for C++
CopyOptionGroupRequest.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 
51  inline const Aws::String& GetSourceOptionGroupIdentifier() const{ return m_sourceOptionGroupIdentifier; }
52 
66  inline void SetSourceOptionGroupIdentifier(const Aws::String& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = value; }
67 
81  inline void SetSourceOptionGroupIdentifier(Aws::String&& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = value; }
82 
96  inline void SetSourceOptionGroupIdentifier(const char* value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier.assign(value); }
97 
111  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const Aws::String& value) { SetSourceOptionGroupIdentifier(value); return *this;}
112 
126  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(Aws::String&& value) { SetSourceOptionGroupIdentifier(value); return *this;}
127 
141  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const char* value) { SetSourceOptionGroupIdentifier(value); return *this;}
142 
150  inline const Aws::String& GetTargetOptionGroupIdentifier() const{ return m_targetOptionGroupIdentifier; }
151 
159  inline void SetTargetOptionGroupIdentifier(const Aws::String& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = value; }
160 
168  inline void SetTargetOptionGroupIdentifier(Aws::String&& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = value; }
169 
177  inline void SetTargetOptionGroupIdentifier(const char* value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier.assign(value); }
178 
186  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const Aws::String& value) { SetTargetOptionGroupIdentifier(value); return *this;}
187 
195  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(Aws::String&& value) { SetTargetOptionGroupIdentifier(value); return *this;}
196 
204  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const char* value) { SetTargetOptionGroupIdentifier(value); return *this;}
205 
209  inline const Aws::String& GetTargetOptionGroupDescription() const{ return m_targetOptionGroupDescription; }
210 
214  inline void SetTargetOptionGroupDescription(const Aws::String& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = value; }
215 
219  inline void SetTargetOptionGroupDescription(Aws::String&& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = value; }
220 
224  inline void SetTargetOptionGroupDescription(const char* value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription.assign(value); }
225 
229  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const Aws::String& value) { SetTargetOptionGroupDescription(value); return *this;}
230 
234  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(Aws::String&& value) { SetTargetOptionGroupDescription(value); return *this;}
235 
239  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const char* value) { SetTargetOptionGroupDescription(value); return *this;}
240 
241 
242  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
243 
244 
245  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
246 
247 
248  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
249 
250 
251  inline CopyOptionGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
252 
253 
254  inline CopyOptionGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
255 
256 
257  inline CopyOptionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
258 
259 
260  inline CopyOptionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
261 
262  private:
263  Aws::String m_sourceOptionGroupIdentifier;
264  bool m_sourceOptionGroupIdentifierHasBeenSet;
265  Aws::String m_targetOptionGroupIdentifier;
266  bool m_targetOptionGroupIdentifierHasBeenSet;
267  Aws::String m_targetOptionGroupDescription;
268  bool m_targetOptionGroupDescriptionHasBeenSet;
269  Aws::Vector<Tag> m_tags;
270  bool m_tagsHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace RDS
275 } // namespace Aws
void SetTargetOptionGroupIdentifier(Aws::String &&value)
void SetTargetOptionGroupIdentifier(const Aws::String &value)
CopyOptionGroupRequest & WithTargetOptionGroupDescription(const Aws::String &value)
void SetTargetOptionGroupDescription(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
const Aws::String & GetTargetOptionGroupIdentifier() const
CopyOptionGroupRequest & WithTargetOptionGroupDescription(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetSourceOptionGroupIdentifier() const
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(const Aws::String &value)
void SetTargetOptionGroupDescription(Aws::String &&value)
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(const char *value)
CopyOptionGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTargetOptionGroupIdentifier(const char *value)
CopyOptionGroupRequest & WithTargetOptionGroupDescription(Aws::String &&value)
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(const char *value)
CopyOptionGroupRequest & AddTags(Tag &&value)
void SetSourceOptionGroupIdentifier(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
void SetSourceOptionGroupIdentifier(const Aws::String &value)
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(Aws::String &&value)
CopyOptionGroupRequest & AddTags(const Tag &value)
void SetSourceOptionGroupIdentifier(const char *value)
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(const Aws::String &value)
CopyOptionGroupRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetTargetOptionGroupDescription() const
void SetTags(Aws::Vector< Tag > &&value)
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(Aws::String &&value)
void SetTargetOptionGroupDescription(const char *value)
JSON (JavaScript Object Notation).