AWS SDK for C++  1.9.108
AWS SDK for C++
CreateOptionGroupRequest.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 "CreateOptionGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
51  inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
52 
60  inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
61 
69  inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
70 
78  inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
79 
87  inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
88 
96  inline CreateOptionGroupRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
97 
105  inline CreateOptionGroupRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
106 
114  inline CreateOptionGroupRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
115 
116 
128  inline const Aws::String& GetEngineName() const{ return m_engineName; }
129 
141  inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
142 
154  inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
155 
167  inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = std::move(value); }
168 
180  inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
181 
193  inline CreateOptionGroupRequest& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
194 
206  inline CreateOptionGroupRequest& WithEngineName(Aws::String&& value) { SetEngineName(std::move(value)); return *this;}
207 
219  inline CreateOptionGroupRequest& WithEngineName(const char* value) { SetEngineName(value); return *this;}
220 
221 
226  inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
227 
232  inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
233 
238  inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
239 
244  inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
245 
250  inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
251 
256  inline CreateOptionGroupRequest& WithMajorEngineVersion(const Aws::String& value) { SetMajorEngineVersion(value); return *this;}
257 
262  inline CreateOptionGroupRequest& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
263 
268  inline CreateOptionGroupRequest& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
269 
270 
274  inline const Aws::String& GetOptionGroupDescription() const{ return m_optionGroupDescription; }
275 
279  inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
280 
284  inline void SetOptionGroupDescription(const Aws::String& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = value; }
285 
289  inline void SetOptionGroupDescription(Aws::String&& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = std::move(value); }
290 
294  inline void SetOptionGroupDescription(const char* value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription.assign(value); }
295 
299  inline CreateOptionGroupRequest& WithOptionGroupDescription(const Aws::String& value) { SetOptionGroupDescription(value); return *this;}
300 
304  inline CreateOptionGroupRequest& WithOptionGroupDescription(Aws::String&& value) { SetOptionGroupDescription(std::move(value)); return *this;}
305 
309  inline CreateOptionGroupRequest& WithOptionGroupDescription(const char* value) { SetOptionGroupDescription(value); return *this;}
310 
311 
315  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
316 
320  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
321 
325  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
326 
330  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
331 
335  inline CreateOptionGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
336 
340  inline CreateOptionGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
341 
345  inline CreateOptionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
346 
350  inline CreateOptionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
351 
352  private:
353 
354  Aws::String m_optionGroupName;
355  bool m_optionGroupNameHasBeenSet;
356 
357  Aws::String m_engineName;
358  bool m_engineNameHasBeenSet;
359 
360  Aws::String m_majorEngineVersion;
361  bool m_majorEngineVersionHasBeenSet;
362 
363  Aws::String m_optionGroupDescription;
364  bool m_optionGroupDescriptionHasBeenSet;
365 
366  Aws::Vector<Tag> m_tags;
367  bool m_tagsHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace RDS
372 } // namespace Aws
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CreateOptionGroupRequest::WithEngineName
CreateOptionGroupRequest & WithEngineName(const char *value)
Definition: CreateOptionGroupRequest.h:219
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupName
CreateOptionGroupRequest & WithOptionGroupName(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:96
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupName
CreateOptionGroupRequest & WithOptionGroupName(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:105
Aws::RDS::Model::CreateOptionGroupRequest::SetEngineName
void SetEngineName(const char *value)
Definition: CreateOptionGroupRequest.h:180
Aws::RDS::Model::CreateOptionGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateOptionGroupRequest::GetMajorEngineVersion
const Aws::String & GetMajorEngineVersion() const
Definition: CreateOptionGroupRequest.h:226
Aws::RDS::Model::CreateOptionGroupRequest::SetMajorEngineVersion
void SetMajorEngineVersion(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:238
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDS::Model::CreateOptionGroupRequest::WithMajorEngineVersion
CreateOptionGroupRequest & WithMajorEngineVersion(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:256
Aws::RDS::Model::CreateOptionGroupRequest::SetMajorEngineVersion
void SetMajorEngineVersion(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:244
Aws::RDS::Model::CreateOptionGroupRequest::GetEngineName
const Aws::String & GetEngineName() const
Definition: CreateOptionGroupRequest.h:128
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupDescription
void SetOptionGroupDescription(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:289
Aws::RDS::Model::CreateOptionGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateOptionGroupRequest.h:315
Aws::RDS::Model::CreateOptionGroupRequest::AddTags
CreateOptionGroupRequest & AddTags(const Tag &value)
Definition: CreateOptionGroupRequest.h:345
Aws::RDS::Model::CreateOptionGroupRequest::WithTags
CreateOptionGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateOptionGroupRequest.h:335
RDS_EXPORTS.h
Aws::RDS::Model::CreateOptionGroupRequest::MajorEngineVersionHasBeenSet
bool MajorEngineVersionHasBeenSet() const
Definition: CreateOptionGroupRequest.h:232
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(const char *value)
Definition: CreateOptionGroupRequest.h:87
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupDescription
void SetOptionGroupDescription(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:284
Aws::RDS::Model::CreateOptionGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateOptionGroupRequest.h:330
AWSString.h
Aws::RDS::Model::CreateOptionGroupRequest
Definition: CreateOptionGroupRequest.h:27
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupDescription
CreateOptionGroupRequest & WithOptionGroupDescription(const char *value)
Definition: CreateOptionGroupRequest.h:309
Aws::RDS::Model::CreateOptionGroupRequest::SetEngineName
void SetEngineName(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:154
Aws::RDS::Model::CreateOptionGroupRequest::OptionGroupNameHasBeenSet
bool OptionGroupNameHasBeenSet() const
Definition: CreateOptionGroupRequest.h:60
Aws::RDS::Model::CreateOptionGroupRequest::CreateOptionGroupRequest
CreateOptionGroupRequest()
Aws::RDS::Model::CreateOptionGroupRequest::SetMajorEngineVersion
void SetMajorEngineVersion(const char *value)
Definition: CreateOptionGroupRequest.h:250
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateOptionGroupRequest::GetOptionGroupDescription
const Aws::String & GetOptionGroupDescription() const
Definition: CreateOptionGroupRequest.h:274
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:78
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupDescription
CreateOptionGroupRequest & WithOptionGroupDescription(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:304
Aws::RDS::Model::CreateOptionGroupRequest::WithTags
CreateOptionGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateOptionGroupRequest.h:340
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateOptionGroupRequest::SetEngineName
void SetEngineName(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:167
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupDescription
CreateOptionGroupRequest & WithOptionGroupDescription(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:299
Aws::RDS::Model::CreateOptionGroupRequest::OptionGroupDescriptionHasBeenSet
bool OptionGroupDescriptionHasBeenSet() const
Definition: CreateOptionGroupRequest.h:279
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CreateOptionGroupRequest::EngineNameHasBeenSet
bool EngineNameHasBeenSet() const
Definition: CreateOptionGroupRequest.h:141
RDSRequest.h
Aws::RDS::Model::CreateOptionGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateOptionGroupRequest.h:325
Aws::RDS::Model::CreateOptionGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CreateOptionGroupRequest::WithEngineName
CreateOptionGroupRequest & WithEngineName(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:206
Aws::RDS::Model::CreateOptionGroupRequest::WithOptionGroupName
CreateOptionGroupRequest & WithOptionGroupName(const char *value)
Definition: CreateOptionGroupRequest.h:114
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:69
Aws::RDS::Model::CreateOptionGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOptionGroupRequest.h:35
Aws::RDS::Model::CreateOptionGroupRequest::GetOptionGroupName
const Aws::String & GetOptionGroupName() const
Definition: CreateOptionGroupRequest.h:51
Aws::RDS::Model::CreateOptionGroupRequest::AddTags
CreateOptionGroupRequest & AddTags(Tag &&value)
Definition: CreateOptionGroupRequest.h:350
Aws::RDS::Model::CreateOptionGroupRequest::WithEngineName
CreateOptionGroupRequest & WithEngineName(const Aws::String &value)
Definition: CreateOptionGroupRequest.h:193
Aws::RDS::Model::CreateOptionGroupRequest::WithMajorEngineVersion
CreateOptionGroupRequest & WithMajorEngineVersion(Aws::String &&value)
Definition: CreateOptionGroupRequest.h:262
Aws::RDS::Model::CreateOptionGroupRequest::SetOptionGroupDescription
void SetOptionGroupDescription(const char *value)
Definition: CreateOptionGroupRequest.h:294
Aws::RDS::Model::CreateOptionGroupRequest::WithMajorEngineVersion
CreateOptionGroupRequest & WithMajorEngineVersion(const char *value)
Definition: CreateOptionGroupRequest.h:268
Aws::RDS::Model::CreateOptionGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateOptionGroupRequest.h:320