AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateSubnetGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API CreateSubnetGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSubnetGroup"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
40 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
41 template <typename SubnetGroupNameT = Aws::String>
42 void SetSubnetGroupName(SubnetGroupNameT&& value) {
43 m_subnetGroupNameHasBeenSet = true;
44 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
45 }
46 template <typename SubnetGroupNameT = Aws::String>
47 CreateSubnetGroupRequest& WithSubnetGroupName(SubnetGroupNameT&& value) {
48 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
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) {
79 m_subnetIdsHasBeenSet = true;
80 m_subnetIds = std::forward<SubnetIdsT>(value);
81 }
82 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
84 SetSubnetIds(std::forward<SubnetIdsT>(value));
85 return *this;
86 }
87 template <typename SubnetIdsT = Aws::String>
89 m_subnetIdsHasBeenSet = true;
90 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template <typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Vector<Tag>>
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsT = Tag>
114 m_tagsHasBeenSet = true;
115 m_tags.emplace_back(std::forward<TagsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_subnetGroupName;
121
122 Aws::String m_description;
123
124 Aws::Vector<Aws::String> m_subnetIds;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_subnetGroupNameHasBeenSet = false;
128 bool m_descriptionHasBeenSet = false;
129 bool m_subnetIdsHasBeenSet = false;
130 bool m_tagsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace MemoryDB
135} // namespace Aws
CreateSubnetGroupRequest & WithDescription(DescriptionT &&value)
AWS_MEMORYDB_API CreateSubnetGroupRequest()=default
CreateSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetSubnetIds() const
virtual const char * GetServiceRequestName() const override
CreateSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateSubnetGroupRequest & WithTags(TagsT &&value)
CreateSubnetGroupRequest & AddTags(TagsT &&value)
CreateSubnetGroupRequest & WithSubnetGroupName(SubnetGroupNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector