AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DisassociateVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-instances/WorkspacesInstancesRequest.h>
9#include <aws/workspaces-instances/WorkspacesInstances_EXPORTS.h>
10#include <aws/workspaces-instances/model/DisassociateModeEnum.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkspacesInstances {
16namespace Model {
17
24 public:
25 AWS_WORKSPACESINSTANCES_API DisassociateVolumeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DisassociateVolume"; }
32
33 AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override;
34
35 AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetWorkspaceInstanceId() const { return m_workspaceInstanceId; }
42 inline bool WorkspaceInstanceIdHasBeenSet() const { return m_workspaceInstanceIdHasBeenSet; }
43 template <typename WorkspaceInstanceIdT = Aws::String>
44 void SetWorkspaceInstanceId(WorkspaceInstanceIdT&& value) {
45 m_workspaceInstanceIdHasBeenSet = true;
46 m_workspaceInstanceId = std::forward<WorkspaceInstanceIdT>(value);
47 }
48 template <typename WorkspaceInstanceIdT = Aws::String>
49 DisassociateVolumeRequest& WithWorkspaceInstanceId(WorkspaceInstanceIdT&& value) {
50 SetWorkspaceInstanceId(std::forward<WorkspaceInstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
60 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
61 template <typename VolumeIdT = Aws::String>
62 void SetVolumeId(VolumeIdT&& value) {
63 m_volumeIdHasBeenSet = true;
64 m_volumeId = std::forward<VolumeIdT>(value);
65 }
66 template <typename VolumeIdT = Aws::String>
68 SetVolumeId(std::forward<VolumeIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDevice() const { return m_device; }
78 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
79 template <typename DeviceT = Aws::String>
80 void SetDevice(DeviceT&& value) {
81 m_deviceHasBeenSet = true;
82 m_device = std::forward<DeviceT>(value);
83 }
84 template <typename DeviceT = Aws::String>
86 SetDevice(std::forward<DeviceT>(value));
87 return *this;
88 }
90
92
95 inline DisassociateModeEnum GetDisassociateMode() const { return m_disassociateMode; }
96 inline bool DisassociateModeHasBeenSet() const { return m_disassociateModeHasBeenSet; }
98 m_disassociateModeHasBeenSet = true;
99 m_disassociateMode = value;
100 }
102 SetDisassociateMode(value);
103 return *this;
104 }
106 private:
107 Aws::String m_workspaceInstanceId;
108
109 Aws::String m_volumeId;
110
111 Aws::String m_device;
112
114 bool m_workspaceInstanceIdHasBeenSet = false;
115 bool m_volumeIdHasBeenSet = false;
116 bool m_deviceHasBeenSet = false;
117 bool m_disassociateModeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace WorkspacesInstances
122} // namespace Aws
DisassociateVolumeRequest & WithDisassociateMode(DisassociateModeEnum value)
AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DisassociateVolumeRequest & WithVolumeId(VolumeIdT &&value)
AWS_WORKSPACESINSTANCES_API DisassociateVolumeRequest()=default
DisassociateVolumeRequest & WithWorkspaceInstanceId(WorkspaceInstanceIdT &&value)
AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String