AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateCacheSubnetGroupRequest.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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
26 public:
27 AWS_ELASTICACHE_API CreateCacheSubnetGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCacheSubnetGroup"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
47 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
48 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
49 template <typename CacheSubnetGroupNameT = Aws::String>
50 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) {
51 m_cacheSubnetGroupNameHasBeenSet = true;
52 m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value);
53 }
54 template <typename CacheSubnetGroupNameT = Aws::String>
56 SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCacheSubnetGroupDescription() const { return m_cacheSubnetGroupDescription; }
66 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
67 template <typename CacheSubnetGroupDescriptionT = Aws::String>
68 void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) {
69 m_cacheSubnetGroupDescriptionHasBeenSet = true;
70 m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value);
71 }
72 template <typename CacheSubnetGroupDescriptionT = Aws::String>
73 CreateCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) {
74 SetCacheSubnetGroupDescription(std::forward<CacheSubnetGroupDescriptionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
84 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
85 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
86 void SetSubnetIds(SubnetIdsT&& value) {
87 m_subnetIdsHasBeenSet = true;
88 m_subnetIds = std::forward<SubnetIdsT>(value);
89 }
90 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
92 SetSubnetIds(std::forward<SubnetIdsT>(value));
93 return *this;
94 }
95 template <typename SubnetIdsT = Aws::String>
97 m_subnetIdsHasBeenSet = true;
98 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template <typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Vector<Tag>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsT = Tag>
122 m_tagsHasBeenSet = true;
123 m_tags.emplace_back(std::forward<TagsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_cacheSubnetGroupName;
129
130 Aws::String m_cacheSubnetGroupDescription;
131
132 Aws::Vector<Aws::String> m_subnetIds;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_cacheSubnetGroupNameHasBeenSet = false;
136 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
137 bool m_subnetIdsHasBeenSet = false;
138 bool m_tagsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ElastiCache
143} // namespace Aws
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
CreateCacheSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateCacheSubnetGroupRequest & WithTags(TagsT &&value)
void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
CreateCacheSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_ELASTICACHE_API CreateCacheSubnetGroupRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector