AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DatabaseSnapshotInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/firehose/Firehose_EXPORTS.h>
10#include <aws/firehose/model/FailureDescription.h>
11#include <aws/firehose/model/SnapshotRequestedBy.h>
12#include <aws/firehose/model/SnapshotStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Firehose {
24namespace Model {
25
34 public:
35 AWS_FIREHOSE_API DatabaseSnapshotInfo() = default;
38 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetTable() const { return m_table; }
67 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
68 template <typename TableT = Aws::String>
69 void SetTable(TableT&& value) {
70 m_tableHasBeenSet = true;
71 m_table = std::forward<TableT>(value);
72 }
73 template <typename TableT = Aws::String>
75 SetTable(std::forward<TableT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Utils::DateTime& GetRequestTimestamp() const { return m_requestTimestamp; }
86 inline bool RequestTimestampHasBeenSet() const { return m_requestTimestampHasBeenSet; }
87 template <typename RequestTimestampT = Aws::Utils::DateTime>
88 void SetRequestTimestamp(RequestTimestampT&& value) {
89 m_requestTimestampHasBeenSet = true;
90 m_requestTimestamp = std::forward<RequestTimestampT>(value);
91 }
92 template <typename RequestTimestampT = Aws::Utils::DateTime>
93 DatabaseSnapshotInfo& WithRequestTimestamp(RequestTimestampT&& value) {
94 SetRequestTimestamp(std::forward<RequestTimestampT>(value));
95 return *this;
96 }
98
100
105 inline SnapshotRequestedBy GetRequestedBy() const { return m_requestedBy; }
106 inline bool RequestedByHasBeenSet() const { return m_requestedByHasBeenSet; }
108 m_requestedByHasBeenSet = true;
109 m_requestedBy = value;
110 }
112 SetRequestedBy(value);
113 return *this;
114 }
116
118
122 inline SnapshotStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(SnapshotStatus value) {
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
136 inline const FailureDescription& GetFailureDescription() const { return m_failureDescription; }
137 inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; }
138 template <typename FailureDescriptionT = FailureDescription>
139 void SetFailureDescription(FailureDescriptionT&& value) {
140 m_failureDescriptionHasBeenSet = true;
141 m_failureDescription = std::forward<FailureDescriptionT>(value);
142 }
143 template <typename FailureDescriptionT = FailureDescription>
144 DatabaseSnapshotInfo& WithFailureDescription(FailureDescriptionT&& value) {
145 SetFailureDescription(std::forward<FailureDescriptionT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_id;
151
152 Aws::String m_table;
153
154 Aws::Utils::DateTime m_requestTimestamp{};
155
157
159
160 FailureDescription m_failureDescription;
161 bool m_idHasBeenSet = false;
162 bool m_tableHasBeenSet = false;
163 bool m_requestTimestampHasBeenSet = false;
164 bool m_requestedByHasBeenSet = false;
165 bool m_statusHasBeenSet = false;
166 bool m_failureDescriptionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Firehose
171} // namespace Aws
const FailureDescription & GetFailureDescription() const
DatabaseSnapshotInfo & WithId(IdT &&value)
DatabaseSnapshotInfo & WithRequestTimestamp(RequestTimestampT &&value)
DatabaseSnapshotInfo & WithRequestedBy(SnapshotRequestedBy value)
DatabaseSnapshotInfo & WithStatus(SnapshotStatus value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRequestTimestamp(RequestTimestampT &&value)
DatabaseSnapshotInfo & WithFailureDescription(FailureDescriptionT &&value)
AWS_FIREHOSE_API DatabaseSnapshotInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API DatabaseSnapshotInfo()=default
void SetRequestedBy(SnapshotRequestedBy value)
const Aws::Utils::DateTime & GetRequestTimestamp() const
AWS_FIREHOSE_API DatabaseSnapshotInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureDescription(FailureDescriptionT &&value)
DatabaseSnapshotInfo & WithTable(TableT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue