AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
41
42
44
47 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
48 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; 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 template<typename AssociatedResourceT = Aws::String>
59 void SetAssociatedResource(AssociatedResourceT&& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = std::forward<AssociatedResourceT>(value); }
60 template<typename AssociatedResourceT = Aws::String>
61 AttachVolumeResponse& WithAssociatedResource(AssociatedResourceT&& value) { SetAssociatedResource(std::forward<AssociatedResourceT>(value)); return *this;}
63
65
71 inline const Aws::String& GetInstanceOwningService() const { return m_instanceOwningService; }
72 template<typename InstanceOwningServiceT = Aws::String>
73 void SetInstanceOwningService(InstanceOwningServiceT&& value) { m_instanceOwningServiceHasBeenSet = true; m_instanceOwningService = std::forward<InstanceOwningServiceT>(value); }
74 template<typename InstanceOwningServiceT = Aws::String>
75 AttachVolumeResponse& WithInstanceOwningService(InstanceOwningServiceT&& value) { SetInstanceOwningService(std::forward<InstanceOwningServiceT>(value)); return *this;}
77
79
82 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
83 template<typename VolumeIdT = Aws::String>
84 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
85 template<typename VolumeIdT = Aws::String>
86 AttachVolumeResponse& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
88
90
94 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
95 template<typename InstanceIdT = Aws::String>
96 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
97 template<typename InstanceIdT = Aws::String>
98 AttachVolumeResponse& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
100
102
106 inline const Aws::String& GetDevice() const { return m_device; }
107 template<typename DeviceT = Aws::String>
108 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
109 template<typename DeviceT = Aws::String>
110 AttachVolumeResponse& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
112
114
117 inline VolumeAttachmentState GetState() const { return m_state; }
118 inline void SetState(VolumeAttachmentState value) { m_stateHasBeenSet = true; m_state = value; }
119 inline AttachVolumeResponse& WithState(VolumeAttachmentState value) { SetState(value); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetAttachTime() const { return m_attachTime; }
127 template<typename AttachTimeT = Aws::Utils::DateTime>
128 void SetAttachTime(AttachTimeT&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::forward<AttachTimeT>(value); }
129 template<typename AttachTimeT = Aws::Utils::DateTime>
130 AttachVolumeResponse& WithAttachTime(AttachTimeT&& value) { SetAttachTime(std::forward<AttachTimeT>(value)); return *this;}
132
134
135 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
136 template<typename ResponseMetadataT = ResponseMetadata>
137 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
138 template<typename ResponseMetadataT = ResponseMetadata>
139 AttachVolumeResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
141 private:
142
143 bool m_deleteOnTermination{false};
144 bool m_deleteOnTerminationHasBeenSet = false;
145
146 Aws::String m_associatedResource;
147 bool m_associatedResourceHasBeenSet = false;
148
149 Aws::String m_instanceOwningService;
150 bool m_instanceOwningServiceHasBeenSet = false;
151
152 Aws::String m_volumeId;
153 bool m_volumeIdHasBeenSet = false;
154
155 Aws::String m_instanceId;
156 bool m_instanceIdHasBeenSet = false;
157
158 Aws::String m_device;
159 bool m_deviceHasBeenSet = false;
160
162 bool m_stateHasBeenSet = false;
163
164 Aws::Utils::DateTime m_attachTime{};
165 bool m_attachTimeHasBeenSet = false;
166
167 ResponseMetadata m_responseMetadata;
168 bool m_responseMetadataHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
AttachVolumeResponse & WithAssociatedResource(AssociatedResourceT &&value)
const Aws::String & GetInstanceId() const
const ResponseMetadata & GetResponseMetadata() const
const Aws::Utils::DateTime & GetAttachTime() const
AttachVolumeResponse & WithVolumeId(VolumeIdT &&value)
const Aws::String & GetVolumeId() const
void SetAssociatedResource(AssociatedResourceT &&value)
AttachVolumeResponse & WithState(VolumeAttachmentState value)
void SetResponseMetadata(ResponseMetadataT &&value)
AttachVolumeResponse & WithDeleteOnTermination(bool value)
void SetInstanceOwningService(InstanceOwningServiceT &&value)
AttachVolumeResponse & WithAttachTime(AttachTimeT &&value)
const Aws::String & GetAssociatedResource() const
AWS_EC2_API AttachVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetInstanceOwningService() const
AttachVolumeResponse & WithInstanceOwningService(InstanceOwningServiceT &&value)
AWS_EC2_API AttachVolumeResponse()=default
VolumeAttachmentState GetState() const
AWS_EC2_API AttachVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AttachVolumeResponse & WithDevice(DeviceT &&value)
AttachVolumeResponse & WithResponseMetadata(ResponseMetadataT &&value)
AttachVolumeResponse & WithInstanceId(InstanceIdT &&value)
void SetState(VolumeAttachmentState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument