AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::Vector<Aws::String>& GetEbsSnapshots() const{ return m_ebsSnapshots; }
47 inline bool EbsSnapshotsHasBeenSet() const { return m_ebsSnapshotsHasBeenSet; }
48 inline void SetEbsSnapshots(const Aws::Vector<Aws::String>& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots = value; }
49 inline void SetEbsSnapshots(Aws::Vector<Aws::String>&& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots = std::move(value); }
50 inline RecoverySnapshot& WithEbsSnapshots(const Aws::Vector<Aws::String>& value) { SetEbsSnapshots(value); return *this;}
51 inline RecoverySnapshot& WithEbsSnapshots(Aws::Vector<Aws::String>&& value) { SetEbsSnapshots(std::move(value)); return *this;}
52 inline RecoverySnapshot& AddEbsSnapshots(const Aws::String& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots.push_back(value); return *this; }
53 inline RecoverySnapshot& AddEbsSnapshots(Aws::String&& value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots.push_back(std::move(value)); return *this; }
54 inline RecoverySnapshot& AddEbsSnapshots(const char* value) { m_ebsSnapshotsHasBeenSet = true; m_ebsSnapshots.push_back(value); return *this; }
56
58
61 inline const Aws::String& GetExpectedTimestamp() const{ return m_expectedTimestamp; }
62 inline bool ExpectedTimestampHasBeenSet() const { return m_expectedTimestampHasBeenSet; }
63 inline void SetExpectedTimestamp(const Aws::String& value) { m_expectedTimestampHasBeenSet = true; m_expectedTimestamp = value; }
64 inline void SetExpectedTimestamp(Aws::String&& value) { m_expectedTimestampHasBeenSet = true; m_expectedTimestamp = std::move(value); }
65 inline void SetExpectedTimestamp(const char* value) { m_expectedTimestampHasBeenSet = true; m_expectedTimestamp.assign(value); }
66 inline RecoverySnapshot& WithExpectedTimestamp(const Aws::String& value) { SetExpectedTimestamp(value); return *this;}
67 inline RecoverySnapshot& WithExpectedTimestamp(Aws::String&& value) { SetExpectedTimestamp(std::move(value)); return *this;}
68 inline RecoverySnapshot& WithExpectedTimestamp(const char* value) { SetExpectedTimestamp(value); return *this;}
70
72
75 inline const Aws::String& GetSnapshotID() const{ return m_snapshotID; }
76 inline bool SnapshotIDHasBeenSet() const { return m_snapshotIDHasBeenSet; }
77 inline void SetSnapshotID(const Aws::String& value) { m_snapshotIDHasBeenSet = true; m_snapshotID = value; }
78 inline void SetSnapshotID(Aws::String&& value) { m_snapshotIDHasBeenSet = true; m_snapshotID = std::move(value); }
79 inline void SetSnapshotID(const char* value) { m_snapshotIDHasBeenSet = true; m_snapshotID.assign(value); }
80 inline RecoverySnapshot& WithSnapshotID(const Aws::String& value) { SetSnapshotID(value); return *this;}
81 inline RecoverySnapshot& WithSnapshotID(Aws::String&& value) { SetSnapshotID(std::move(value)); return *this;}
82 inline RecoverySnapshot& WithSnapshotID(const char* value) { SetSnapshotID(value); return *this;}
84
86
89 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
90 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
91 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
92 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
93 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
94 inline RecoverySnapshot& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
95 inline RecoverySnapshot& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
96 inline RecoverySnapshot& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
98
100
103 inline const Aws::String& GetTimestamp() const{ return m_timestamp; }
104 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
105 inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
106 inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
107 inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); }
108 inline RecoverySnapshot& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;}
109 inline RecoverySnapshot& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;}
110 inline RecoverySnapshot& WithTimestamp(const char* value) { SetTimestamp(value); return *this;}
112 private:
113
114 Aws::Vector<Aws::String> m_ebsSnapshots;
115 bool m_ebsSnapshotsHasBeenSet = false;
116
117 Aws::String m_expectedTimestamp;
118 bool m_expectedTimestampHasBeenSet = false;
119
120 Aws::String m_snapshotID;
121 bool m_snapshotIDHasBeenSet = false;
122
123 Aws::String m_sourceServerID;
124 bool m_sourceServerIDHasBeenSet = false;
125
126 Aws::String m_timestamp;
127 bool m_timestampHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace drs
132} // namespace Aws
void SetExpectedTimestamp(const Aws::String &value)
RecoverySnapshot & WithExpectedTimestamp(const char *value)
AWS_DRS_API RecoverySnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEbsSnapshots(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetEbsSnapshots() const
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExpectedTimestamp(Aws::String &&value)
RecoverySnapshot & AddEbsSnapshots(Aws::String &&value)
RecoverySnapshot & WithEbsSnapshots(Aws::Vector< Aws::String > &&value)
const Aws::String & GetSourceServerID() const
RecoverySnapshot & WithSnapshotID(const Aws::String &value)
void SetEbsSnapshots(Aws::Vector< Aws::String > &&value)
RecoverySnapshot & WithTimestamp(Aws::String &&value)
RecoverySnapshot & AddEbsSnapshots(const Aws::String &value)
const Aws::String & GetTimestamp() const
void SetSourceServerID(Aws::String &&value)
RecoverySnapshot & WithSourceServerID(Aws::String &&value)
RecoverySnapshot & AddEbsSnapshots(const char *value)
RecoverySnapshot & WithSnapshotID(Aws::String &&value)
RecoverySnapshot & WithSourceServerID(const Aws::String &value)
RecoverySnapshot & WithSourceServerID(const char *value)
void SetSnapshotID(const char *value)
void SetTimestamp(const Aws::String &value)
void SetExpectedTimestamp(const char *value)
RecoverySnapshot & WithEbsSnapshots(const Aws::Vector< Aws::String > &value)
void SetSourceServerID(const char *value)
void SetSnapshotID(const Aws::String &value)
RecoverySnapshot & WithExpectedTimestamp(const Aws::String &value)
void SetSourceServerID(const Aws::String &value)
RecoverySnapshot & WithTimestamp(const char *value)
void SetTimestamp(const char *value)
RecoverySnapshot & WithExpectedTimestamp(Aws::String &&value)
const Aws::String & GetExpectedTimestamp() const
RecoverySnapshot & WithTimestamp(const Aws::String &value)
void SetSnapshotID(Aws::String &&value)
RecoverySnapshot & WithSnapshotID(const char *value)
AWS_DRS_API RecoverySnapshot(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(Aws::String &&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