AWS SDK for C++  1.9.107
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
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupIdentifier
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(const char *value)
Definition: CopyOptionGroupRequest.h:163
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CopyOptionGroupRequest::GetTargetOptionGroupDescription
const Aws::String & GetTargetOptionGroupDescription() const
Definition: CopyOptionGroupRequest.h:169
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CopyOptionGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CopyOptionGroupRequest.h:214
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupIdentifier
void SetTargetOptionGroupIdentifier(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:118
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupDescription
void SetTargetOptionGroupDescription(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:184
Aws::RDS::Model::CopyOptionGroupRequest::AddTags
CopyOptionGroupRequest & AddTags(Tag &&value)
Definition: CopyOptionGroupRequest.h:229
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CopyOptionGroupRequest::SetSourceOptionGroupIdentifier
void SetSourceOptionGroupIdentifier(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:66
Aws::RDS::Model::CopyOptionGroupRequest
Definition: CopyOptionGroupRequest.h:27
Aws::RDS::Model::CopyOptionGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CopyOptionGroupRequest.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CopyOptionGroupRequest::GetSourceOptionGroupIdentifier
const Aws::String & GetSourceOptionGroupIdentifier() const
Definition: CopyOptionGroupRequest.h:48
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupDescription
void SetTargetOptionGroupDescription(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:179
Aws::RDS::Model::CopyOptionGroupRequest::AddTags
CopyOptionGroupRequest & AddTags(const Tag &value)
Definition: CopyOptionGroupRequest.h:226
AWSVector.h
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupDescription
CopyOptionGroupRequest & WithTargetOptionGroupDescription(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:199
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupIdentifier
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:154
Aws::RDS::Model::CopyOptionGroupRequest::SourceOptionGroupIdentifierHasBeenSet
bool SourceOptionGroupIdentifierHasBeenSet() const
Definition: CopyOptionGroupRequest.h:54
Aws::RDS::Model::CopyOptionGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CopyOptionGroupRequest.h:217
RDS_EXPORTS.h
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupIdentifier
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:145
Aws::RDS::Model::CopyOptionGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupDescription
CopyOptionGroupRequest & WithTargetOptionGroupDescription(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:194
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupIdentifier
void SetTargetOptionGroupIdentifier(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:127
AWSString.h
Aws::RDS::Model::CopyOptionGroupRequest::WithSourceOptionGroupIdentifier
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(const char *value)
Definition: CopyOptionGroupRequest.h:90
Aws::RDS::Model::CopyOptionGroupRequest::WithTags
CopyOptionGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CopyOptionGroupRequest.h:223
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupIdentifier
void SetTargetOptionGroupIdentifier(const char *value)
Definition: CopyOptionGroupRequest.h:136
Aws::RDS::Model::CopyOptionGroupRequest::SetSourceOptionGroupIdentifier
void SetSourceOptionGroupIdentifier(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:60
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CopyOptionGroupRequest::GetTargetOptionGroupIdentifier
const Aws::String & GetTargetOptionGroupIdentifier() const
Definition: CopyOptionGroupRequest.h:100
Aws::RDS::Model::CopyOptionGroupRequest::WithTags
CopyOptionGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CopyOptionGroupRequest.h:220
Aws::RDS::Model::CopyOptionGroupRequest::CopyOptionGroupRequest
CopyOptionGroupRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CopyOptionGroupRequest::TargetOptionGroupIdentifierHasBeenSet
bool TargetOptionGroupIdentifierHasBeenSet() const
Definition: CopyOptionGroupRequest.h:109
Aws::RDS::Model::CopyOptionGroupRequest::WithTargetOptionGroupDescription
CopyOptionGroupRequest & WithTargetOptionGroupDescription(const char *value)
Definition: CopyOptionGroupRequest.h:204
Aws::RDS::Model::CopyOptionGroupRequest::SetSourceOptionGroupIdentifier
void SetSourceOptionGroupIdentifier(const char *value)
Definition: CopyOptionGroupRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CopyOptionGroupRequest::TargetOptionGroupDescriptionHasBeenSet
bool TargetOptionGroupDescriptionHasBeenSet() const
Definition: CopyOptionGroupRequest.h:174
RDSRequest.h
Aws::RDS::Model::CopyOptionGroupRequest::SetTargetOptionGroupDescription
void SetTargetOptionGroupDescription(const char *value)
Definition: CopyOptionGroupRequest.h:189
Aws::RDS::Model::CopyOptionGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CopyOptionGroupRequest::WithSourceOptionGroupIdentifier
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(Aws::String &&value)
Definition: CopyOptionGroupRequest.h:84
Aws::RDS::Model::CopyOptionGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopyOptionGroupRequest.h:35
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CopyOptionGroupRequest::WithSourceOptionGroupIdentifier
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(const Aws::String &value)
Definition: CopyOptionGroupRequest.h:78
Aws::RDS::Model::CopyOptionGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CopyOptionGroupRequest.h:208