AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGraphRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune-graph/NeptuneGraphRequest.h>
10#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
11#include <aws/neptune-graph/model/VectorSearchConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NeptuneGraph {
17namespace Model {
18
22 public:
23 AWS_NEPTUNEGRAPH_API CreateGraphRequest() = 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 "CreateGraph"; }
30
31 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
32
36 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
37
39
45 inline const Aws::String& GetGraphName() const { return m_graphName; }
46 inline bool GraphNameHasBeenSet() const { return m_graphNameHasBeenSet; }
47 template <typename GraphNameT = Aws::String>
48 void SetGraphName(GraphNameT&& value) {
49 m_graphNameHasBeenSet = true;
50 m_graphName = std::forward<GraphNameT>(value);
51 }
52 template <typename GraphNameT = Aws::String>
53 CreateGraphRequest& WithGraphName(GraphNameT&& value) {
54 SetGraphName(std::forward<GraphNameT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
65 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
66 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
67 void SetTags(TagsT&& value) {
68 m_tagsHasBeenSet = true;
69 m_tags = std::forward<TagsT>(value);
70 }
71 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateGraphRequest& WithTags(TagsT&& value) {
73 SetTags(std::forward<TagsT>(value));
74 return *this;
75 }
76 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
77 CreateGraphRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
80 return *this;
81 }
83
85
90 inline bool GetPublicConnectivity() const { return m_publicConnectivity; }
91 inline bool PublicConnectivityHasBeenSet() const { return m_publicConnectivityHasBeenSet; }
92 inline void SetPublicConnectivity(bool value) {
93 m_publicConnectivityHasBeenSet = true;
94 m_publicConnectivity = value;
95 }
98 return *this;
99 }
101
103
106 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
107 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
108 template <typename KmsKeyIdentifierT = Aws::String>
109 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
110 m_kmsKeyIdentifierHasBeenSet = true;
111 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
112 }
113 template <typename KmsKeyIdentifierT = Aws::String>
114 CreateGraphRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
115 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
116 return *this;
117 }
119
121
126 inline const VectorSearchConfiguration& GetVectorSearchConfiguration() const { return m_vectorSearchConfiguration; }
127 inline bool VectorSearchConfigurationHasBeenSet() const { return m_vectorSearchConfigurationHasBeenSet; }
128 template <typename VectorSearchConfigurationT = VectorSearchConfiguration>
129 void SetVectorSearchConfiguration(VectorSearchConfigurationT&& value) {
130 m_vectorSearchConfigurationHasBeenSet = true;
131 m_vectorSearchConfiguration = std::forward<VectorSearchConfigurationT>(value);
132 }
133 template <typename VectorSearchConfigurationT = VectorSearchConfiguration>
134 CreateGraphRequest& WithVectorSearchConfiguration(VectorSearchConfigurationT&& value) {
135 SetVectorSearchConfiguration(std::forward<VectorSearchConfigurationT>(value));
136 return *this;
137 }
139
141
146 inline int GetReplicaCount() const { return m_replicaCount; }
147 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
148 inline void SetReplicaCount(int value) {
149 m_replicaCountHasBeenSet = true;
150 m_replicaCount = value;
151 }
153 SetReplicaCount(value);
154 return *this;
155 }
157
159
164 inline bool GetDeletionProtection() const { return m_deletionProtection; }
165 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
166 inline void SetDeletionProtection(bool value) {
167 m_deletionProtectionHasBeenSet = true;
168 m_deletionProtection = value;
169 }
172 return *this;
173 }
175
177
181 inline int GetProvisionedMemory() const { return m_provisionedMemory; }
182 inline bool ProvisionedMemoryHasBeenSet() const { return m_provisionedMemoryHasBeenSet; }
183 inline void SetProvisionedMemory(int value) {
184 m_provisionedMemoryHasBeenSet = true;
185 m_provisionedMemory = value;
186 }
189 return *this;
190 }
192 private:
193 Aws::String m_graphName;
194
196
197 bool m_publicConnectivity{false};
198
199 Aws::String m_kmsKeyIdentifier;
200
201 VectorSearchConfiguration m_vectorSearchConfiguration;
202
203 int m_replicaCount{0};
204
205 bool m_deletionProtection{false};
206
207 int m_provisionedMemory{0};
208 bool m_graphNameHasBeenSet = false;
209 bool m_tagsHasBeenSet = false;
210 bool m_publicConnectivityHasBeenSet = false;
211 bool m_kmsKeyIdentifierHasBeenSet = false;
212 bool m_vectorSearchConfigurationHasBeenSet = false;
213 bool m_replicaCountHasBeenSet = false;
214 bool m_deletionProtectionHasBeenSet = false;
215 bool m_provisionedMemoryHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace NeptuneGraph
220} // namespace Aws
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const VectorSearchConfiguration & GetVectorSearchConfiguration() const
CreateGraphRequest & WithTags(TagsT &&value)
AWS_NEPTUNEGRAPH_API CreateGraphRequest()=default
CreateGraphRequest & WithVectorSearchConfiguration(VectorSearchConfigurationT &&value)
CreateGraphRequest & WithPublicConnectivity(bool value)
CreateGraphRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateGraphRequest & WithGraphName(GraphNameT &&value)
CreateGraphRequest & WithReplicaCount(int value)
void SetVectorSearchConfiguration(VectorSearchConfigurationT &&value)
CreateGraphRequest & WithDeletionProtection(bool value)
CreateGraphRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateGraphRequest & WithProvisionedMemory(int value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
Aws::Endpoint::EndpointParameters EndpointParameters
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String