AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GraphSnapshotSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
10#include <aws/neptune-graph/model/SnapshotStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NeptuneGraph {
22namespace Model {
23
30 public:
31 AWS_NEPTUNEGRAPH_API GraphSnapshotSummary() = default;
32 AWS_NEPTUNEGRAPH_API GraphSnapshotSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetSourceGraphId() const { return m_sourceGraphId; }
98 inline bool SourceGraphIdHasBeenSet() const { return m_sourceGraphIdHasBeenSet; }
99 template <typename SourceGraphIdT = Aws::String>
100 void SetSourceGraphId(SourceGraphIdT&& value) {
101 m_sourceGraphIdHasBeenSet = true;
102 m_sourceGraphId = std::forward<SourceGraphIdT>(value);
103 }
104 template <typename SourceGraphIdT = Aws::String>
105 GraphSnapshotSummary& WithSourceGraphId(SourceGraphIdT&& value) {
106 SetSourceGraphId(std::forward<SourceGraphIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
116 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
117 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
118 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
119 m_snapshotCreateTimeHasBeenSet = true;
120 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
121 }
122 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
123 GraphSnapshotSummary& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
124 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
125 return *this;
126 }
128
130
133 inline SnapshotStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(SnapshotStatus value) {
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
150 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
151 template <typename KmsKeyIdentifierT = Aws::String>
152 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
153 m_kmsKeyIdentifierHasBeenSet = true;
154 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
155 }
156 template <typename KmsKeyIdentifierT = Aws::String>
157 GraphSnapshotSummary& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
158 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_id;
164
165 Aws::String m_name;
166
167 Aws::String m_arn;
168
169 Aws::String m_sourceGraphId;
170
171 Aws::Utils::DateTime m_snapshotCreateTime{};
172
174
175 Aws::String m_kmsKeyIdentifier;
176 bool m_idHasBeenSet = false;
177 bool m_nameHasBeenSet = false;
178 bool m_arnHasBeenSet = false;
179 bool m_sourceGraphIdHasBeenSet = false;
180 bool m_snapshotCreateTimeHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_kmsKeyIdentifierHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace NeptuneGraph
187} // namespace Aws
AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
AWS_NEPTUNEGRAPH_API GraphSnapshotSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GraphSnapshotSummary & WithName(NameT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
GraphSnapshotSummary & WithId(IdT &&value)
GraphSnapshotSummary & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
AWS_NEPTUNEGRAPH_API GraphSnapshotSummary()=default
GraphSnapshotSummary & WithArn(ArnT &&value)
GraphSnapshotSummary & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
GraphSnapshotSummary & WithSourceGraphId(SourceGraphIdT &&value)
AWS_NEPTUNEGRAPH_API GraphSnapshotSummary(Aws::Utils::Json::JsonView jsonValue)
GraphSnapshotSummary & WithStatus(SnapshotStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue