AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ModifyDBSubnetGroupRequest.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 <utility>
12
13namespace Aws
14{
15namespace RDS
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_RDS_API ModifyDBSubnetGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyDBSubnetGroup"; }
35
36 AWS_RDS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
51 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
52 template<typename DBSubnetGroupNameT = Aws::String>
53 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
54 template<typename DBSubnetGroupNameT = Aws::String>
55 ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
63 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
64 template<typename DBSubnetGroupDescriptionT = Aws::String>
65 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
66 template<typename DBSubnetGroupDescriptionT = Aws::String>
67 ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
75 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
76 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
77 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
78 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
79 ModifyDBSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
80 template<typename SubnetIdsT = Aws::String>
81 ModifyDBSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
83 private:
84
85 Aws::String m_dBSubnetGroupName;
86 bool m_dBSubnetGroupNameHasBeenSet = false;
87
88 Aws::String m_dBSubnetGroupDescription;
89 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_subnetIds;
92 bool m_subnetIdsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace RDS
97} // namespace Aws
AWS_RDS_API ModifyDBSubnetGroupRequest()=default
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBSubnetGroupRequest & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
void SetDBSubnetGroupName(DBSubnetGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API Aws::String SerializePayload() const override
ModifyDBSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
ModifyDBSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector