AWS SDK for C++  1.9.109
AWS SDK for C++
ModifyOptionGroupRequest.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>
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 "ModifyOptionGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
51 
58  inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
59 
66  inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
67 
74  inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
75 
82  inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
83 
90  inline ModifyOptionGroupRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
91 
98  inline ModifyOptionGroupRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
99 
106  inline ModifyOptionGroupRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
107 
108 
113  inline const Aws::Vector<OptionConfiguration>& GetOptionsToInclude() const{ return m_optionsToInclude; }
114 
119  inline bool OptionsToIncludeHasBeenSet() const { return m_optionsToIncludeHasBeenSet; }
120 
125  inline void SetOptionsToInclude(const Aws::Vector<OptionConfiguration>& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude = value; }
126 
131  inline void SetOptionsToInclude(Aws::Vector<OptionConfiguration>&& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude = std::move(value); }
132 
137  inline ModifyOptionGroupRequest& WithOptionsToInclude(const Aws::Vector<OptionConfiguration>& value) { SetOptionsToInclude(value); return *this;}
138 
143  inline ModifyOptionGroupRequest& WithOptionsToInclude(Aws::Vector<OptionConfiguration>&& value) { SetOptionsToInclude(std::move(value)); return *this;}
144 
149  inline ModifyOptionGroupRequest& AddOptionsToInclude(const OptionConfiguration& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude.push_back(value); return *this; }
150 
155  inline ModifyOptionGroupRequest& AddOptionsToInclude(OptionConfiguration&& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude.push_back(std::move(value)); return *this; }
156 
157 
161  inline const Aws::Vector<Aws::String>& GetOptionsToRemove() const{ return m_optionsToRemove; }
162 
166  inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
167 
171  inline void SetOptionsToRemove(const Aws::Vector<Aws::String>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
172 
176  inline void SetOptionsToRemove(Aws::Vector<Aws::String>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
177 
181  inline ModifyOptionGroupRequest& WithOptionsToRemove(const Aws::Vector<Aws::String>& value) { SetOptionsToRemove(value); return *this;}
182 
186  inline ModifyOptionGroupRequest& WithOptionsToRemove(Aws::Vector<Aws::String>&& value) { SetOptionsToRemove(std::move(value)); return *this;}
187 
191  inline ModifyOptionGroupRequest& AddOptionsToRemove(const Aws::String& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
192 
196  inline ModifyOptionGroupRequest& AddOptionsToRemove(Aws::String&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
197 
201  inline ModifyOptionGroupRequest& AddOptionsToRemove(const char* value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
202 
203 
208  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
209 
214  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
215 
220  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
221 
226  inline ModifyOptionGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
227 
228  private:
229 
230  Aws::String m_optionGroupName;
231  bool m_optionGroupNameHasBeenSet;
232 
233  Aws::Vector<OptionConfiguration> m_optionsToInclude;
234  bool m_optionsToIncludeHasBeenSet;
235 
236  Aws::Vector<Aws::String> m_optionsToRemove;
237  bool m_optionsToRemoveHasBeenSet;
238 
239  bool m_applyImmediately;
240  bool m_applyImmediatelyHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace RDS
245 } // namespace Aws
Aws::RDS::Model::ModifyOptionGroupRequest::SetApplyImmediately
void SetApplyImmediately(bool value)
Definition: ModifyOptionGroupRequest.h:220
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionGroupName
ModifyOptionGroupRequest & WithOptionGroupName(const Aws::String &value)
Definition: ModifyOptionGroupRequest.h:90
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionGroupName
ModifyOptionGroupRequest & WithOptionGroupName(Aws::String &&value)
Definition: ModifyOptionGroupRequest.h:98
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ModifyOptionGroupRequest::OptionsToIncludeHasBeenSet
bool OptionsToIncludeHasBeenSet() const
Definition: ModifyOptionGroupRequest.h:119
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionsToRemove
ModifyOptionGroupRequest & WithOptionsToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyOptionGroupRequest.h:181
Aws::RDS::Model::ModifyOptionGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionsToInclude
void SetOptionsToInclude(const Aws::Vector< OptionConfiguration > &value)
Definition: ModifyOptionGroupRequest.h:125
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ModifyOptionGroupRequest::AddOptionsToInclude
ModifyOptionGroupRequest & AddOptionsToInclude(const OptionConfiguration &value)
Definition: ModifyOptionGroupRequest.h:149
Aws::RDS::Model::ModifyOptionGroupRequest::AddOptionsToRemove
ModifyOptionGroupRequest & AddOptionsToRemove(const Aws::String &value)
Definition: ModifyOptionGroupRequest.h:191
Aws::RDS::Model::ModifyOptionGroupRequest::WithApplyImmediately
ModifyOptionGroupRequest & WithApplyImmediately(bool value)
Definition: ModifyOptionGroupRequest.h:226
Aws::RDS::Model::ModifyOptionGroupRequest::OptionGroupNameHasBeenSet
bool OptionGroupNameHasBeenSet() const
Definition: ModifyOptionGroupRequest.h:58
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(const char *value)
Definition: ModifyOptionGroupRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionGroupName
ModifyOptionGroupRequest & WithOptionGroupName(const char *value)
Definition: ModifyOptionGroupRequest.h:106
Aws::RDS::Model::ModifyOptionGroupRequest::GetOptionGroupName
const Aws::String & GetOptionGroupName() const
Definition: ModifyOptionGroupRequest.h:50
Aws::RDS::Model::ModifyOptionGroupRequest::GetApplyImmediately
bool GetApplyImmediately() const
Definition: ModifyOptionGroupRequest.h:208
Aws::RDS::Model::ModifyOptionGroupRequest::GetOptionsToRemove
const Aws::Vector< Aws::String > & GetOptionsToRemove() const
Definition: ModifyOptionGroupRequest.h:161
Aws::RDS::Model::ModifyOptionGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::ModifyOptionGroupRequest::AddOptionsToInclude
ModifyOptionGroupRequest & AddOptionsToInclude(OptionConfiguration &&value)
Definition: ModifyOptionGroupRequest.h:155
RDS_EXPORTS.h
Aws::RDS::Model::ModifyOptionGroupRequest::AddOptionsToRemove
ModifyOptionGroupRequest & AddOptionsToRemove(Aws::String &&value)
Definition: ModifyOptionGroupRequest.h:196
Aws::RDS::Model::ModifyOptionGroupRequest::ApplyImmediatelyHasBeenSet
bool ApplyImmediatelyHasBeenSet() const
Definition: ModifyOptionGroupRequest.h:214
AWSString.h
Aws::RDS::Model::ModifyOptionGroupRequest::GetOptionsToInclude
const Aws::Vector< OptionConfiguration > & GetOptionsToInclude() const
Definition: ModifyOptionGroupRequest.h:113
Aws::RDS::Model::OptionConfiguration
Definition: OptionConfiguration.h:34
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionsToInclude
ModifyOptionGroupRequest & WithOptionsToInclude(Aws::Vector< OptionConfiguration > &&value)
Definition: ModifyOptionGroupRequest.h:143
OptionConfiguration.h
Aws::RDS::Model::ModifyOptionGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyOptionGroupRequest.h:35
Aws::RDS::Model::ModifyOptionGroupRequest::AddOptionsToRemove
ModifyOptionGroupRequest & AddOptionsToRemove(const char *value)
Definition: ModifyOptionGroupRequest.h:201
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionsToInclude
ModifyOptionGroupRequest & WithOptionsToInclude(const Aws::Vector< OptionConfiguration > &value)
Definition: ModifyOptionGroupRequest.h:137
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ModifyOptionGroupRequest
Definition: ModifyOptionGroupRequest.h:27
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionsToRemove
void SetOptionsToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyOptionGroupRequest.h:176
Aws::RDS::Model::ModifyOptionGroupRequest::ModifyOptionGroupRequest
ModifyOptionGroupRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(Aws::String &&value)
Definition: ModifyOptionGroupRequest.h:74
Aws::RDS::Model::ModifyOptionGroupRequest::WithOptionsToRemove
ModifyOptionGroupRequest & WithOptionsToRemove(Aws::Vector< Aws::String > &&value)
Definition: ModifyOptionGroupRequest.h:186
Aws::RDS::Model::ModifyOptionGroupRequest::OptionsToRemoveHasBeenSet
bool OptionsToRemoveHasBeenSet() const
Definition: ModifyOptionGroupRequest.h:166
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionsToRemove
void SetOptionsToRemove(const Aws::Vector< Aws::String > &value)
Definition: ModifyOptionGroupRequest.h:171
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionsToInclude
void SetOptionsToInclude(Aws::Vector< OptionConfiguration > &&value)
Definition: ModifyOptionGroupRequest.h:131
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ModifyOptionGroupRequest::SetOptionGroupName
void SetOptionGroupName(const Aws::String &value)
Definition: ModifyOptionGroupRequest.h:66