AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Snapshot.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/model/SnapshotType.h>
10#include <aws/ds/model/SnapshotStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectoryService
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API Snapshot() = default;
38 AWS_DIRECTORYSERVICE_API Snapshot(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API Snapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
48 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 template<typename DirectoryIdT = Aws::String>
50 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
51 template<typename DirectoryIdT = Aws::String>
52 Snapshot& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
60 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
61 template<typename SnapshotIdT = Aws::String>
62 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
63 template<typename SnapshotIdT = Aws::String>
64 Snapshot& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
66
68
71 inline SnapshotType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(SnapshotType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline Snapshot& WithType(SnapshotType value) { SetType(value); return *this;}
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template<typename NameT = Aws::String>
84 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
85 template<typename NameT = Aws::String>
86 Snapshot& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
88
90
93 inline SnapshotStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(SnapshotStatus value) { m_statusHasBeenSet = true; m_status = value; }
96 inline Snapshot& WithStatus(SnapshotStatus value) { SetStatus(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 template<typename StartTimeT = Aws::Utils::DateTime>
106 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
107 template<typename StartTimeT = Aws::Utils::DateTime>
108 Snapshot& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
110 private:
111
112 Aws::String m_directoryId;
113 bool m_directoryIdHasBeenSet = false;
114
115 Aws::String m_snapshotId;
116 bool m_snapshotIdHasBeenSet = false;
117
119 bool m_typeHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_startTime{};
128 bool m_startTimeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace DirectoryService
133} // namespace Aws
Snapshot & WithSnapshotId(SnapshotIdT &&value)
Definition Snapshot.h:64
void SetType(SnapshotType value)
Definition Snapshot.h:73
Snapshot & WithType(SnapshotType value)
Definition Snapshot.h:74
void SetSnapshotId(SnapshotIdT &&value)
Definition Snapshot.h:62
const Aws::Utils::DateTime & GetStartTime() const
Definition Snapshot.h:103
const Aws::String & GetName() const
Definition Snapshot.h:81
void SetStartTime(StartTimeT &&value)
Definition Snapshot.h:106
const Aws::String & GetSnapshotId() const
Definition Snapshot.h:59
Snapshot & WithName(NameT &&value)
Definition Snapshot.h:86
AWS_DIRECTORYSERVICE_API Snapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API Snapshot()=default
Snapshot & WithStatus(SnapshotStatus value)
Definition Snapshot.h:96
void SetDirectoryId(DirectoryIdT &&value)
Definition Snapshot.h:50
SnapshotStatus GetStatus() const
Definition Snapshot.h:93
AWS_DIRECTORYSERVICE_API Snapshot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDirectoryId() const
Definition Snapshot.h:47
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Snapshot & WithDirectoryId(DirectoryIdT &&value)
Definition Snapshot.h:52
void SetStatus(SnapshotStatus value)
Definition Snapshot.h:95
Snapshot & WithStartTime(StartTimeT &&value)
Definition Snapshot.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue