AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AssociateVolumeRequest.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
11#include <utility>
12
13namespace Aws {
14namespace WorkspacesInstances {
15namespace Model {
16
23 public:
24 AWS_WORKSPACESINSTANCES_API AssociateVolumeRequest() = 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 "AssociateVolume"; }
31
32 AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override;
33
34 AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetWorkspaceInstanceId() const { return m_workspaceInstanceId; }
41 inline bool WorkspaceInstanceIdHasBeenSet() const { return m_workspaceInstanceIdHasBeenSet; }
42 template <typename WorkspaceInstanceIdT = Aws::String>
43 void SetWorkspaceInstanceId(WorkspaceInstanceIdT&& value) {
44 m_workspaceInstanceIdHasBeenSet = true;
45 m_workspaceInstanceId = std::forward<WorkspaceInstanceIdT>(value);
46 }
47 template <typename WorkspaceInstanceIdT = Aws::String>
48 AssociateVolumeRequest& WithWorkspaceInstanceId(WorkspaceInstanceIdT&& value) {
49 SetWorkspaceInstanceId(std::forward<WorkspaceInstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
59 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
60 template <typename VolumeIdT = Aws::String>
61 void SetVolumeId(VolumeIdT&& value) {
62 m_volumeIdHasBeenSet = true;
63 m_volumeId = std::forward<VolumeIdT>(value);
64 }
65 template <typename VolumeIdT = Aws::String>
67 SetVolumeId(std::forward<VolumeIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDevice() const { return m_device; }
77 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
78 template <typename DeviceT = Aws::String>
79 void SetDevice(DeviceT&& value) {
80 m_deviceHasBeenSet = true;
81 m_device = std::forward<DeviceT>(value);
82 }
83 template <typename DeviceT = Aws::String>
85 SetDevice(std::forward<DeviceT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_workspaceInstanceId;
91
92 Aws::String m_volumeId;
93
94 Aws::String m_device;
95 bool m_workspaceInstanceIdHasBeenSet = false;
96 bool m_volumeIdHasBeenSet = false;
97 bool m_deviceHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace WorkspacesInstances
102} // namespace Aws
AWS_WORKSPACESINSTANCES_API Aws::String SerializePayload() const override
AssociateVolumeRequest & WithWorkspaceInstanceId(WorkspaceInstanceIdT &&value)
AWS_WORKSPACESINSTANCES_API AssociateVolumeRequest()=default
AWS_WORKSPACESINSTANCES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateVolumeRequest & WithVolumeId(VolumeIdT &&value)
virtual const char * GetServiceRequestName() const override
AssociateVolumeRequest & WithDevice(DeviceT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String