AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; }
51 inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
52 inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); }
53 inline AutoSnapshotDetails& WithDate(const Aws::String& value) { SetDate(value); return *this;}
54 inline AutoSnapshotDetails& WithDate(Aws::String&& value) { SetDate(std::move(value)); return *this;}
55 inline AutoSnapshotDetails& WithDate(const char* value) { SetDate(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
63 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
64 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
65 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
66 inline AutoSnapshotDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
67 inline AutoSnapshotDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
69
71
74 inline const AutoSnapshotStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const AutoSnapshotStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(AutoSnapshotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline AutoSnapshotDetails& WithStatus(const AutoSnapshotStatus& value) { SetStatus(value); return *this;}
79 inline AutoSnapshotDetails& WithStatus(AutoSnapshotStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
87 inline const Aws::Vector<AttachedDisk>& GetFromAttachedDisks() const{ return m_fromAttachedDisks; }
88 inline bool FromAttachedDisksHasBeenSet() const { return m_fromAttachedDisksHasBeenSet; }
89 inline void SetFromAttachedDisks(const Aws::Vector<AttachedDisk>& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = value; }
90 inline void SetFromAttachedDisks(Aws::Vector<AttachedDisk>&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = std::move(value); }
93 inline AutoSnapshotDetails& AddFromAttachedDisks(const AttachedDisk& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(value); return *this; }
94 inline AutoSnapshotDetails& AddFromAttachedDisks(AttachedDisk&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_date;
99 bool m_dateHasBeenSet = false;
100
101 Aws::Utils::DateTime m_createdAt;
102 bool m_createdAtHasBeenSet = false;
103
104 AutoSnapshotStatus m_status;
105 bool m_statusHasBeenSet = false;
106
107 Aws::Vector<AttachedDisk> m_fromAttachedDisks;
108 bool m_fromAttachedDisksHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Lightsail
113} // namespace Aws
AutoSnapshotDetails & WithDate(const Aws::String &value)
AutoSnapshotDetails & WithDate(const char *value)
AutoSnapshotDetails & AddFromAttachedDisks(AttachedDisk &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AutoSnapshotDetails & WithFromAttachedDisks(const Aws::Vector< AttachedDisk > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AutoSnapshotDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API AutoSnapshotDetails(Aws::Utils::Json::JsonView jsonValue)
void SetFromAttachedDisks(Aws::Vector< AttachedDisk > &&value)
AutoSnapshotDetails & WithStatus(AutoSnapshotStatus &&value)
const AutoSnapshotStatus & GetStatus() const
AWS_LIGHTSAIL_API AutoSnapshotDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFromAttachedDisks(const Aws::Vector< AttachedDisk > &value)
AutoSnapshotDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
AutoSnapshotDetails & AddFromAttachedDisks(const AttachedDisk &value)
void SetStatus(const AutoSnapshotStatus &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetStatus(AutoSnapshotStatus &&value)
AutoSnapshotDetails & WithDate(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AutoSnapshotDetails & WithFromAttachedDisks(Aws::Vector< AttachedDisk > &&value)
const Aws::Vector< AttachedDisk > & GetFromAttachedDisks() const
AutoSnapshotDetails & WithStatus(const AutoSnapshotStatus &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