AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyDBSubnetGroupRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.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 DocDB
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DOCDB_API ModifyDBSubnetGroupRequest() = default;
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 "ModifyDBSubnetGroup"; }
36
37 AWS_DOCDB_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
52 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
53 template<typename DBSubnetGroupNameT = Aws::String>
54 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
55 template<typename DBSubnetGroupNameT = Aws::String>
56 ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
64 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
65 template<typename DBSubnetGroupDescriptionT = Aws::String>
66 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
67 template<typename DBSubnetGroupDescriptionT = Aws::String>
68 ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
76 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
77 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
78 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
79 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
80 ModifyDBSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
81 template<typename SubnetIdsT = Aws::String>
82 ModifyDBSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
84 private:
85
86 Aws::String m_dBSubnetGroupName;
87 bool m_dBSubnetGroupNameHasBeenSet = false;
88
89 Aws::String m_dBSubnetGroupDescription;
90 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_subnetIds;
93 bool m_subnetIdsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace DocDB
98} // namespace Aws
ModifyDBSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_DOCDB_API Aws::String SerializePayload() const override
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
ModifyDBSubnetGroupRequest & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
AWS_DOCDB_API ModifyDBSubnetGroupRequest()=default
ModifyDBSubnetGroupRequest & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
ModifyDBSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector