AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
CreateGlobalReplicationGroupRequest.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
22 public:
23 AWS_ELASTICACHE_API CreateGlobalReplicationGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalReplicationGroup"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
49 inline const Aws::String& GetGlobalReplicationGroupIdSuffix() const { return m_globalReplicationGroupIdSuffix; }
50 inline bool GlobalReplicationGroupIdSuffixHasBeenSet() const { return m_globalReplicationGroupIdSuffixHasBeenSet; }
51 template <typename GlobalReplicationGroupIdSuffixT = Aws::String>
52 void SetGlobalReplicationGroupIdSuffix(GlobalReplicationGroupIdSuffixT&& value) {
53 m_globalReplicationGroupIdSuffixHasBeenSet = true;
54 m_globalReplicationGroupIdSuffix = std::forward<GlobalReplicationGroupIdSuffixT>(value);
55 }
56 template <typename GlobalReplicationGroupIdSuffixT = Aws::String>
58 SetGlobalReplicationGroupIdSuffix(std::forward<GlobalReplicationGroupIdSuffixT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetGlobalReplicationGroupDescription() const { return m_globalReplicationGroupDescription; }
68 inline bool GlobalReplicationGroupDescriptionHasBeenSet() const { return m_globalReplicationGroupDescriptionHasBeenSet; }
69 template <typename GlobalReplicationGroupDescriptionT = Aws::String>
70 void SetGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT&& value) {
71 m_globalReplicationGroupDescriptionHasBeenSet = true;
72 m_globalReplicationGroupDescription = std::forward<GlobalReplicationGroupDescriptionT>(value);
73 }
74 template <typename GlobalReplicationGroupDescriptionT = Aws::String>
76 SetGlobalReplicationGroupDescription(std::forward<GlobalReplicationGroupDescriptionT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetPrimaryReplicationGroupId() const { return m_primaryReplicationGroupId; }
88 inline bool PrimaryReplicationGroupIdHasBeenSet() const { return m_primaryReplicationGroupIdHasBeenSet; }
89 template <typename PrimaryReplicationGroupIdT = Aws::String>
90 void SetPrimaryReplicationGroupId(PrimaryReplicationGroupIdT&& value) {
91 m_primaryReplicationGroupIdHasBeenSet = true;
92 m_primaryReplicationGroupId = std::forward<PrimaryReplicationGroupIdT>(value);
93 }
94 template <typename PrimaryReplicationGroupIdT = Aws::String>
96 SetPrimaryReplicationGroupId(std::forward<PrimaryReplicationGroupIdT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Vector<Tag>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsT = Tag>
120 m_tagsHasBeenSet = true;
121 m_tags.emplace_back(std::forward<TagsT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_globalReplicationGroupIdSuffix;
127
128 Aws::String m_globalReplicationGroupDescription;
129
130 Aws::String m_primaryReplicationGroupId;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_globalReplicationGroupIdSuffixHasBeenSet = false;
134 bool m_globalReplicationGroupDescriptionHasBeenSet = false;
135 bool m_primaryReplicationGroupIdHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ElastiCache
141} // namespace Aws
CreateGlobalReplicationGroupRequest & WithGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT &&value)
void SetGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT &&value)
CreateGlobalReplicationGroupRequest & WithPrimaryReplicationGroupId(PrimaryReplicationGroupIdT &&value)
void SetGlobalReplicationGroupIdSuffix(GlobalReplicationGroupIdSuffixT &&value)
AWS_ELASTICACHE_API CreateGlobalReplicationGroupRequest()=default
CreateGlobalReplicationGroupRequest & WithGlobalReplicationGroupIdSuffix(GlobalReplicationGroupIdSuffixT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector