AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyOptionGroupRequest.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/OptionConfiguration.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 "ModifyOptionGroup"; }
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
51 inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
52 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
53 inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
54 inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
55 inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
56 inline ModifyOptionGroupRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
57 inline ModifyOptionGroupRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
58 inline ModifyOptionGroupRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
60
62
66 inline const Aws::Vector<OptionConfiguration>& GetOptionsToInclude() const{ return m_optionsToInclude; }
67 inline bool OptionsToIncludeHasBeenSet() const { return m_optionsToIncludeHasBeenSet; }
68 inline void SetOptionsToInclude(const Aws::Vector<OptionConfiguration>& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude = value; }
69 inline void SetOptionsToInclude(Aws::Vector<OptionConfiguration>&& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude = std::move(value); }
72 inline ModifyOptionGroupRequest& AddOptionsToInclude(const OptionConfiguration& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude.push_back(value); return *this; }
73 inline ModifyOptionGroupRequest& AddOptionsToInclude(OptionConfiguration&& value) { m_optionsToIncludeHasBeenSet = true; m_optionsToInclude.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::Vector<Aws::String>& GetOptionsToRemove() const{ return m_optionsToRemove; }
81 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
82 inline void SetOptionsToRemove(const Aws::Vector<Aws::String>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
83 inline void SetOptionsToRemove(Aws::Vector<Aws::String>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
86 inline ModifyOptionGroupRequest& AddOptionsToRemove(const Aws::String& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
87 inline ModifyOptionGroupRequest& AddOptionsToRemove(Aws::String&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
88 inline ModifyOptionGroupRequest& AddOptionsToRemove(const char* value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
90
92
96 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
97 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
98 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
99 inline ModifyOptionGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
101 private:
102
103 Aws::String m_optionGroupName;
104 bool m_optionGroupNameHasBeenSet = false;
105
106 Aws::Vector<OptionConfiguration> m_optionsToInclude;
107 bool m_optionsToIncludeHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_optionsToRemove;
110 bool m_optionsToRemoveHasBeenSet = false;
111
112 bool m_applyImmediately;
113 bool m_applyImmediatelyHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace RDS
118} // namespace Aws
AWS_RDS_API Aws::String SerializePayload() const override
void SetOptionsToInclude(const Aws::Vector< OptionConfiguration > &value)
ModifyOptionGroupRequest & WithOptionsToInclude(const Aws::Vector< OptionConfiguration > &value)
const Aws::Vector< OptionConfiguration > & GetOptionsToInclude() const
ModifyOptionGroupRequest & WithOptionGroupName(const Aws::String &value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyOptionGroupRequest & WithOptionGroupName(const char *value)
ModifyOptionGroupRequest & AddOptionsToInclude(const OptionConfiguration &value)
ModifyOptionGroupRequest & AddOptionsToInclude(OptionConfiguration &&value)
ModifyOptionGroupRequest & AddOptionsToRemove(const Aws::String &value)
ModifyOptionGroupRequest & AddOptionsToRemove(const char *value)
ModifyOptionGroupRequest & WithApplyImmediately(bool value)
ModifyOptionGroupRequest & AddOptionsToRemove(Aws::String &&value)
ModifyOptionGroupRequest & WithOptionsToRemove(Aws::Vector< Aws::String > &&value)
void SetOptionsToInclude(Aws::Vector< OptionConfiguration > &&value)
ModifyOptionGroupRequest & WithOptionsToRemove(const Aws::Vector< Aws::String > &value)
void SetOptionsToRemove(Aws::Vector< Aws::String > &&value)
ModifyOptionGroupRequest & WithOptionsToInclude(Aws::Vector< OptionConfiguration > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetOptionsToRemove() const
ModifyOptionGroupRequest & WithOptionGroupName(Aws::String &&value)
void SetOptionGroupName(const Aws::String &value)
void SetOptionsToRemove(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector