AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EbsInstanceBlockDevice.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ec2/model/AttachmentStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
50 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
51 inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
52 inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
53 inline EbsInstanceBlockDevice& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
54 inline EbsInstanceBlockDevice& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
56
58
61 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
62 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
63 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
64 inline EbsInstanceBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
66
68
71 inline const AttachmentStatus& GetStatus() const{ return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
74 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
75 inline EbsInstanceBlockDevice& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
76 inline EbsInstanceBlockDevice& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
84 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
85 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
86 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
87 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
88 inline EbsInstanceBlockDevice& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
89 inline EbsInstanceBlockDevice& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
90 inline EbsInstanceBlockDevice& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
92
94
98 inline const Aws::String& GetAssociatedResource() const{ return m_associatedResource; }
99 inline bool AssociatedResourceHasBeenSet() const { return m_associatedResourceHasBeenSet; }
100 inline void SetAssociatedResource(const Aws::String& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = value; }
101 inline void SetAssociatedResource(Aws::String&& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = std::move(value); }
102 inline void SetAssociatedResource(const char* value) { m_associatedResourceHasBeenSet = true; m_associatedResource.assign(value); }
104 inline EbsInstanceBlockDevice& WithAssociatedResource(Aws::String&& value) { SetAssociatedResource(std::move(value)); return *this;}
105 inline EbsInstanceBlockDevice& WithAssociatedResource(const char* value) { SetAssociatedResource(value); return *this;}
107
109
113 inline const Aws::String& GetVolumeOwnerId() const{ return m_volumeOwnerId; }
114 inline bool VolumeOwnerIdHasBeenSet() const { return m_volumeOwnerIdHasBeenSet; }
115 inline void SetVolumeOwnerId(const Aws::String& value) { m_volumeOwnerIdHasBeenSet = true; m_volumeOwnerId = value; }
116 inline void SetVolumeOwnerId(Aws::String&& value) { m_volumeOwnerIdHasBeenSet = true; m_volumeOwnerId = std::move(value); }
117 inline void SetVolumeOwnerId(const char* value) { m_volumeOwnerIdHasBeenSet = true; m_volumeOwnerId.assign(value); }
118 inline EbsInstanceBlockDevice& WithVolumeOwnerId(const Aws::String& value) { SetVolumeOwnerId(value); return *this;}
119 inline EbsInstanceBlockDevice& WithVolumeOwnerId(Aws::String&& value) { SetVolumeOwnerId(std::move(value)); return *this;}
120 inline EbsInstanceBlockDevice& WithVolumeOwnerId(const char* value) { SetVolumeOwnerId(value); return *this;}
122 private:
123
124 Aws::Utils::DateTime m_attachTime;
125 bool m_attachTimeHasBeenSet = false;
126
127 bool m_deleteOnTermination;
128 bool m_deleteOnTerminationHasBeenSet = false;
129
130 AttachmentStatus m_status;
131 bool m_statusHasBeenSet = false;
132
133 Aws::String m_volumeId;
134 bool m_volumeIdHasBeenSet = false;
135
136 Aws::String m_associatedResource;
137 bool m_associatedResourceHasBeenSet = false;
138
139 Aws::String m_volumeOwnerId;
140 bool m_volumeOwnerIdHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
AWS_EC2_API EbsInstanceBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EbsInstanceBlockDevice & WithVolumeId(const char *value)
EbsInstanceBlockDevice & WithAssociatedResource(Aws::String &&value)
void SetStatus(const AttachmentStatus &value)
void SetAttachTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetAttachTime() const
EbsInstanceBlockDevice & WithAttachTime(const Aws::Utils::DateTime &value)
EbsInstanceBlockDevice & WithDeleteOnTermination(bool value)
EbsInstanceBlockDevice & WithVolumeId(Aws::String &&value)
EbsInstanceBlockDevice & WithStatus(AttachmentStatus &&value)
void SetAssociatedResource(const Aws::String &value)
EbsInstanceBlockDevice & WithVolumeOwnerId(Aws::String &&value)
EbsInstanceBlockDevice & WithAssociatedResource(const char *value)
void SetAttachTime(const Aws::Utils::DateTime &value)
EbsInstanceBlockDevice & WithVolumeOwnerId(const Aws::String &value)
EbsInstanceBlockDevice & WithVolumeId(const Aws::String &value)
void SetVolumeOwnerId(const Aws::String &value)
EbsInstanceBlockDevice & WithAssociatedResource(const Aws::String &value)
const Aws::String & GetAssociatedResource() const
void SetVolumeId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API EbsInstanceBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
const AttachmentStatus & GetStatus() const
EbsInstanceBlockDevice & WithVolumeOwnerId(const char *value)
EbsInstanceBlockDevice & WithStatus(const AttachmentStatus &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EbsInstanceBlockDevice & WithAttachTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream