AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SnapshotIdentifierT = Aws::String>
47 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
48 template<typename SnapshotIdentifierT = Aws::String>
49 RestoreGraphFromSnapshotRequest& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
51
53
59 inline const Aws::String& GetGraphName() const { return m_graphName; }
60 inline bool GraphNameHasBeenSet() const { return m_graphNameHasBeenSet; }
61 template<typename GraphNameT = Aws::String>
62 void SetGraphName(GraphNameT&& value) { m_graphNameHasBeenSet = true; m_graphName = std::forward<GraphNameT>(value); }
63 template<typename GraphNameT = Aws::String>
64 RestoreGraphFromSnapshotRequest& WithGraphName(GraphNameT&& value) { SetGraphName(std::forward<GraphNameT>(value)); return *this;}
66
68
72 inline int GetProvisionedMemory() const { return m_provisionedMemory; }
73 inline bool ProvisionedMemoryHasBeenSet() const { return m_provisionedMemoryHasBeenSet; }
74 inline void SetProvisionedMemory(int value) { m_provisionedMemoryHasBeenSet = true; m_provisionedMemory = value; }
77
79
83 inline bool GetDeletionProtection() const { return m_deletionProtection; }
84 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
85 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
88
90
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 RestoreGraphFromSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 RestoreGraphFromSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
103 }
105
107
112 inline int GetReplicaCount() const { return m_replicaCount; }
113 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
114 inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; }
115 inline RestoreGraphFromSnapshotRequest& WithReplicaCount(int value) { SetReplicaCount(value); return *this;}
117
119
124 inline bool GetPublicConnectivity() const { return m_publicConnectivity; }
125 inline bool PublicConnectivityHasBeenSet() const { return m_publicConnectivityHasBeenSet; }
126 inline void SetPublicConnectivity(bool value) { m_publicConnectivityHasBeenSet = true; m_publicConnectivity = value; }
129 private:
130
131 Aws::String m_snapshotIdentifier;
132 bool m_snapshotIdentifierHasBeenSet = false;
133
134 Aws::String m_graphName;
135 bool m_graphNameHasBeenSet = false;
136
137 int m_provisionedMemory{0};
138 bool m_provisionedMemoryHasBeenSet = false;
139
140 bool m_deletionProtection{false};
141 bool m_deletionProtectionHasBeenSet = false;
142
144 bool m_tagsHasBeenSet = false;
145
146 int m_replicaCount{0};
147 bool m_replicaCountHasBeenSet = false;
148
149 bool m_publicConnectivity{false};
150 bool m_publicConnectivityHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace NeptuneGraph
155} // namespace Aws
RestoreGraphFromSnapshotRequest & WithPublicConnectivity(bool value)
AWS_NEPTUNEGRAPH_API RestoreGraphFromSnapshotRequest()=default
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
RestoreGraphFromSnapshotRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RestoreGraphFromSnapshotRequest & WithDeletionProtection(bool value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
RestoreGraphFromSnapshotRequest & WithGraphName(GraphNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RestoreGraphFromSnapshotRequest & WithSnapshotIdentifier(SnapshotIdentifierT &&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