AWS SDK for C++  1.9.71
AWS SDK for C++
EbsInstanceBlockDevice.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
49 
53  inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
54 
58  inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
59 
63  inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
64 
68  inline EbsInstanceBlockDevice& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
69 
73  inline EbsInstanceBlockDevice& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
74 
75 
79  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
80 
84  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
85 
89  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
90 
94  inline EbsInstanceBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
95 
96 
100  inline const AttachmentStatus& GetStatus() const{ return m_status; }
101 
105  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 
110  inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
111 
115  inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
116 
120  inline EbsInstanceBlockDevice& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
121 
125  inline EbsInstanceBlockDevice& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
132 
136  inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
137 
141  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
142 
146  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
147 
151  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
152 
156  inline EbsInstanceBlockDevice& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
157 
161  inline EbsInstanceBlockDevice& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
162 
166  inline EbsInstanceBlockDevice& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
167 
168  private:
169 
170  Aws::Utils::DateTime m_attachTime;
171  bool m_attachTimeHasBeenSet;
172 
173  bool m_deleteOnTermination;
174  bool m_deleteOnTerminationHasBeenSet;
175 
176  AttachmentStatus m_status;
177  bool m_statusHasBeenSet;
178 
179  Aws::String m_volumeId;
180  bool m_volumeIdHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace EC2
185 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::EbsInstanceBlockDevice::WithStatus
EbsInstanceBlockDevice & WithStatus(AttachmentStatus &&value)
Definition: EbsInstanceBlockDevice.h:125
Aws::EC2::Model::AttachmentStatus
AttachmentStatus
Definition: AttachmentStatus.h:17
Aws::EC2::Model::EbsInstanceBlockDevice::WithVolumeId
EbsInstanceBlockDevice & WithVolumeId(const Aws::String &value)
Definition: EbsInstanceBlockDevice.h:156
Aws::EC2::Model::EbsInstanceBlockDevice::WithAttachTime
EbsInstanceBlockDevice & WithAttachTime(const Aws::Utils::DateTime &value)
Definition: EbsInstanceBlockDevice.h:68
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EbsInstanceBlockDevice::SetAttachTime
void SetAttachTime(const Aws::Utils::DateTime &value)
Definition: EbsInstanceBlockDevice.h:58
Aws::EC2::Model::EbsInstanceBlockDevice::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: EbsInstanceBlockDevice.h:84
AWSStreamFwd.h
Aws::EC2::Model::EbsInstanceBlockDevice::WithStatus
EbsInstanceBlockDevice & WithStatus(const AttachmentStatus &value)
Definition: EbsInstanceBlockDevice.h:120
Aws::EC2::Model::EbsInstanceBlockDevice::EbsInstanceBlockDevice
EbsInstanceBlockDevice()
Aws::EC2::Model::EbsInstanceBlockDevice::SetStatus
void SetStatus(AttachmentStatus &&value)
Definition: EbsInstanceBlockDevice.h:115
Aws::EC2::Model::EbsInstanceBlockDevice::SetAttachTime
void SetAttachTime(Aws::Utils::DateTime &&value)
Definition: EbsInstanceBlockDevice.h:63
Aws::EC2::Model::EbsInstanceBlockDevice::SetStatus
void SetStatus(const AttachmentStatus &value)
Definition: EbsInstanceBlockDevice.h:110
Aws::EC2::Model::EbsInstanceBlockDevice::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: EbsInstanceBlockDevice.h:136
Aws::EC2::Model::EbsInstanceBlockDevice::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: EbsInstanceBlockDevice.h:79
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::EbsInstanceBlockDevice::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::EbsInstanceBlockDevice::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AttachmentStatus.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::EbsInstanceBlockDevice::WithVolumeId
EbsInstanceBlockDevice & WithVolumeId(const char *value)
Definition: EbsInstanceBlockDevice.h:166
Aws::EC2::Model::EbsInstanceBlockDevice::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: EbsInstanceBlockDevice.h:146
Aws::EC2::Model::EbsInstanceBlockDevice::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EbsInstanceBlockDevice.h:105
Aws::EC2::Model::EbsInstanceBlockDevice::WithDeleteOnTermination
EbsInstanceBlockDevice & WithDeleteOnTermination(bool value)
Definition: EbsInstanceBlockDevice.h:94
Aws::EC2::Model::EbsInstanceBlockDevice::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: EbsInstanceBlockDevice.h:89
AWSString.h
Aws::EC2::Model::EbsInstanceBlockDevice
Definition: EbsInstanceBlockDevice.h:35
Aws::EC2::Model::EbsInstanceBlockDevice::WithVolumeId
EbsInstanceBlockDevice & WithVolumeId(Aws::String &&value)
Definition: EbsInstanceBlockDevice.h:161
Aws::EC2::Model::EbsInstanceBlockDevice::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: EbsInstanceBlockDevice.h:141
Aws::EC2::Model::EbsInstanceBlockDevice::GetStatus
const AttachmentStatus & GetStatus() const
Definition: EbsInstanceBlockDevice.h:100
Aws::EC2::Model::EbsInstanceBlockDevice::GetAttachTime
const Aws::Utils::DateTime & GetAttachTime() const
Definition: EbsInstanceBlockDevice.h:48
Aws::EC2::Model::EbsInstanceBlockDevice::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: EbsInstanceBlockDevice.h:131
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EbsInstanceBlockDevice::SetVolumeId
void SetVolumeId(const char *value)
Definition: EbsInstanceBlockDevice.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::EbsInstanceBlockDevice::AttachTimeHasBeenSet
bool AttachTimeHasBeenSet() const
Definition: EbsInstanceBlockDevice.h:53
EC2_EXPORTS.h
Aws::EC2::Model::EbsInstanceBlockDevice::operator=
EbsInstanceBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::EbsInstanceBlockDevice::WithAttachTime
EbsInstanceBlockDevice & WithAttachTime(Aws::Utils::DateTime &&value)
Definition: EbsInstanceBlockDevice.h:73
Aws::EC2::Model::EbsInstanceBlockDevice::EbsInstanceBlockDevice
EbsInstanceBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)