AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
RecoverySnapshot.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/drs/Drs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
30 public:
31 AWS_DRS_API RecoverySnapshot() = default;
35
37
40 inline const Aws::String& GetSnapshotID() const { return m_snapshotID; }
41 inline bool SnapshotIDHasBeenSet() const { return m_snapshotIDHasBeenSet; }
42 template <typename SnapshotIDT = Aws::String>
43 void SetSnapshotID(SnapshotIDT&& value) {
44 m_snapshotIDHasBeenSet = true;
45 m_snapshotID = std::forward<SnapshotIDT>(value);
46 }
47 template <typename SnapshotIDT = Aws::String>
48 RecoverySnapshot& WithSnapshotID(SnapshotIDT&& value) {
49 SetSnapshotID(std::forward<SnapshotIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
59 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
60 template <typename SourceServerIDT = Aws::String>
61 void SetSourceServerID(SourceServerIDT&& value) {
62 m_sourceServerIDHasBeenSet = true;
63 m_sourceServerID = std::forward<SourceServerIDT>(value);
64 }
65 template <typename SourceServerIDT = Aws::String>
66 RecoverySnapshot& WithSourceServerID(SourceServerIDT&& value) {
67 SetSourceServerID(std::forward<SourceServerIDT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetExpectedTimestamp() const { return m_expectedTimestamp; }
77 inline bool ExpectedTimestampHasBeenSet() const { return m_expectedTimestampHasBeenSet; }
78 template <typename ExpectedTimestampT = Aws::String>
79 void SetExpectedTimestamp(ExpectedTimestampT&& value) {
80 m_expectedTimestampHasBeenSet = true;
81 m_expectedTimestamp = std::forward<ExpectedTimestampT>(value);
82 }
83 template <typename ExpectedTimestampT = Aws::String>
84 RecoverySnapshot& WithExpectedTimestamp(ExpectedTimestampT&& value) {
85 SetExpectedTimestamp(std::forward<ExpectedTimestampT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
95 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
96 template <typename TimestampT = Aws::String>
97 void SetTimestamp(TimestampT&& value) {
98 m_timestampHasBeenSet = true;
99 m_timestamp = std::forward<TimestampT>(value);
100 }
101 template <typename TimestampT = Aws::String>
102 RecoverySnapshot& WithTimestamp(TimestampT&& value) {
103 SetTimestamp(std::forward<TimestampT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Aws::String>& GetEbsSnapshots() const { return m_ebsSnapshots; }
113 inline bool EbsSnapshotsHasBeenSet() const { return m_ebsSnapshotsHasBeenSet; }
114 template <typename EbsSnapshotsT = Aws::Vector<Aws::String>>
115 void SetEbsSnapshots(EbsSnapshotsT&& value) {
116 m_ebsSnapshotsHasBeenSet = true;
117 m_ebsSnapshots = std::forward<EbsSnapshotsT>(value);
118 }
119 template <typename EbsSnapshotsT = Aws::Vector<Aws::String>>
120 RecoverySnapshot& WithEbsSnapshots(EbsSnapshotsT&& value) {
121 SetEbsSnapshots(std::forward<EbsSnapshotsT>(value));
122 return *this;
123 }
124 template <typename EbsSnapshotsT = Aws::String>
125 RecoverySnapshot& AddEbsSnapshots(EbsSnapshotsT&& value) {
126 m_ebsSnapshotsHasBeenSet = true;
127 m_ebsSnapshots.emplace_back(std::forward<EbsSnapshotsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_snapshotID;
133
134 Aws::String m_sourceServerID;
135
136 Aws::String m_expectedTimestamp;
137
138 Aws::String m_timestamp;
139
140 Aws::Vector<Aws::String> m_ebsSnapshots;
141 bool m_snapshotIDHasBeenSet = false;
142 bool m_sourceServerIDHasBeenSet = false;
143 bool m_expectedTimestampHasBeenSet = false;
144 bool m_timestampHasBeenSet = false;
145 bool m_ebsSnapshotsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace drs
150} // namespace Aws
AWS_DRS_API RecoverySnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSnapshotID(SnapshotIDT &&value)
const Aws::Vector< Aws::String > & GetEbsSnapshots() const
RecoverySnapshot & WithExpectedTimestamp(ExpectedTimestampT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceServerID(SourceServerIDT &&value)
const Aws::String & GetSourceServerID() const
RecoverySnapshot & AddEbsSnapshots(EbsSnapshotsT &&value)
const Aws::String & GetTimestamp() const
RecoverySnapshot & WithTimestamp(TimestampT &&value)
void SetExpectedTimestamp(ExpectedTimestampT &&value)
AWS_DRS_API RecoverySnapshot()=default
void SetEbsSnapshots(EbsSnapshotsT &&value)
void SetTimestamp(TimestampT &&value)
const Aws::String & GetExpectedTimestamp() const
RecoverySnapshot & WithSnapshotID(SnapshotIDT &&value)
RecoverySnapshot & WithSourceServerID(SourceServerIDT &&value)
AWS_DRS_API RecoverySnapshot(Aws::Utils::Json::JsonView jsonValue)
RecoverySnapshot & WithEbsSnapshots(EbsSnapshotsT &&value)
const Aws::String & GetSnapshotID() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue