AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCacheSecurityGroupRequest.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 CreateCacheSecurityGroupRequest() = 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 "CreateCacheSecurityGroup"; }
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
52 inline const Aws::String& GetCacheSecurityGroupName() const { return m_cacheSecurityGroupName; }
53 inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
54 template<typename CacheSecurityGroupNameT = Aws::String>
55 void SetCacheSecurityGroupName(CacheSecurityGroupNameT&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::forward<CacheSecurityGroupNameT>(value); }
56 template<typename CacheSecurityGroupNameT = Aws::String>
57 CreateCacheSecurityGroupRequest& WithCacheSecurityGroupName(CacheSecurityGroupNameT&& value) { SetCacheSecurityGroupName(std::forward<CacheSecurityGroupNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 CreateCacheSecurityGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template<typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
81 template<typename TagsT = Aws::Vector<Tag>>
82 CreateCacheSecurityGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
83 template<typename TagsT = Tag>
84 CreateCacheSecurityGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
86 private:
87
88 Aws::String m_cacheSecurityGroupName;
89 bool m_cacheSecurityGroupNameHasBeenSet = false;
90
91 Aws::String m_description;
92 bool m_descriptionHasBeenSet = false;
93
94 Aws::Vector<Tag> m_tags;
95 bool m_tagsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ElastiCache
100} // 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