AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyCacheSubnetGroupRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.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 ElastiCache
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ELASTICACHE_API ModifyCacheSubnetGroupRequest() = 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 "ModifyCacheSubnetGroup"; }
36
37 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
50 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
51 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
52 template<typename CacheSubnetGroupNameT = Aws::String>
53 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value); }
54 template<typename CacheSubnetGroupNameT = Aws::String>
55 ModifyCacheSubnetGroupRequest& WithCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetCacheSubnetGroupDescription() const { return m_cacheSubnetGroupDescription; }
63 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
64 template<typename CacheSubnetGroupDescriptionT = Aws::String>
65 void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value); }
66 template<typename CacheSubnetGroupDescriptionT = Aws::String>
67 ModifyCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { SetCacheSubnetGroupDescription(std::forward<CacheSubnetGroupDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
75 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
76 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
77 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
78 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
79 ModifyCacheSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
80 template<typename SubnetIdsT = Aws::String>
81 ModifyCacheSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
83 private:
84
85 Aws::String m_cacheSubnetGroupName;
86 bool m_cacheSubnetGroupNameHasBeenSet = false;
87
88 Aws::String m_cacheSubnetGroupDescription;
89 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_subnetIds;
92 bool m_subnetIdsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ElastiCache
97} // 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