AWS SDK for C++  1.8.71
AWS SDK for C++
CopyOptionGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CopyOptionGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetSourceOptionGroupIdentifier() const{ return m_sourceOptionGroupIdentifier; }
49 
54  inline bool SourceOptionGroupIdentifierHasBeenSet() const { return m_sourceOptionGroupIdentifierHasBeenSet; }
55 
60  inline void SetSourceOptionGroupIdentifier(const Aws::String& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = value; }
61 
66  inline void SetSourceOptionGroupIdentifier(Aws::String&& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = std::move(value); }
67 
72  inline void SetSourceOptionGroupIdentifier(const char* value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier.assign(value); }
73 
78  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const Aws::String& value) { SetSourceOptionGroupIdentifier(value); return *this;}
79 
84  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(Aws::String&& value) { SetSourceOptionGroupIdentifier(std::move(value)); return *this;}
85 
90  inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const char* value) { SetSourceOptionGroupIdentifier(value); return *this;}
91 
92 
100  inline const Aws::String& GetTargetOptionGroupIdentifier() const{ return m_targetOptionGroupIdentifier; }
101 
109  inline bool TargetOptionGroupIdentifierHasBeenSet() const { return m_targetOptionGroupIdentifierHasBeenSet; }
110 
118  inline void SetTargetOptionGroupIdentifier(const Aws::String& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = value; }
119 
127  inline void SetTargetOptionGroupIdentifier(Aws::String&& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = std::move(value); }
128 
136  inline void SetTargetOptionGroupIdentifier(const char* value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier.assign(value); }
137 
145  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const Aws::String& value) { SetTargetOptionGroupIdentifier(value); return *this;}
146 
154  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(Aws::String&& value) { SetTargetOptionGroupIdentifier(std::move(value)); return *this;}
155 
163  inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const char* value) { SetTargetOptionGroupIdentifier(value); return *this;}
164 
165 
169  inline const Aws::String& GetTargetOptionGroupDescription() const{ return m_targetOptionGroupDescription; }
170 
174  inline bool TargetOptionGroupDescriptionHasBeenSet() const { return m_targetOptionGroupDescriptionHasBeenSet; }
175 
179  inline void SetTargetOptionGroupDescription(const Aws::String& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = value; }
180 
184  inline void SetTargetOptionGroupDescription(Aws::String&& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = std::move(value); }
185 
189  inline void SetTargetOptionGroupDescription(const char* value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription.assign(value); }
190 
194  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const Aws::String& value) { SetTargetOptionGroupDescription(value); return *this;}
195 
199  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(Aws::String&& value) { SetTargetOptionGroupDescription(std::move(value)); return *this;}
200 
204  inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const char* value) { SetTargetOptionGroupDescription(value); return *this;}
205 
206 
207 
208  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 
210 
211  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 
213 
214  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
215 
216 
217  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
218 
219 
220  inline CopyOptionGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
221 
222 
223  inline CopyOptionGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
224 
225 
226  inline CopyOptionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
227 
228 
229  inline CopyOptionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
230 
231  private:
232 
233  Aws::String m_sourceOptionGroupIdentifier;
234  bool m_sourceOptionGroupIdentifierHasBeenSet;
235 
236  Aws::String m_targetOptionGroupIdentifier;
237  bool m_targetOptionGroupIdentifierHasBeenSet;
238 
239  Aws::String m_targetOptionGroupDescription;
240  bool m_targetOptionGroupDescriptionHasBeenSet;
241 
242  Aws::Vector<Tag> m_tags;
243  bool m_tagsHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace RDS
248 } // 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:28
CopyOptionGroupRequest & WithTargetOptionGroupDescription(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
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)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
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 & GetTargetOptionGroupIdentifier() const
const Aws::String & GetSourceOptionGroupIdentifier() const
void SetTags(Aws::Vector< Tag > &&value)
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(Aws::String &&value)
void SetTargetOptionGroupDescription(const char *value)
const Aws::String & GetTargetOptionGroupDescription() const