AWS SDK for C++  1.9.16
AWS SDK for C++
AutoSnapshotDetails.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetDate() const{ return m_date; }
48 
52  inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
53 
57  inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; }
58 
62  inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
63 
67  inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); }
68 
72  inline AutoSnapshotDetails& WithDate(const Aws::String& value) { SetDate(value); return *this;}
73 
77  inline AutoSnapshotDetails& WithDate(Aws::String&& value) { SetDate(std::move(value)); return *this;}
78 
82  inline AutoSnapshotDetails& WithDate(const char* value) { SetDate(value); return *this;}
83 
84 
88  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
89 
93  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 
98  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
99 
103  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
104 
108  inline AutoSnapshotDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
109 
113  inline AutoSnapshotDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
114 
115 
119  inline const AutoSnapshotStatus& GetStatus() const{ return m_status; }
120 
124  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 
129  inline void SetStatus(const AutoSnapshotStatus& value) { m_statusHasBeenSet = true; m_status = value; }
130 
134  inline void SetStatus(AutoSnapshotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
135 
139  inline AutoSnapshotDetails& WithStatus(const AutoSnapshotStatus& value) { SetStatus(value); return *this;}
140 
144  inline AutoSnapshotDetails& WithStatus(AutoSnapshotStatus&& value) { SetStatus(std::move(value)); return *this;}
145 
146 
151  inline const Aws::Vector<AttachedDisk>& GetFromAttachedDisks() const{ return m_fromAttachedDisks; }
152 
157  inline bool FromAttachedDisksHasBeenSet() const { return m_fromAttachedDisksHasBeenSet; }
158 
163  inline void SetFromAttachedDisks(const Aws::Vector<AttachedDisk>& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = value; }
164 
169  inline void SetFromAttachedDisks(Aws::Vector<AttachedDisk>&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = std::move(value); }
170 
175  inline AutoSnapshotDetails& WithFromAttachedDisks(const Aws::Vector<AttachedDisk>& value) { SetFromAttachedDisks(value); return *this;}
176 
181  inline AutoSnapshotDetails& WithFromAttachedDisks(Aws::Vector<AttachedDisk>&& value) { SetFromAttachedDisks(std::move(value)); return *this;}
182 
187  inline AutoSnapshotDetails& AddFromAttachedDisks(const AttachedDisk& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(value); return *this; }
188 
193  inline AutoSnapshotDetails& AddFromAttachedDisks(AttachedDisk&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(std::move(value)); return *this; }
194 
195  private:
196 
197  Aws::String m_date;
198  bool m_dateHasBeenSet;
199 
200  Aws::Utils::DateTime m_createdAt;
201  bool m_createdAtHasBeenSet;
202 
203  AutoSnapshotStatus m_status;
204  bool m_statusHasBeenSet;
205 
206  Aws::Vector<AttachedDisk> m_fromAttachedDisks;
207  bool m_fromAttachedDisksHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace Lightsail
212 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::AutoSnapshotDetails::WithFromAttachedDisks
AutoSnapshotDetails & WithFromAttachedDisks(const Aws::Vector< AttachedDisk > &value)
Definition: AutoSnapshotDetails.h:175
Aws::Lightsail::Model::AttachedDisk
Definition: AttachedDisk.h:33
Aws::Lightsail::Model::AutoSnapshotDetails::AddFromAttachedDisks
AutoSnapshotDetails & AddFromAttachedDisks(AttachedDisk &&value)
Definition: AutoSnapshotDetails.h:193
Aws::Lightsail::Model::AutoSnapshotDetails::AutoSnapshotDetails
AutoSnapshotDetails()
Aws::Lightsail::Model::AutoSnapshotDetails::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: AutoSnapshotDetails.h:88
Aws::Lightsail::Model::AutoSnapshotDetails::SetStatus
void SetStatus(AutoSnapshotStatus &&value)
Definition: AutoSnapshotDetails.h:134
Aws::Lightsail::Model::AutoSnapshotDetails::GetFromAttachedDisks
const Aws::Vector< AttachedDisk > & GetFromAttachedDisks() const
Definition: AutoSnapshotDetails.h:151
Aws::Lightsail::Model::AutoSnapshotDetails::operator=
AutoSnapshotDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AutoSnapshotDetails::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: AutoSnapshotDetails.h:93
DateTime.h
Aws::Lightsail::Model::AutoSnapshotDetails
Definition: AutoSnapshotDetails.h:36
Aws::Lightsail::Model::AutoSnapshotDetails::AutoSnapshotDetails
AutoSnapshotDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::AutoSnapshotStatus
AutoSnapshotStatus
Definition: AutoSnapshotStatus.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::AutoSnapshotDetails::DateHasBeenSet
bool DateHasBeenSet() const
Definition: AutoSnapshotDetails.h:52
Aws::Lightsail::Model::AutoSnapshotDetails::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: AutoSnapshotDetails.h:103
Aws::Lightsail::Model::AutoSnapshotDetails::WithDate
AutoSnapshotDetails & WithDate(Aws::String &&value)
Definition: AutoSnapshotDetails.h:77
AttachedDisk.h
Aws::Lightsail::Model::AutoSnapshotDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::AutoSnapshotDetails::WithCreatedAt
AutoSnapshotDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: AutoSnapshotDetails.h:113
Aws::Lightsail::Model::AutoSnapshotDetails::SetDate
void SetDate(Aws::String &&value)
Definition: AutoSnapshotDetails.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::AutoSnapshotDetails::FromAttachedDisksHasBeenSet
bool FromAttachedDisksHasBeenSet() const
Definition: AutoSnapshotDetails.h:157
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::AutoSnapshotDetails::SetFromAttachedDisks
void SetFromAttachedDisks(Aws::Vector< AttachedDisk > &&value)
Definition: AutoSnapshotDetails.h:169
Aws::Lightsail::Model::AutoSnapshotDetails::WithDate
AutoSnapshotDetails & WithDate(const char *value)
Definition: AutoSnapshotDetails.h:82
Aws::Lightsail::Model::AutoSnapshotDetails::AddFromAttachedDisks
AutoSnapshotDetails & AddFromAttachedDisks(const AttachedDisk &value)
Definition: AutoSnapshotDetails.h:187
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AutoSnapshotDetails::GetStatus
const AutoSnapshotStatus & GetStatus() const
Definition: AutoSnapshotDetails.h:119
Aws::Lightsail::Model::AutoSnapshotDetails::WithCreatedAt
AutoSnapshotDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: AutoSnapshotDetails.h:108
Aws::Lightsail::Model::AutoSnapshotDetails::WithFromAttachedDisks
AutoSnapshotDetails & WithFromAttachedDisks(Aws::Vector< AttachedDisk > &&value)
Definition: AutoSnapshotDetails.h:181
Aws::Lightsail::Model::AutoSnapshotDetails::WithStatus
AutoSnapshotDetails & WithStatus(AutoSnapshotStatus &&value)
Definition: AutoSnapshotDetails.h:144
Aws::Lightsail::Model::AutoSnapshotDetails::SetDate
void SetDate(const Aws::String &value)
Definition: AutoSnapshotDetails.h:57
Aws
Definition: AccessManagementClient.h:15
AutoSnapshotStatus.h
Aws::Lightsail::Model::AutoSnapshotDetails::WithDate
AutoSnapshotDetails & WithDate(const Aws::String &value)
Definition: AutoSnapshotDetails.h:72
Aws::Lightsail::Model::AutoSnapshotDetails::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: AutoSnapshotDetails.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AutoSnapshotDetails::SetFromAttachedDisks
void SetFromAttachedDisks(const Aws::Vector< AttachedDisk > &value)
Definition: AutoSnapshotDetails.h:163
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AutoSnapshotDetails::WithStatus
AutoSnapshotDetails & WithStatus(const AutoSnapshotStatus &value)
Definition: AutoSnapshotDetails.h:139
Aws::Lightsail::Model::AutoSnapshotDetails::SetDate
void SetDate(const char *value)
Definition: AutoSnapshotDetails.h:67
Aws::Lightsail::Model::AutoSnapshotDetails::GetDate
const Aws::String & GetDate() const
Definition: AutoSnapshotDetails.h:47
Aws::Lightsail::Model::AutoSnapshotDetails::SetStatus
void SetStatus(const AutoSnapshotStatus &value)
Definition: AutoSnapshotDetails.h:129
Aws::Lightsail::Model::AutoSnapshotDetails::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AutoSnapshotDetails.h:124