AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateGraphSnapshotRequest.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 CreateGraphSnapshotRequest() = 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 "CreateGraphSnapshot"; }
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& GetGraphIdentifier() const { return m_graphIdentifier; }
45 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
46 template<typename GraphIdentifierT = Aws::String>
47 void SetGraphIdentifier(GraphIdentifierT&& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = std::forward<GraphIdentifierT>(value); }
48 template<typename GraphIdentifierT = Aws::String>
49 CreateGraphSnapshotRequest& WithGraphIdentifier(GraphIdentifierT&& value) { SetGraphIdentifier(std::forward<GraphIdentifierT>(value)); return *this;}
51
53
59 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
60 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
61 template<typename SnapshotNameT = Aws::String>
62 void SetSnapshotName(SnapshotNameT&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::forward<SnapshotNameT>(value); }
63 template<typename SnapshotNameT = Aws::String>
64 CreateGraphSnapshotRequest& WithSnapshotName(SnapshotNameT&& value) { SetSnapshotName(std::forward<SnapshotNameT>(value)); return *this;}
66
68
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 CreateGraphSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
79 CreateGraphSnapshotRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
80 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
81 }
83 private:
84
85 Aws::String m_graphIdentifier;
86 bool m_graphIdentifierHasBeenSet = false;
87
88 Aws::String m_snapshotName;
89 bool m_snapshotNameHasBeenSet = false;
90
92 bool m_tagsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace NeptuneGraph
97} // 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