AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateCollectionGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
11#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
12#include <aws/opensearchserverless/model/CollectionGroupCapacityLimits.h>
13#include <aws/opensearchserverless/model/StandbyReplicas.h>
14#include <aws/opensearchserverless/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace OpenSearchServerless {
20namespace Model {
21
25 public:
26 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateCollectionGroup"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
61 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
63 m_standbyReplicasHasBeenSet = true;
64 m_standbyReplicas = value;
65 }
67 SetStandbyReplicas(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114
116
121 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
122 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
123 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
124 void SetCapacityLimits(CapacityLimitsT&& value) {
125 m_capacityLimitsHasBeenSet = true;
126 m_capacityLimits = std::forward<CapacityLimitsT>(value);
127 }
128 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
130 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetClientToken() const { return m_clientToken; }
140 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
141 template <typename ClientTokenT = Aws::String>
142 void SetClientToken(ClientTokenT&& value) {
143 m_clientTokenHasBeenSet = true;
144 m_clientToken = std::forward<ClientTokenT>(value);
145 }
146 template <typename ClientTokenT = Aws::String>
148 SetClientToken(std::forward<ClientTokenT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
155 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
156
157 Aws::String m_description;
158
159 Aws::Vector<Tag> m_tags;
160
161 CollectionGroupCapacityLimits m_capacityLimits;
162
164 bool m_nameHasBeenSet = false;
165 bool m_standbyReplicasHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168 bool m_capacityLimitsHasBeenSet = false;
169 bool m_clientTokenHasBeenSet = true;
170};
171
172} // namespace Model
173} // namespace OpenSearchServerless
174} // namespace Aws
CreateCollectionGroupRequest & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCollectionGroupRequest & WithCapacityLimits(CapacityLimitsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateCollectionGroupRequest & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupRequest()=default
CreateCollectionGroupRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector