AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetachVolumeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API DetachVolumeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DetachVolume"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetDevice() const { return m_device; }
44 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
45 template<typename DeviceT = Aws::String>
46 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
47 template<typename DeviceT = Aws::String>
48 DetachVolumeRequest& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
50
52
61 inline bool GetForce() const { return m_force; }
62 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
63 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
64 inline DetachVolumeRequest& WithForce(bool value) { SetForce(value); return *this;}
66
68
72 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
73 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
74 template<typename InstanceIdT = Aws::String>
75 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
76 template<typename InstanceIdT = Aws::String>
77 DetachVolumeRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
85 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
86 template<typename VolumeIdT = Aws::String>
87 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
88 template<typename VolumeIdT = Aws::String>
89 DetachVolumeRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
91
93
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
102 inline DetachVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
104 private:
105
106 Aws::String m_device;
107 bool m_deviceHasBeenSet = false;
108
109 bool m_force{false};
110 bool m_forceHasBeenSet = false;
111
112 Aws::String m_instanceId;
113 bool m_instanceIdHasBeenSet = false;
114
115 Aws::String m_volumeId;
116 bool m_volumeIdHasBeenSet = false;
117
118 bool m_dryRun{false};
119 bool m_dryRunHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
DetachVolumeRequest & WithDryRun(bool value)
DetachVolumeRequest & WithInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceId() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API DetachVolumeRequest()=default
DetachVolumeRequest & WithVolumeId(VolumeIdT &&value)
const Aws::String & GetVolumeId() const
void SetInstanceId(InstanceIdT &&value)
virtual const char * GetServiceRequestName() const override
DetachVolumeRequest & WithForce(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::String & GetDevice() const
DetachVolumeRequest & WithDevice(DeviceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String