AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCacheSubnetGroupRequest.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 <aws/elasticache/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICACHE_API CreateCacheSubnetGroupRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCacheSubnetGroup"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
51 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
52 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
53 template<typename CacheSubnetGroupNameT = Aws::String>
54 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value); }
55 template<typename CacheSubnetGroupNameT = Aws::String>
56 CreateCacheSubnetGroupRequest& WithCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCacheSubnetGroupDescription() const { return m_cacheSubnetGroupDescription; }
64 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
65 template<typename CacheSubnetGroupDescriptionT = Aws::String>
66 void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value); }
67 template<typename CacheSubnetGroupDescriptionT = Aws::String>
68 CreateCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { SetCacheSubnetGroupDescription(std::forward<CacheSubnetGroupDescriptionT>(value)); return *this;}
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) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
79 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
80 CreateCacheSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
81 template<typename SubnetIdsT = Aws::String>
82 CreateCacheSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
84
86
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Vector<Tag>>
95 CreateCacheSubnetGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 CreateCacheSubnetGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_cacheSubnetGroupName;
102 bool m_cacheSubnetGroupNameHasBeenSet = false;
103
104 Aws::String m_cacheSubnetGroupDescription;
105 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_subnetIds;
108 bool m_subnetIdsHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElastiCache
116} // 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 & AddTags(TagsT &&value)
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