AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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::Vector<Aws::String>& GetEbsSnapshots() const { return m_ebsSnapshots; }
41 inline bool EbsSnapshotsHasBeenSet() const { return m_ebsSnapshotsHasBeenSet; }
42 template <typename EbsSnapshotsT = Aws::Vector<Aws::String>>
43 void SetEbsSnapshots(EbsSnapshotsT&& value) {
44 m_ebsSnapshotsHasBeenSet = true;
45 m_ebsSnapshots = std::forward<EbsSnapshotsT>(value);
46 }
47 template <typename EbsSnapshotsT = Aws::Vector<Aws::String>>
48 RecoverySnapshot& WithEbsSnapshots(EbsSnapshotsT&& value) {
49 SetEbsSnapshots(std::forward<EbsSnapshotsT>(value));
50 return *this;
51 }
52 template <typename EbsSnapshotsT = Aws::String>
53 RecoverySnapshot& AddEbsSnapshots(EbsSnapshotsT&& value) {
54 m_ebsSnapshotsHasBeenSet = true;
55 m_ebsSnapshots.emplace_back(std::forward<EbsSnapshotsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetExpectedTimestamp() const { return m_expectedTimestamp; }
65 inline bool ExpectedTimestampHasBeenSet() const { return m_expectedTimestampHasBeenSet; }
66 template <typename ExpectedTimestampT = Aws::String>
67 void SetExpectedTimestamp(ExpectedTimestampT&& value) {
68 m_expectedTimestampHasBeenSet = true;
69 m_expectedTimestamp = std::forward<ExpectedTimestampT>(value);
70 }
71 template <typename ExpectedTimestampT = Aws::String>
72 RecoverySnapshot& WithExpectedTimestamp(ExpectedTimestampT&& value) {
73 SetExpectedTimestamp(std::forward<ExpectedTimestampT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetSnapshotID() const { return m_snapshotID; }
83 inline bool SnapshotIDHasBeenSet() const { return m_snapshotIDHasBeenSet; }
84 template <typename SnapshotIDT = Aws::String>
85 void SetSnapshotID(SnapshotIDT&& value) {
86 m_snapshotIDHasBeenSet = true;
87 m_snapshotID = std::forward<SnapshotIDT>(value);
88 }
89 template <typename SnapshotIDT = Aws::String>
90 RecoverySnapshot& WithSnapshotID(SnapshotIDT&& value) {
91 SetSnapshotID(std::forward<SnapshotIDT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
101 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
102 template <typename SourceServerIDT = Aws::String>
103 void SetSourceServerID(SourceServerIDT&& value) {
104 m_sourceServerIDHasBeenSet = true;
105 m_sourceServerID = std::forward<SourceServerIDT>(value);
106 }
107 template <typename SourceServerIDT = Aws::String>
108 RecoverySnapshot& WithSourceServerID(SourceServerIDT&& value) {
109 SetSourceServerID(std::forward<SourceServerIDT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
119 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
120 template <typename TimestampT = Aws::String>
121 void SetTimestamp(TimestampT&& value) {
122 m_timestampHasBeenSet = true;
123 m_timestamp = std::forward<TimestampT>(value);
124 }
125 template <typename TimestampT = Aws::String>
126 RecoverySnapshot& WithTimestamp(TimestampT&& value) {
127 SetTimestamp(std::forward<TimestampT>(value));
128 return *this;
129 }
131 private:
132 Aws::Vector<Aws::String> m_ebsSnapshots;
133
134 Aws::String m_expectedTimestamp;
135
136 Aws::String m_snapshotID;
137
138 Aws::String m_sourceServerID;
139
140 Aws::String m_timestamp;
141 bool m_ebsSnapshotsHasBeenSet = false;
142 bool m_expectedTimestampHasBeenSet = false;
143 bool m_snapshotIDHasBeenSet = false;
144 bool m_sourceServerIDHasBeenSet = false;
145 bool m_timestampHasBeenSet = 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