AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
53 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
54 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
57 inline ModifyCacheSubnetGroupRequest& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
59
61
64 inline const Aws::String& GetCacheSubnetGroupDescription() const{ return m_cacheSubnetGroupDescription; }
65 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
66 inline void SetCacheSubnetGroupDescription(const Aws::String& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; }
67 inline void SetCacheSubnetGroupDescription(Aws::String&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::move(value); }
68 inline void SetCacheSubnetGroupDescription(const char* value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription.assign(value); }
73
75
78 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
79 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
80 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
81 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
83 inline ModifyCacheSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
84 inline ModifyCacheSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
85 inline ModifyCacheSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
86 inline ModifyCacheSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
88 private:
89
90 Aws::String m_cacheSubnetGroupName;
91 bool m_cacheSubnetGroupNameHasBeenSet = false;
92
93 Aws::String m_cacheSubnetGroupDescription;
94 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_subnetIds;
97 bool m_subnetIdsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace ElastiCache
102} // namespace Aws
ModifyCacheSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(Aws::String &&value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupName(Aws::String &&value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupName(const Aws::String &value)
ModifyCacheSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupName(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
ModifyCacheSubnetGroupRequest & AddSubnetIds(const char *value)
ModifyCacheSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyCacheSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
ModifyCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector