AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutoSnapshotDetails.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/AutoSnapshotStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lightsail/model/AttachedDisk.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_LIGHTSAIL_API AutoSnapshotDetails() = default;
39 AWS_LIGHTSAIL_API AutoSnapshotDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDate() const { return m_date; }
49 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
50 template<typename DateT = Aws::String>
51 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
52 template<typename DateT = Aws::String>
53 AutoSnapshotDetails& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
64 template<typename CreatedAtT = Aws::Utils::DateTime>
65 AutoSnapshotDetails& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
67
69
72 inline AutoSnapshotStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(AutoSnapshotStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline AutoSnapshotDetails& WithStatus(AutoSnapshotStatus value) { SetStatus(value); return *this;}
77
79
83 inline const Aws::Vector<AttachedDisk>& GetFromAttachedDisks() const { return m_fromAttachedDisks; }
84 inline bool FromAttachedDisksHasBeenSet() const { return m_fromAttachedDisksHasBeenSet; }
85 template<typename FromAttachedDisksT = Aws::Vector<AttachedDisk>>
86 void SetFromAttachedDisks(FromAttachedDisksT&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = std::forward<FromAttachedDisksT>(value); }
87 template<typename FromAttachedDisksT = Aws::Vector<AttachedDisk>>
88 AutoSnapshotDetails& WithFromAttachedDisks(FromAttachedDisksT&& value) { SetFromAttachedDisks(std::forward<FromAttachedDisksT>(value)); return *this;}
89 template<typename FromAttachedDisksT = AttachedDisk>
90 AutoSnapshotDetails& AddFromAttachedDisks(FromAttachedDisksT&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.emplace_back(std::forward<FromAttachedDisksT>(value)); return *this; }
92 private:
93
94 Aws::String m_date;
95 bool m_dateHasBeenSet = false;
96
97 Aws::Utils::DateTime m_createdAt{};
98 bool m_createdAtHasBeenSet = false;
99
101 bool m_statusHasBeenSet = false;
102
103 Aws::Vector<AttachedDisk> m_fromAttachedDisks;
104 bool m_fromAttachedDisksHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Lightsail
109} // 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