AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptionGroup.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/rds/model/Option.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_RDS_API OptionGroup() = default;
38 AWS_RDS_API OptionGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API OptionGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
50 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
51 template<typename OptionGroupNameT = Aws::String>
52 void SetOptionGroupName(OptionGroupNameT&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::forward<OptionGroupNameT>(value); }
53 template<typename OptionGroupNameT = Aws::String>
54 OptionGroup& WithOptionGroupName(OptionGroupNameT&& value) { SetOptionGroupName(std::forward<OptionGroupNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetOptionGroupDescription() const { return m_optionGroupDescription; }
62 inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
63 template<typename OptionGroupDescriptionT = Aws::String>
64 void SetOptionGroupDescription(OptionGroupDescriptionT&& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = std::forward<OptionGroupDescriptionT>(value); }
65 template<typename OptionGroupDescriptionT = Aws::String>
66 OptionGroup& WithOptionGroupDescription(OptionGroupDescriptionT&& value) { SetOptionGroupDescription(std::forward<OptionGroupDescriptionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetEngineName() const { return m_engineName; }
75 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
76 template<typename EngineNameT = Aws::String>
77 void SetEngineName(EngineNameT&& value) { m_engineNameHasBeenSet = true; m_engineName = std::forward<EngineNameT>(value); }
78 template<typename EngineNameT = Aws::String>
79 OptionGroup& WithEngineName(EngineNameT&& value) { SetEngineName(std::forward<EngineNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
87 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
88 template<typename MajorEngineVersionT = Aws::String>
89 void SetMajorEngineVersion(MajorEngineVersionT&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::forward<MajorEngineVersionT>(value); }
90 template<typename MajorEngineVersionT = Aws::String>
91 OptionGroup& WithMajorEngineVersion(MajorEngineVersionT&& value) { SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value)); return *this;}
93
95
98 inline const Aws::Vector<Option>& GetOptions() const { return m_options; }
99 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
100 template<typename OptionsT = Aws::Vector<Option>>
101 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
102 template<typename OptionsT = Aws::Vector<Option>>
103 OptionGroup& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
104 template<typename OptionsT = Option>
105 OptionGroup& AddOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options.emplace_back(std::forward<OptionsT>(value)); return *this; }
107
109
114 inline bool GetAllowsVpcAndNonVpcInstanceMemberships() const { return m_allowsVpcAndNonVpcInstanceMemberships; }
115 inline bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const { return m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet; }
116 inline void SetAllowsVpcAndNonVpcInstanceMemberships(bool value) { m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet = true; m_allowsVpcAndNonVpcInstanceMemberships = value; }
119
121
129 inline const Aws::String& GetVpcId() const { return m_vpcId; }
130 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
131 template<typename VpcIdT = Aws::String>
132 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
133 template<typename VpcIdT = Aws::String>
134 OptionGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
136
138
141 inline const Aws::String& GetOptionGroupArn() const { return m_optionGroupArn; }
142 inline bool OptionGroupArnHasBeenSet() const { return m_optionGroupArnHasBeenSet; }
143 template<typename OptionGroupArnT = Aws::String>
144 void SetOptionGroupArn(OptionGroupArnT&& value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn = std::forward<OptionGroupArnT>(value); }
145 template<typename OptionGroupArnT = Aws::String>
146 OptionGroup& WithOptionGroupArn(OptionGroupArnT&& value) { SetOptionGroupArn(std::forward<OptionGroupArnT>(value)); return *this;}
148
150
154 inline const Aws::String& GetSourceOptionGroup() const { return m_sourceOptionGroup; }
155 inline bool SourceOptionGroupHasBeenSet() const { return m_sourceOptionGroupHasBeenSet; }
156 template<typename SourceOptionGroupT = Aws::String>
157 void SetSourceOptionGroup(SourceOptionGroupT&& value) { m_sourceOptionGroupHasBeenSet = true; m_sourceOptionGroup = std::forward<SourceOptionGroupT>(value); }
158 template<typename SourceOptionGroupT = Aws::String>
159 OptionGroup& WithSourceOptionGroup(SourceOptionGroupT&& value) { SetSourceOptionGroup(std::forward<SourceOptionGroupT>(value)); return *this;}
161
163
167 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
168 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
169 template<typename SourceAccountIdT = Aws::String>
170 void SetSourceAccountId(SourceAccountIdT&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::forward<SourceAccountIdT>(value); }
171 template<typename SourceAccountIdT = Aws::String>
172 OptionGroup& WithSourceAccountId(SourceAccountIdT&& value) { SetSourceAccountId(std::forward<SourceAccountIdT>(value)); return *this;}
174
176
179 inline const Aws::Utils::DateTime& GetCopyTimestamp() const { return m_copyTimestamp; }
180 inline bool CopyTimestampHasBeenSet() const { return m_copyTimestampHasBeenSet; }
181 template<typename CopyTimestampT = Aws::Utils::DateTime>
182 void SetCopyTimestamp(CopyTimestampT&& value) { m_copyTimestampHasBeenSet = true; m_copyTimestamp = std::forward<CopyTimestampT>(value); }
183 template<typename CopyTimestampT = Aws::Utils::DateTime>
184 OptionGroup& WithCopyTimestamp(CopyTimestampT&& value) { SetCopyTimestamp(std::forward<CopyTimestampT>(value)); return *this;}
186 private:
187
188 Aws::String m_optionGroupName;
189 bool m_optionGroupNameHasBeenSet = false;
190
191 Aws::String m_optionGroupDescription;
192 bool m_optionGroupDescriptionHasBeenSet = false;
193
194 Aws::String m_engineName;
195 bool m_engineNameHasBeenSet = false;
196
197 Aws::String m_majorEngineVersion;
198 bool m_majorEngineVersionHasBeenSet = false;
199
200 Aws::Vector<Option> m_options;
201 bool m_optionsHasBeenSet = false;
202
203 bool m_allowsVpcAndNonVpcInstanceMemberships{false};
204 bool m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet = false;
205
206 Aws::String m_vpcId;
207 bool m_vpcIdHasBeenSet = false;
208
209 Aws::String m_optionGroupArn;
210 bool m_optionGroupArnHasBeenSet = false;
211
212 Aws::String m_sourceOptionGroup;
213 bool m_sourceOptionGroupHasBeenSet = false;
214
215 Aws::String m_sourceAccountId;
216 bool m_sourceAccountIdHasBeenSet = false;
217
218 Aws::Utils::DateTime m_copyTimestamp{};
219 bool m_copyTimestampHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace RDS
224} // namespace Aws
const Aws::String & GetVpcId() const
AWS_RDS_API OptionGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetCopyTimestamp() const
OptionGroup & WithVpcId(VpcIdT &&value)
OptionGroup & WithSourceOptionGroup(SourceOptionGroupT &&value)
void SetOptionGroupName(OptionGroupNameT &&value)
Definition OptionGroup.h:52
bool SourceOptionGroupHasBeenSet() const
OptionGroup & WithOptionGroupDescription(OptionGroupDescriptionT &&value)
Definition OptionGroup.h:66
void SetMajorEngineVersion(MajorEngineVersionT &&value)
Definition OptionGroup.h:89
OptionGroup & WithAllowsVpcAndNonVpcInstanceMemberships(bool value)
const Aws::String & GetMajorEngineVersion() const
Definition OptionGroup.h:86
void SetSourceAccountId(SourceAccountIdT &&value)
bool OptionGroupDescriptionHasBeenSet() const
Definition OptionGroup.h:62
void SetAllowsVpcAndNonVpcInstanceMemberships(bool value)
OptionGroup & WithOptionGroupArn(OptionGroupArnT &&value)
void SetEngineName(EngineNameT &&value)
Definition OptionGroup.h:77
bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const
const Aws::String & GetOptionGroupDescription() const
Definition OptionGroup.h:61
void SetCopyTimestamp(CopyTimestampT &&value)
AWS_RDS_API OptionGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Option > & GetOptions() const
Definition OptionGroup.h:98
bool OptionGroupArnHasBeenSet() const
bool EngineNameHasBeenSet() const
Definition OptionGroup.h:75
void SetVpcId(VpcIdT &&value)
OptionGroup & WithCopyTimestamp(CopyTimestampT &&value)
const Aws::String & GetSourceAccountId() const
OptionGroup & AddOptions(OptionsT &&value)
const Aws::String & GetOptionGroupName() const
Definition OptionGroup.h:49
OptionGroup & WithMajorEngineVersion(MajorEngineVersionT &&value)
Definition OptionGroup.h:91
OptionGroup & WithOptionGroupName(OptionGroupNameT &&value)
Definition OptionGroup.h:54
AWS_RDS_API OptionGroup()=default
bool OptionGroupNameHasBeenSet() const
Definition OptionGroup.h:50
bool SourceAccountIdHasBeenSet() const
const Aws::String & GetEngineName() const
Definition OptionGroup.h:74
void SetSourceOptionGroup(SourceOptionGroupT &&value)
void SetOptionGroupDescription(OptionGroupDescriptionT &&value)
Definition OptionGroup.h:64
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOptionGroupArn(OptionGroupArnT &&value)
bool MajorEngineVersionHasBeenSet() const
Definition OptionGroup.h:87
void SetOptions(OptionsT &&value)
OptionGroup & WithSourceAccountId(SourceAccountIdT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSourceOptionGroup() const
OptionGroup & WithEngineName(EngineNameT &&value)
Definition OptionGroup.h:79
bool GetAllowsVpcAndNonVpcInstanceMemberships() const
const Aws::String & GetOptionGroupArn() const
OptionGroup & WithOptions(OptionsT &&value)
bool CopyTimestampHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream