AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyCacheSubnetGroupRequest.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
12#include <utility>
13
14namespace Aws {
15namespace ElastiCache {
16namespace Model {
17
25 public:
26 AWS_ELASTICACHE_API ModifyCacheSubnetGroupRequest() = 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 "ModifyCacheSubnetGroup"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
46 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
47 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
48 template <typename CacheSubnetGroupNameT = Aws::String>
49 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) {
50 m_cacheSubnetGroupNameHasBeenSet = true;
51 m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value);
52 }
53 template <typename CacheSubnetGroupNameT = Aws::String>
55 SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCacheSubnetGroupDescription() const { return m_cacheSubnetGroupDescription; }
65 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
66 template <typename CacheSubnetGroupDescriptionT = Aws::String>
67 void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) {
68 m_cacheSubnetGroupDescriptionHasBeenSet = true;
69 m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value);
70 }
71 template <typename CacheSubnetGroupDescriptionT = Aws::String>
72 ModifyCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) {
73 SetCacheSubnetGroupDescription(std::forward<CacheSubnetGroupDescriptionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
83 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
84 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
85 void SetSubnetIds(SubnetIdsT&& value) {
86 m_subnetIdsHasBeenSet = true;
87 m_subnetIds = std::forward<SubnetIdsT>(value);
88 }
89 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
91 SetSubnetIds(std::forward<SubnetIdsT>(value));
92 return *this;
93 }
94 template <typename SubnetIdsT = Aws::String>
96 m_subnetIdsHasBeenSet = true;
97 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_cacheSubnetGroupName;
103
104 Aws::String m_cacheSubnetGroupDescription;
105
106 Aws::Vector<Aws::String> m_subnetIds;
107 bool m_cacheSubnetGroupNameHasBeenSet = false;
108 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
109 bool m_subnetIdsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ElastiCache
114} // namespace Aws
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
ModifyCacheSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
ModifyCacheSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
AWS_ELASTICACHE_API ModifyCacheSubnetGroupRequest()=default
void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector