AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachVolumeResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/VolumeAttachmentState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
36 {
37 public:
38 AWS_EC2_API AttachVolumeResponse();
41
42
44
47 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
48 inline void SetDeleteOnTermination(bool value) { m_deleteOnTermination = value; }
49 inline AttachVolumeResponse& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
51
53
57 inline const Aws::String& GetAssociatedResource() const{ return m_associatedResource; }
58 inline void SetAssociatedResource(const Aws::String& value) { m_associatedResource = value; }
59 inline void SetAssociatedResource(Aws::String&& value) { m_associatedResource = std::move(value); }
60 inline void SetAssociatedResource(const char* value) { m_associatedResource.assign(value); }
62 inline AttachVolumeResponse& WithAssociatedResource(Aws::String&& value) { SetAssociatedResource(std::move(value)); return *this;}
63 inline AttachVolumeResponse& WithAssociatedResource(const char* value) { SetAssociatedResource(value); return *this;}
65
67
72 inline const Aws::String& GetInstanceOwningService() const{ return m_instanceOwningService; }
73 inline void SetInstanceOwningService(const Aws::String& value) { m_instanceOwningService = value; }
74 inline void SetInstanceOwningService(Aws::String&& value) { m_instanceOwningService = std::move(value); }
75 inline void SetInstanceOwningService(const char* value) { m_instanceOwningService.assign(value); }
77 inline AttachVolumeResponse& WithInstanceOwningService(Aws::String&& value) { SetInstanceOwningService(std::move(value)); return *this;}
78 inline AttachVolumeResponse& WithInstanceOwningService(const char* value) { SetInstanceOwningService(value); return *this;}
80
82
85 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
86 inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
87 inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
88 inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
89 inline AttachVolumeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
90 inline AttachVolumeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
91 inline AttachVolumeResponse& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
93
95
99 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
100 inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
101 inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
102 inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
103 inline AttachVolumeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
104 inline AttachVolumeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
105 inline AttachVolumeResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
107
109
113 inline const Aws::String& GetDevice() const{ return m_device; }
114 inline void SetDevice(const Aws::String& value) { m_device = value; }
115 inline void SetDevice(Aws::String&& value) { m_device = std::move(value); }
116 inline void SetDevice(const char* value) { m_device.assign(value); }
117 inline AttachVolumeResponse& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
118 inline AttachVolumeResponse& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
119 inline AttachVolumeResponse& WithDevice(const char* value) { SetDevice(value); return *this;}
121
123
126 inline const VolumeAttachmentState& GetState() const{ return m_state; }
127 inline void SetState(const VolumeAttachmentState& value) { m_state = value; }
128 inline void SetState(VolumeAttachmentState&& value) { m_state = std::move(value); }
129 inline AttachVolumeResponse& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
130 inline AttachVolumeResponse& WithState(VolumeAttachmentState&& value) { SetState(std::move(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
138 inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTime = value; }
139 inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTime = std::move(value); }
140 inline AttachVolumeResponse& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
141 inline AttachVolumeResponse& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
143
145
146 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
147 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
148 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
150 inline AttachVolumeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
152 private:
153
154 bool m_deleteOnTermination;
155
156 Aws::String m_associatedResource;
157
158 Aws::String m_instanceOwningService;
159
160 Aws::String m_volumeId;
161
162 Aws::String m_instanceId;
163
164 Aws::String m_device;
165
166 VolumeAttachmentState m_state;
167
168 Aws::Utils::DateTime m_attachTime;
169
170 ResponseMetadata m_responseMetadata;
171 };
172
173} // namespace Model
174} // namespace EC2
175} // namespace Aws
void SetAssociatedResource(Aws::String &&value)
AttachVolumeResponse & WithAssociatedResource(Aws::String &&value)
AttachVolumeResponse & WithVolumeId(const Aws::String &value)
AttachVolumeResponse & WithDevice(const Aws::String &value)
const Aws::String & GetInstanceId() const
AttachVolumeResponse & WithDevice(const char *value)
const ResponseMetadata & GetResponseMetadata() const
AttachVolumeResponse & WithInstanceId(const char *value)
void SetDevice(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
AttachVolumeResponse & WithDevice(Aws::String &&value)
AttachVolumeResponse & WithInstanceId(const Aws::String &value)
const Aws::Utils::DateTime & GetAttachTime() const
AttachVolumeResponse & WithResponseMetadata(ResponseMetadata &&value)
AttachVolumeResponse & WithVolumeId(Aws::String &&value)
AttachVolumeResponse & WithState(const VolumeAttachmentState &value)
AttachVolumeResponse & WithAttachTime(Aws::Utils::DateTime &&value)
void SetInstanceOwningService(const Aws::String &value)
const Aws::String & GetVolumeId() const
AttachVolumeResponse & WithInstanceId(Aws::String &&value)
void SetVolumeId(const Aws::String &value)
void SetAssociatedResource(const Aws::String &value)
AttachVolumeResponse & WithAttachTime(const Aws::Utils::DateTime &value)
AttachVolumeResponse & WithAssociatedResource(const Aws::String &value)
AttachVolumeResponse & WithDeleteOnTermination(bool value)
AttachVolumeResponse & WithVolumeId(const char *value)
void SetInstanceId(const Aws::String &value)
void SetInstanceOwningService(const char *value)
const Aws::String & GetAssociatedResource() const
void SetResponseMetadata(ResponseMetadata &&value)
AWS_EC2_API AttachVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetInstanceOwningService() const
void SetState(const VolumeAttachmentState &value)
void SetAttachTime(Aws::Utils::DateTime &&value)
AWS_EC2_API AttachVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AttachVolumeResponse & WithInstanceOwningService(const Aws::String &value)
AttachVolumeResponse & WithInstanceOwningService(Aws::String &&value)
void SetAttachTime(const Aws::Utils::DateTime &value)
void SetInstanceOwningService(Aws::String &&value)
AttachVolumeResponse & WithState(VolumeAttachmentState &&value)
AttachVolumeResponse & WithAssociatedResource(const char *value)
const VolumeAttachmentState & GetState() const
AttachVolumeResponse & WithInstanceOwningService(const char *value)
AttachVolumeResponse & WithResponseMetadata(const ResponseMetadata &value)
void SetState(VolumeAttachmentState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument