AWS SDK for C++  1.9.19
AWS SDK for C++
Snapshot.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DirectoryService
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
47 
51  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
52 
56  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
57 
61  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
62 
66  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
67 
71  inline Snapshot& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
72 
76  inline Snapshot& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
77 
81  inline Snapshot& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
82 
83 
87  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
88 
92  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
93 
97  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
98 
102  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
103 
107  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
108 
112  inline Snapshot& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
113 
117  inline Snapshot& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
118 
122  inline Snapshot& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
123 
124 
128  inline const SnapshotType& GetType() const{ return m_type; }
129 
133  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 
138  inline void SetType(const SnapshotType& value) { m_typeHasBeenSet = true; m_type = value; }
139 
143  inline void SetType(SnapshotType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
144 
148  inline Snapshot& WithType(const SnapshotType& value) { SetType(value); return *this;}
149 
153  inline Snapshot& WithType(SnapshotType&& value) { SetType(std::move(value)); return *this;}
154 
155 
159  inline const Aws::String& GetName() const{ return m_name; }
160 
164  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
165 
169  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
170 
174  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
175 
179  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
180 
184  inline Snapshot& WithName(const Aws::String& value) { SetName(value); return *this;}
185 
189  inline Snapshot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
190 
194  inline Snapshot& WithName(const char* value) { SetName(value); return *this;}
195 
196 
200  inline const SnapshotStatus& GetStatus() const{ return m_status; }
201 
205  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206 
210  inline void SetStatus(const SnapshotStatus& value) { m_statusHasBeenSet = true; m_status = value; }
211 
215  inline void SetStatus(SnapshotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
216 
220  inline Snapshot& WithStatus(const SnapshotStatus& value) { SetStatus(value); return *this;}
221 
225  inline Snapshot& WithStatus(SnapshotStatus&& value) { SetStatus(std::move(value)); return *this;}
226 
227 
231  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
232 
236  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
237 
241  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
242 
246  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
247 
251  inline Snapshot& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
252 
256  inline Snapshot& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
257 
258  private:
259 
260  Aws::String m_directoryId;
261  bool m_directoryIdHasBeenSet;
262 
263  Aws::String m_snapshotId;
264  bool m_snapshotIdHasBeenSet;
265 
266  SnapshotType m_type;
267  bool m_typeHasBeenSet;
268 
269  Aws::String m_name;
270  bool m_nameHasBeenSet;
271 
272  SnapshotStatus m_status;
273  bool m_statusHasBeenSet;
274 
275  Aws::Utils::DateTime m_startTime;
276  bool m_startTimeHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace DirectoryService
281 } // namespace Aws
Aws::DirectoryService::Model::Snapshot::WithSnapshotId
Snapshot & WithSnapshotId(Aws::String &&value)
Definition: Snapshot.h:117
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::Snapshot::WithType
Snapshot & WithType(SnapshotType &&value)
Definition: Snapshot.h:153
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::Snapshot::GetStatus
const SnapshotStatus & GetStatus() const
Definition: Snapshot.h:200
Aws::DirectoryService::Model::Snapshot::WithDirectoryId
Snapshot & WithDirectoryId(Aws::String &&value)
Definition: Snapshot.h:76
Aws::DirectoryService::Model::Snapshot::SetName
void SetName(const char *value)
Definition: Snapshot.h:179
Aws::DirectoryService::Model::Snapshot::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: Snapshot.h:56
Aws::DirectoryService::Model::Snapshot
Definition: Snapshot.h:35
Aws::DirectoryService::Model::Snapshot::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Snapshot.h:164
Aws::DirectoryService::Model::Snapshot::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Snapshot.h:133
Aws::DirectoryService::Model::Snapshot::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DateTime.h
Aws::DirectoryService::Model::Snapshot::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: Snapshot.h:61
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::Snapshot::WithDirectoryId
Snapshot & WithDirectoryId(const Aws::String &value)
Definition: Snapshot.h:71
Aws::DirectoryService::Model::Snapshot::SetName
void SetName(const Aws::String &value)
Definition: Snapshot.h:169
Aws::DirectoryService::Model::Snapshot::WithStartTime
Snapshot & WithStartTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:251
Aws::DirectoryService::Model::Snapshot::SetType
void SetType(SnapshotType &&value)
Definition: Snapshot.h:143
Aws::DirectoryService::Model::Snapshot::WithDirectoryId
Snapshot & WithDirectoryId(const char *value)
Definition: Snapshot.h:81
Aws::DirectoryService::Model::Snapshot::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: Snapshot.h:51
Aws::DirectoryService::Model::Snapshot::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: Snapshot.h:87
Aws::DirectoryService::Model::Snapshot::WithStatus
Snapshot & WithStatus(const SnapshotStatus &value)
Definition: Snapshot.h:220
Aws::DirectoryService::Model::Snapshot::SetType
void SetType(const SnapshotType &value)
Definition: Snapshot.h:138
Aws::DirectoryService::Model::Snapshot::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: Snapshot.h:66
Aws::DirectoryService::Model::SnapshotType
SnapshotType
Definition: SnapshotType.h:17
Aws::DirectoryService::Model::Snapshot::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:246
Aws::DirectoryService::Model::Snapshot::WithSnapshotId
Snapshot & WithSnapshotId(const Aws::String &value)
Definition: Snapshot.h:112
Aws::DirectoryService::Model::Snapshot::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:241
Aws::DirectoryService::Model::Snapshot::operator=
Snapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Snapshot::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: Snapshot.h:231
Aws::DirectoryService::Model::Snapshot::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Snapshot.h:205
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::Snapshot::WithStatus
Snapshot & WithStatus(SnapshotStatus &&value)
Definition: Snapshot.h:225
AWSString.h
Aws::DirectoryService::Model::Snapshot::GetType
const SnapshotType & GetType() const
Definition: Snapshot.h:128
Aws::DirectoryService::Model::Snapshot::Snapshot
Snapshot()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::Snapshot::SetName
void SetName(Aws::String &&value)
Definition: Snapshot.h:174
Aws::DirectoryService::Model::Snapshot::GetName
const Aws::String & GetName() const
Definition: Snapshot.h:159
Aws::DirectoryService::Model::Snapshot::WithType
Snapshot & WithType(const SnapshotType &value)
Definition: Snapshot.h:148
Aws::DirectoryService::Model::Snapshot::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: Snapshot.h:236
Aws::DirectoryService::Model::Snapshot::Snapshot
Snapshot(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::Snapshot::WithName
Snapshot & WithName(const char *value)
Definition: Snapshot.h:194
Aws::DirectoryService::Model::Snapshot::SetStatus
void SetStatus(const SnapshotStatus &value)
Definition: Snapshot.h:210
Aws::DirectoryService::Model::Snapshot::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: Snapshot.h:46
Aws::DirectoryService::Model::Snapshot::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: Snapshot.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::Snapshot::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: Snapshot.h:97
Aws::DirectoryService::Model::Snapshot::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: Snapshot.h:107
SnapshotType.h
Aws::DirectoryService::Model::Snapshot::WithName
Snapshot & WithName(const Aws::String &value)
Definition: Snapshot.h:184
Aws::DirectoryService::Model::Snapshot::WithStartTime
Snapshot & WithStartTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:256
Aws::DirectoryService::Model::Snapshot::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: Snapshot.h:102
SnapshotStatus.h
Aws::DirectoryService::Model::SnapshotStatus
SnapshotStatus
Definition: SnapshotStatus.h:17
Aws::DirectoryService::Model::Snapshot::WithName
Snapshot & WithName(Aws::String &&value)
Definition: Snapshot.h:189
Aws::DirectoryService::Model::Snapshot::WithSnapshotId
Snapshot & WithSnapshotId(const char *value)
Definition: Snapshot.h:122
Aws::DirectoryService::Model::Snapshot::SetStatus
void SetStatus(SnapshotStatus &&value)
Definition: Snapshot.h:215