AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDBSubnetGroupRequest.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Neptune
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NEPTUNE_API CreateDBSubnetGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDBSubnetGroup"; }
33
34 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
49 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
50 template<typename DBSubnetGroupNameT = Aws::String>
51 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
52 template<typename DBSubnetGroupNameT = Aws::String>
53 CreateDBSubnetGroupRequest& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
61 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
62 template<typename DBSubnetGroupDescriptionT = Aws::String>
63 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
64 template<typename DBSubnetGroupDescriptionT = Aws::String>
65 CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
73 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
74 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
75 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
76 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
77 CreateDBSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
78 template<typename SubnetIdsT = Aws::String>
79 CreateDBSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
81
83
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Vector<Tag>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Vector<Tag>>
91 CreateDBSubnetGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsT = Tag>
93 CreateDBSubnetGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
95 private:
96
97 Aws::String m_dBSubnetGroupName;
98 bool m_dBSubnetGroupNameHasBeenSet = false;
99
100 Aws::String m_dBSubnetGroupDescription;
101 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_subnetIds;
104 bool m_subnetIdsHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Neptune
112} // namespace Aws
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
CreateDBSubnetGroupRequest & AddTags(TagsT &&value)
CreateDBSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateDBSubnetGroupRequest & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_NEPTUNE_API CreateDBSubnetGroupRequest()=default
AWS_NEPTUNE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
CreateDBSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector