AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGraphSnapshotRequest.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
12#include <utility>
13
14namespace Aws {
15namespace NeptuneGraph {
16namespace Model {
17
21 public:
22 AWS_NEPTUNEGRAPH_API CreateGraphSnapshotRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateGraphSnapshot"; }
29
30 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
31
35 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
36
38
41 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
42 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
43 template <typename GraphIdentifierT = Aws::String>
44 void SetGraphIdentifier(GraphIdentifierT&& value) {
45 m_graphIdentifierHasBeenSet = true;
46 m_graphIdentifier = std::forward<GraphIdentifierT>(value);
47 }
48 template <typename GraphIdentifierT = Aws::String>
50 SetGraphIdentifier(std::forward<GraphIdentifierT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
63 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
64 template <typename SnapshotNameT = Aws::String>
65 void SetSnapshotName(SnapshotNameT&& value) {
66 m_snapshotNameHasBeenSet = true;
67 m_snapshotName = std::forward<SnapshotNameT>(value);
68 }
69 template <typename SnapshotNameT = Aws::String>
71 SetSnapshotName(std::forward<SnapshotNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) {
85 m_tagsHasBeenSet = true;
86 m_tags = std::forward<TagsT>(value);
87 }
88 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 SetTags(std::forward<TagsT>(value));
91 return *this;
92 }
93 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
94 CreateGraphSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_graphIdentifier;
102
103 Aws::String m_snapshotName;
104
106 bool m_graphIdentifierHasBeenSet = false;
107 bool m_snapshotNameHasBeenSet = false;
108 bool m_tagsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace NeptuneGraph
113} // namespace Aws
AWS_NEPTUNEGRAPH_API CreateGraphSnapshotRequest()=default
CreateGraphSnapshotRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGraphSnapshotRequest & WithSnapshotName(SnapshotNameT &&value)
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
CreateGraphSnapshotRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
CreateGraphSnapshotRequest & WithGraphIdentifier(GraphIdentifierT &&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