AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
AutoSnapshotDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/AttachedDisk.h>
12#include <aws/lightsail/model/AutoSnapshotStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail {
24namespace Model {
25
32 public:
33 AWS_LIGHTSAIL_API AutoSnapshotDetails() = default;
34 AWS_LIGHTSAIL_API AutoSnapshotDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDate() const { return m_date; }
43 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
44 template <typename DateT = Aws::String>
45 void SetDate(DateT&& value) {
46 m_dateHasBeenSet = true;
47 m_date = std::forward<DateT>(value);
48 }
49 template <typename DateT = Aws::String>
50 AutoSnapshotDetails& WithDate(DateT&& value) {
51 SetDate(std::forward<DateT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 template <typename CreatedAtT = Aws::Utils::DateTime>
63 void SetCreatedAt(CreatedAtT&& value) {
64 m_createdAtHasBeenSet = true;
65 m_createdAt = std::forward<CreatedAtT>(value);
66 }
67 template <typename CreatedAtT = Aws::Utils::DateTime>
68 AutoSnapshotDetails& WithCreatedAt(CreatedAtT&& value) {
69 SetCreatedAt(std::forward<CreatedAtT>(value));
70 return *this;
71 }
73
75
78 inline AutoSnapshotStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(AutoSnapshotStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
95 inline const Aws::Vector<AttachedDisk>& GetFromAttachedDisks() const { return m_fromAttachedDisks; }
96 inline bool FromAttachedDisksHasBeenSet() const { return m_fromAttachedDisksHasBeenSet; }
97 template <typename FromAttachedDisksT = Aws::Vector<AttachedDisk>>
98 void SetFromAttachedDisks(FromAttachedDisksT&& value) {
99 m_fromAttachedDisksHasBeenSet = true;
100 m_fromAttachedDisks = std::forward<FromAttachedDisksT>(value);
101 }
102 template <typename FromAttachedDisksT = Aws::Vector<AttachedDisk>>
103 AutoSnapshotDetails& WithFromAttachedDisks(FromAttachedDisksT&& value) {
104 SetFromAttachedDisks(std::forward<FromAttachedDisksT>(value));
105 return *this;
106 }
107 template <typename FromAttachedDisksT = AttachedDisk>
108 AutoSnapshotDetails& AddFromAttachedDisks(FromAttachedDisksT&& value) {
109 m_fromAttachedDisksHasBeenSet = true;
110 m_fromAttachedDisks.emplace_back(std::forward<FromAttachedDisksT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_date;
116
117 Aws::Utils::DateTime m_createdAt{};
118
120
121 Aws::Vector<AttachedDisk> m_fromAttachedDisks;
122 bool m_dateHasBeenSet = false;
123 bool m_createdAtHasBeenSet = false;
124 bool m_statusHasBeenSet = false;
125 bool m_fromAttachedDisksHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Lightsail
130} // namespace Aws
AutoSnapshotDetails & WithStatus(AutoSnapshotStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_LIGHTSAIL_API AutoSnapshotDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API AutoSnapshotDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoSnapshotDetails & AddFromAttachedDisks(FromAttachedDisksT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AutoSnapshotDetails & WithCreatedAt(CreatedAtT &&value)
AutoSnapshotDetails & WithDate(DateT &&value)
AWS_LIGHTSAIL_API AutoSnapshotDetails()=default
const Aws::Vector< AttachedDisk > & GetFromAttachedDisks() const
AutoSnapshotDetails & WithFromAttachedDisks(FromAttachedDisksT &&value)
void SetFromAttachedDisks(FromAttachedDisksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue