AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachVolumeResponse.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 DetachVolumeResponse();
41
42
44
47 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
48 inline void SetDeleteOnTermination(bool value) { m_deleteOnTermination = value; }
49 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithAssociatedResource(Aws::String&& value) { SetAssociatedResource(std::move(value)); return *this;}
63 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithInstanceOwningService(Aws::String&& value) { SetInstanceOwningService(std::move(value)); return *this;}
78 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
90 inline DetachVolumeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
91 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
104 inline DetachVolumeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
105 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
118 inline DetachVolumeResponse& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
119 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
130 inline DetachVolumeResponse& 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 DetachVolumeResponse& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
141 inline DetachVolumeResponse& 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 DetachVolumeResponse& 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
DetachVolumeResponse & WithAttachTime(const Aws::Utils::DateTime &value)
void SetAssociatedResource(const Aws::String &value)
DetachVolumeResponse & WithAssociatedResource(const char *value)
void SetInstanceOwningService(const char *value)
DetachVolumeResponse & WithDevice(const Aws::String &value)
void SetVolumeId(const Aws::String &value)
DetachVolumeResponse & WithResponseMetadata(ResponseMetadata &&value)
void SetState(VolumeAttachmentState &&value)
DetachVolumeResponse & WithInstanceOwningService(const char *value)
void SetAttachTime(Aws::Utils::DateTime &&value)
const Aws::String & GetVolumeId() const
void SetAssociatedResource(Aws::String &&value)
DetachVolumeResponse & WithInstanceOwningService(const Aws::String &value)
void SetAttachTime(const Aws::Utils::DateTime &value)
void SetInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetInstanceOwningService(const Aws::String &value)
DetachVolumeResponse & WithInstanceId(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
DetachVolumeResponse & WithState(VolumeAttachmentState &&value)
const VolumeAttachmentState & GetState() const
DetachVolumeResponse & WithDeleteOnTermination(bool value)
const Aws::Utils::DateTime & GetAttachTime() const
AWS_EC2_API DetachVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DetachVolumeResponse & WithInstanceId(Aws::String &&value)
DetachVolumeResponse & WithAssociatedResource(const Aws::String &value)
const Aws::String & GetInstanceOwningService() const
DetachVolumeResponse & WithDevice(Aws::String &&value)
DetachVolumeResponse & WithVolumeId(Aws::String &&value)
void SetInstanceOwningService(Aws::String &&value)
DetachVolumeResponse & WithDevice(const char *value)
DetachVolumeResponse & WithState(const VolumeAttachmentState &value)
DetachVolumeResponse & WithVolumeId(const Aws::String &value)
DetachVolumeResponse & WithResponseMetadata(const ResponseMetadata &value)
const Aws::String & GetAssociatedResource() const
DetachVolumeResponse & WithVolumeId(const char *value)
const ResponseMetadata & GetResponseMetadata() const
void SetState(const VolumeAttachmentState &value)
DetachVolumeResponse & WithInstanceOwningService(Aws::String &&value)
DetachVolumeResponse & WithAssociatedResource(Aws::String &&value)
DetachVolumeResponse & WithAttachTime(Aws::Utils::DateTime &&value)
void SetDevice(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
AWS_EC2_API DetachVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DetachVolumeResponse & WithInstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument