AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOptionGroupRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace 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_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
52 inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
53 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
54 inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
55 inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
56 inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
57 inline CreateOptionGroupRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
58 inline CreateOptionGroupRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
59 inline CreateOptionGroupRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
61
63
74 inline const Aws::String& GetEngineName() const{ return m_engineName; }
75 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
76 inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
77 inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = std::move(value); }
78 inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
79 inline CreateOptionGroupRequest& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
80 inline CreateOptionGroupRequest& WithEngineName(Aws::String&& value) { SetEngineName(std::move(value)); return *this;}
81 inline CreateOptionGroupRequest& WithEngineName(const char* value) { SetEngineName(value); return *this;}
83
85
89 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
90 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
91 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
92 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
93 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
95 inline CreateOptionGroupRequest& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
96 inline CreateOptionGroupRequest& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
98
100
103 inline const Aws::String& GetOptionGroupDescription() const{ return m_optionGroupDescription; }
104 inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
105 inline void SetOptionGroupDescription(const Aws::String& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = value; }
106 inline void SetOptionGroupDescription(Aws::String&& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = std::move(value); }
107 inline void SetOptionGroupDescription(const char* value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription.assign(value); }
110 inline CreateOptionGroupRequest& WithOptionGroupDescription(const char* value) { SetOptionGroupDescription(value); return *this;}
112
114
117 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateOptionGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
122 inline CreateOptionGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateOptionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
124 inline CreateOptionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_optionGroupName;
129 bool m_optionGroupNameHasBeenSet = false;
130
131 Aws::String m_engineName;
132 bool m_engineNameHasBeenSet = false;
133
134 Aws::String m_majorEngineVersion;
135 bool m_majorEngineVersionHasBeenSet = false;
136
137 Aws::String m_optionGroupDescription;
138 bool m_optionGroupDescriptionHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace RDS
146} // namespace Aws
void SetOptionGroupName(const Aws::String &value)
CreateOptionGroupRequest & WithEngineName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateOptionGroupRequest & WithMajorEngineVersion(const Aws::String &value)
CreateOptionGroupRequest & WithEngineName(const Aws::String &value)
CreateOptionGroupRequest & WithOptionGroupDescription(const char *value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateOptionGroupRequest & WithEngineName(Aws::String &&value)
CreateOptionGroupRequest & WithOptionGroupDescription(Aws::String &&value)
CreateOptionGroupRequest & WithMajorEngineVersion(const char *value)
void SetMajorEngineVersion(const Aws::String &value)
CreateOptionGroupRequest & WithTags(const Aws::Vector< Tag > &value)
void SetOptionGroupDescription(const Aws::String &value)
CreateOptionGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateOptionGroupRequest & WithOptionGroupName(const char *value)
CreateOptionGroupRequest & WithMajorEngineVersion(Aws::String &&value)
CreateOptionGroupRequest & AddTags(Tag &&value)
CreateOptionGroupRequest & WithOptionGroupDescription(const Aws::String &value)
CreateOptionGroupRequest & WithOptionGroupName(const Aws::String &value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateOptionGroupRequest & WithOptionGroupName(Aws::String &&value)
CreateOptionGroupRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector