AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeAttachment.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/memory/stl/AWSString.h>
10#include <aws/ec2/model/VolumeAttachmentState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API VolumeAttachment();
38 AWS_EC2_API VolumeAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
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 bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
50 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
51 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
52 inline VolumeAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
54
56
60 inline const Aws::String& GetAssociatedResource() const{ return m_associatedResource; }
61 inline bool AssociatedResourceHasBeenSet() const { return m_associatedResourceHasBeenSet; }
62 inline void SetAssociatedResource(const Aws::String& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = value; }
63 inline void SetAssociatedResource(Aws::String&& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = std::move(value); }
64 inline void SetAssociatedResource(const char* value) { m_associatedResourceHasBeenSet = true; m_associatedResource.assign(value); }
65 inline VolumeAttachment& WithAssociatedResource(const Aws::String& value) { SetAssociatedResource(value); return *this;}
66 inline VolumeAttachment& WithAssociatedResource(Aws::String&& value) { SetAssociatedResource(std::move(value)); return *this;}
67 inline VolumeAttachment& WithAssociatedResource(const char* value) { SetAssociatedResource(value); return *this;}
69
71
76 inline const Aws::String& GetInstanceOwningService() const{ return m_instanceOwningService; }
77 inline bool InstanceOwningServiceHasBeenSet() const { return m_instanceOwningServiceHasBeenSet; }
78 inline void SetInstanceOwningService(const Aws::String& value) { m_instanceOwningServiceHasBeenSet = true; m_instanceOwningService = value; }
79 inline void SetInstanceOwningService(Aws::String&& value) { m_instanceOwningServiceHasBeenSet = true; m_instanceOwningService = std::move(value); }
80 inline void SetInstanceOwningService(const char* value) { m_instanceOwningServiceHasBeenSet = true; m_instanceOwningService.assign(value); }
82 inline VolumeAttachment& WithInstanceOwningService(Aws::String&& value) { SetInstanceOwningService(std::move(value)); return *this;}
83 inline VolumeAttachment& WithInstanceOwningService(const char* value) { SetInstanceOwningService(value); return *this;}
85
87
90 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
91 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
92 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
93 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
94 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
95 inline VolumeAttachment& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
96 inline VolumeAttachment& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
97 inline VolumeAttachment& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
99
101
105 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
106 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
107 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
108 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
109 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
110 inline VolumeAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
111 inline VolumeAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
112 inline VolumeAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
114
116
120 inline const Aws::String& GetDevice() const{ return m_device; }
121 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
122 inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
123 inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
124 inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
125 inline VolumeAttachment& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
126 inline VolumeAttachment& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
127 inline VolumeAttachment& WithDevice(const char* value) { SetDevice(value); return *this;}
129
131
134 inline const VolumeAttachmentState& GetState() const{ return m_state; }
135 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
136 inline void SetState(const VolumeAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
137 inline void SetState(VolumeAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
138 inline VolumeAttachment& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
139 inline VolumeAttachment& WithState(VolumeAttachmentState&& value) { SetState(std::move(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
147 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
148 inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
149 inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
150 inline VolumeAttachment& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
151 inline VolumeAttachment& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
153
155
156 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
157 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
158 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
159 inline VolumeAttachment& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
160 inline VolumeAttachment& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
162 private:
163
164 bool m_deleteOnTermination;
165 bool m_deleteOnTerminationHasBeenSet = false;
166
167 Aws::String m_associatedResource;
168 bool m_associatedResourceHasBeenSet = false;
169
170 Aws::String m_instanceOwningService;
171 bool m_instanceOwningServiceHasBeenSet = false;
172
173 Aws::String m_volumeId;
174 bool m_volumeIdHasBeenSet = false;
175
176 Aws::String m_instanceId;
177 bool m_instanceIdHasBeenSet = false;
178
179 Aws::String m_device;
180 bool m_deviceHasBeenSet = false;
181
182 VolumeAttachmentState m_state;
183 bool m_stateHasBeenSet = false;
184
185 Aws::Utils::DateTime m_attachTime;
186 bool m_attachTimeHasBeenSet = false;
187
188 ResponseMetadata m_responseMetadata;
189 };
190
191} // namespace Model
192} // namespace EC2
193} // namespace Aws
void SetDevice(const char *value)
void SetAssociatedResource(const Aws::String &value)
VolumeAttachment & WithInstanceId(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetState(VolumeAttachmentState &&value)
void SetVolumeId(Aws::String &&value)
VolumeAttachment & WithDeleteOnTermination(bool value)
const Aws::String & GetDevice() const
AWS_EC2_API VolumeAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeAttachment & WithInstanceId(Aws::String &&value)
VolumeAttachment & WithInstanceOwningService(const char *value)
void SetInstanceOwningService(const Aws::String &value)
const Aws::String & GetVolumeId() const
void SetAttachTime(const Aws::Utils::DateTime &value)
const Aws::String & GetAssociatedResource() const
void SetDevice(Aws::String &&value)
void SetVolumeId(const char *value)
VolumeAttachment & WithDevice(Aws::String &&value)
const Aws::Utils::DateTime & GetAttachTime() const
VolumeAttachment & WithResponseMetadata(const ResponseMetadata &value)
void SetInstanceOwningService(const char *value)
void SetAssociatedResource(const char *value)
void SetState(const VolumeAttachmentState &value)
VolumeAttachment & WithDevice(const Aws::String &value)
const VolumeAttachmentState & GetState() const
VolumeAttachment & WithVolumeId(const char *value)
void SetAttachTime(Aws::Utils::DateTime &&value)
void SetInstanceId(const char *value)
void SetResponseMetadata(ResponseMetadata &&value)
void SetAssociatedResource(Aws::String &&value)
VolumeAttachment & WithVolumeId(Aws::String &&value)
VolumeAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
VolumeAttachment & WithState(VolumeAttachmentState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeAttachment & WithResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetInstanceOwningService() const
VolumeAttachment & WithVolumeId(const Aws::String &value)
void SetDevice(const Aws::String &value)
VolumeAttachment & WithState(const VolumeAttachmentState &value)
const Aws::String & GetInstanceId() const
VolumeAttachment & WithAssociatedResource(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
VolumeAttachment & WithInstanceOwningService(Aws::String &&value)
VolumeAttachment & WithAssociatedResource(const char *value)
VolumeAttachment & WithInstanceOwningService(const Aws::String &value)
VolumeAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
void SetVolumeId(const Aws::String &value)
AWS_EC2_API VolumeAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeAttachment & WithInstanceId(const char *value)
const ResponseMetadata & GetResponseMetadata() const
VolumeAttachment & WithAssociatedResource(Aws::String &&value)
VolumeAttachment & WithDevice(const char *value)
void SetInstanceOwningService(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream