AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecoverySnapshot.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DRS_API RecoverySnapshot() = default;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetEbsSnapshots() const { return m_ebsSnapshots; }
47 inline bool EbsSnapshotsHasBeenSet() const { return m_ebsSnapshotsHasBeenSet; }
48 template<typename EbsSnapshotsT = Aws::Vector<Aws::String>>
49 void SetEbsSnapshots(EbsSnapshotsT&& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots = std::forward<EbsSnapshotsT>(value); }
50 template<typename EbsSnapshotsT = Aws::Vector<Aws::String>>
51 RecoverySnapshot& WithEbsSnapshots(EbsSnapshotsT&& value) { SetEbsSnapshots(std::forward<EbsSnapshotsT>(value)); return *this;}
52 template<typename EbsSnapshotsT = Aws::String>
53 RecoverySnapshot& AddEbsSnapshots(EbsSnapshotsT&& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots.emplace_back(std::forward<EbsSnapshotsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetExpectedTimestamp() const { return m_expectedTimestamp; }
61 inline bool ExpectedTimestampHasBeenSet() const { return m_expectedTimestampHasBeenSet; }
62 template<typename ExpectedTimestampT = Aws::String>
63 void SetExpectedTimestamp(ExpectedTimestampT&& value) { m_expectedTimestampHasBeenSet = true; m_expectedTimestamp = std::forward<ExpectedTimestampT>(value); }
64 template<typename ExpectedTimestampT = Aws::String>
65 RecoverySnapshot& WithExpectedTimestamp(ExpectedTimestampT&& value) { SetExpectedTimestamp(std::forward<ExpectedTimestampT>(value)); return *this;}
67
69
72 inline const Aws::String& GetSnapshotID() const { return m_snapshotID; }
73 inline bool SnapshotIDHasBeenSet() const { return m_snapshotIDHasBeenSet; }
74 template<typename SnapshotIDT = Aws::String>
75 void SetSnapshotID(SnapshotIDT&& value) { m_snapshotIDHasBeenSet = true; m_snapshotID = std::forward<SnapshotIDT>(value); }
76 template<typename SnapshotIDT = Aws::String>
77 RecoverySnapshot& WithSnapshotID(SnapshotIDT&& value) { SetSnapshotID(std::forward<SnapshotIDT>(value)); return *this;}
79
81
84 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
85 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
86 template<typename SourceServerIDT = Aws::String>
87 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
88 template<typename SourceServerIDT = Aws::String>
89 RecoverySnapshot& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
91
93
96 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
97 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
98 template<typename TimestampT = Aws::String>
99 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
100 template<typename TimestampT = Aws::String>
101 RecoverySnapshot& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_ebsSnapshots;
106 bool m_ebsSnapshotsHasBeenSet = false;
107
108 Aws::String m_expectedTimestamp;
109 bool m_expectedTimestampHasBeenSet = false;
110
111 Aws::String m_snapshotID;
112 bool m_snapshotIDHasBeenSet = false;
113
114 Aws::String m_sourceServerID;
115 bool m_sourceServerIDHasBeenSet = false;
116
117 Aws::String m_timestamp;
118 bool m_timestampHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace drs
123} // 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