AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateCacheSecurityGroupRequest.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#include <aws/elasticache/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
26 public:
27 AWS_ELASTICACHE_API CreateCacheSecurityGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCacheSecurityGroup"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
48 inline const Aws::String& GetCacheSecurityGroupName() const { return m_cacheSecurityGroupName; }
49 inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
50 template <typename CacheSecurityGroupNameT = Aws::String>
51 void SetCacheSecurityGroupName(CacheSecurityGroupNameT&& value) {
52 m_cacheSecurityGroupNameHasBeenSet = true;
53 m_cacheSecurityGroupName = std::forward<CacheSecurityGroupNameT>(value);
54 }
55 template <typename CacheSecurityGroupNameT = Aws::String>
57 SetCacheSecurityGroupName(std::forward<CacheSecurityGroupNameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template <typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsT = Tag>
99 m_tagsHasBeenSet = true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_cacheSecurityGroupName;
106
107 Aws::String m_description;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_cacheSecurityGroupNameHasBeenSet = false;
111 bool m_descriptionHasBeenSet = false;
112 bool m_tagsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ElastiCache
117} // namespace Aws
AWS_ELASTICACHE_API CreateCacheSecurityGroupRequest()=default
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCacheSecurityGroupRequest & WithCacheSecurityGroupName(CacheSecurityGroupNameT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
CreateCacheSecurityGroupRequest & WithTags(TagsT &&value)
CreateCacheSecurityGroupRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector