AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
54 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
55 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
58 inline CreateCacheSubnetGroupRequest& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
60
62
65 inline const Aws::String& GetCacheSubnetGroupDescription() const{ return m_cacheSubnetGroupDescription; }
66 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
67 inline void SetCacheSubnetGroupDescription(const Aws::String& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; }
68 inline void SetCacheSubnetGroupDescription(Aws::String&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::move(value); }
69 inline void SetCacheSubnetGroupDescription(const char* value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription.assign(value); }
74
76
79 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
80 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
81 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
82 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
84 inline CreateCacheSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
85 inline CreateCacheSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
86 inline CreateCacheSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
87 inline CreateCacheSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
89
91
95 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline CreateCacheSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
100 inline CreateCacheSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateCacheSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
102 inline CreateCacheSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_cacheSubnetGroupName;
107 bool m_cacheSubnetGroupNameHasBeenSet = false;
108
109 Aws::String m_cacheSubnetGroupDescription;
110 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_subnetIds;
113 bool m_subnetIdsHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ElastiCache
121} // namespace Aws
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const Aws::String &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(Aws::String &&value)
CreateCacheSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateCacheSubnetGroupRequest & AddTags(const Tag &value)
CreateCacheSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateCacheSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
CreateCacheSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateCacheSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateCacheSubnetGroupRequest & AddSubnetIds(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateCacheSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const char *value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(const Aws::String &value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector