AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreGraphFromSnapshotRequest.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 <utility>
12
13namespace Aws
14{
15namespace NeptuneGraph
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NEPTUNEGRAPH_API RestoreGraphFromSnapshotRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RestoreGraphFromSnapshot"; }
32
33 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
34
38 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
39
41
44 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
45 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
46 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
47 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
48 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
51 inline RestoreGraphFromSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
53
55
61 inline const Aws::String& GetGraphName() const{ return m_graphName; }
62 inline bool GraphNameHasBeenSet() const { return m_graphNameHasBeenSet; }
63 inline void SetGraphName(const Aws::String& value) { m_graphNameHasBeenSet = true; m_graphName = value; }
64 inline void SetGraphName(Aws::String&& value) { m_graphNameHasBeenSet = true; m_graphName = std::move(value); }
65 inline void SetGraphName(const char* value) { m_graphNameHasBeenSet = true; m_graphName.assign(value); }
66 inline RestoreGraphFromSnapshotRequest& WithGraphName(const Aws::String& value) { SetGraphName(value); return *this;}
67 inline RestoreGraphFromSnapshotRequest& WithGraphName(Aws::String&& value) { SetGraphName(std::move(value)); return *this;}
68 inline RestoreGraphFromSnapshotRequest& WithGraphName(const char* value) { SetGraphName(value); return *this;}
70
72
76 inline int GetProvisionedMemory() const{ return m_provisionedMemory; }
77 inline bool ProvisionedMemoryHasBeenSet() const { return m_provisionedMemoryHasBeenSet; }
78 inline void SetProvisionedMemory(int value) { m_provisionedMemoryHasBeenSet = true; m_provisionedMemory = value; }
81
83
87 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
88 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
89 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline RestoreGraphFromSnapshotRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
104 inline RestoreGraphFromSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
105 inline RestoreGraphFromSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline RestoreGraphFromSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
107 inline RestoreGraphFromSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
108 inline RestoreGraphFromSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline RestoreGraphFromSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline RestoreGraphFromSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112
114
119 inline int GetReplicaCount() const{ return m_replicaCount; }
120 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
121 inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; }
122 inline RestoreGraphFromSnapshotRequest& WithReplicaCount(int value) { SetReplicaCount(value); return *this;}
124
126
131 inline bool GetPublicConnectivity() const{ return m_publicConnectivity; }
132 inline bool PublicConnectivityHasBeenSet() const { return m_publicConnectivityHasBeenSet; }
133 inline void SetPublicConnectivity(bool value) { m_publicConnectivityHasBeenSet = true; m_publicConnectivity = value; }
136 private:
137
138 Aws::String m_snapshotIdentifier;
139 bool m_snapshotIdentifierHasBeenSet = false;
140
141 Aws::String m_graphName;
142 bool m_graphNameHasBeenSet = false;
143
144 int m_provisionedMemory;
145 bool m_provisionedMemoryHasBeenSet = false;
146
147 bool m_deletionProtection;
148 bool m_deletionProtectionHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152
153 int m_replicaCount;
154 bool m_replicaCountHasBeenSet = false;
155
156 bool m_publicConnectivity;
157 bool m_publicConnectivityHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace NeptuneGraph
162} // namespace Aws
RestoreGraphFromSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
RestoreGraphFromSnapshotRequest & AddTags(const char *key, const char *value)
RestoreGraphFromSnapshotRequest & AddTags(const Aws::String &key, Aws::String &&value)
RestoreGraphFromSnapshotRequest & AddTags(Aws::String &&key, const char *value)
RestoreGraphFromSnapshotRequest & WithPublicConnectivity(bool value)
RestoreGraphFromSnapshotRequest & WithGraphName(Aws::String &&value)
RestoreGraphFromSnapshotRequest & WithGraphName(const char *value)
RestoreGraphFromSnapshotRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
RestoreGraphFromSnapshotRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
RestoreGraphFromSnapshotRequest & WithDeletionProtection(bool value)
RestoreGraphFromSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
RestoreGraphFromSnapshotRequest & AddTags(const char *key, Aws::String &&value)
RestoreGraphFromSnapshotRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RestoreGraphFromSnapshotRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RestoreGraphFromSnapshotRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RestoreGraphFromSnapshotRequest & WithSnapshotIdentifier(const char *value)
RestoreGraphFromSnapshotRequest & WithGraphName(const Aws::String &value)
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