AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGraphRequest.h
1
6#pragma once
7#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
8#include <aws/neptune-graph/NeptuneGraphRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/neptune-graph/model/VectorSearchConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NeptuneGraph
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NEPTUNEGRAPH_API CreateGraphRequest() = 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 "CreateGraph"; }
33
34 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
35
39 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
40
42
48 inline const Aws::String& GetGraphName() const { return m_graphName; }
49 inline bool GraphNameHasBeenSet() const { return m_graphNameHasBeenSet; }
50 template<typename GraphNameT = Aws::String>
51 void SetGraphName(GraphNameT&& value) { m_graphNameHasBeenSet = true; m_graphName = std::forward<GraphNameT>(value); }
52 template<typename GraphNameT = Aws::String>
53 CreateGraphRequest& WithGraphName(GraphNameT&& value) { SetGraphName(std::forward<GraphNameT>(value)); return *this;}
55
57
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
65 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
66 CreateGraphRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
67 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
68 CreateGraphRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
69 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
70 }
72
74
79 inline bool GetPublicConnectivity() const { return m_publicConnectivity; }
80 inline bool PublicConnectivityHasBeenSet() const { return m_publicConnectivityHasBeenSet; }
81 inline void SetPublicConnectivity(bool value) { m_publicConnectivityHasBeenSet = true; m_publicConnectivity = value; }
82 inline CreateGraphRequest& WithPublicConnectivity(bool value) { SetPublicConnectivity(value); return *this;}
84
86
89 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
90 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
91 template<typename KmsKeyIdentifierT = Aws::String>
92 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
93 template<typename KmsKeyIdentifierT = Aws::String>
94 CreateGraphRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
96
98
103 inline const VectorSearchConfiguration& GetVectorSearchConfiguration() const { return m_vectorSearchConfiguration; }
104 inline bool VectorSearchConfigurationHasBeenSet() const { return m_vectorSearchConfigurationHasBeenSet; }
105 template<typename VectorSearchConfigurationT = VectorSearchConfiguration>
106 void SetVectorSearchConfiguration(VectorSearchConfigurationT&& value) { m_vectorSearchConfigurationHasBeenSet = true; m_vectorSearchConfiguration = std::forward<VectorSearchConfigurationT>(value); }
107 template<typename VectorSearchConfigurationT = VectorSearchConfiguration>
108 CreateGraphRequest& WithVectorSearchConfiguration(VectorSearchConfigurationT&& value) { SetVectorSearchConfiguration(std::forward<VectorSearchConfigurationT>(value)); return *this;}
110
112
117 inline int GetReplicaCount() const { return m_replicaCount; }
118 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
119 inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; }
120 inline CreateGraphRequest& WithReplicaCount(int value) { SetReplicaCount(value); return *this;}
122
124
129 inline bool GetDeletionProtection() const { return m_deletionProtection; }
130 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
131 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
132 inline CreateGraphRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
134
136
140 inline int GetProvisionedMemory() const { return m_provisionedMemory; }
141 inline bool ProvisionedMemoryHasBeenSet() const { return m_provisionedMemoryHasBeenSet; }
142 inline void SetProvisionedMemory(int value) { m_provisionedMemoryHasBeenSet = true; m_provisionedMemory = value; }
143 inline CreateGraphRequest& WithProvisionedMemory(int value) { SetProvisionedMemory(value); return *this;}
145 private:
146
147 Aws::String m_graphName;
148 bool m_graphNameHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152
153 bool m_publicConnectivity{false};
154 bool m_publicConnectivityHasBeenSet = false;
155
156 Aws::String m_kmsKeyIdentifier;
157 bool m_kmsKeyIdentifierHasBeenSet = false;
158
159 VectorSearchConfiguration m_vectorSearchConfiguration;
160 bool m_vectorSearchConfigurationHasBeenSet = false;
161
162 int m_replicaCount{0};
163 bool m_replicaCountHasBeenSet = false;
164
165 bool m_deletionProtection{false};
166 bool m_deletionProtectionHasBeenSet = false;
167
168 int m_provisionedMemory{0};
169 bool m_provisionedMemoryHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace NeptuneGraph
174} // 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