AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttachVolumeRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace StorageGateway
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_STORAGEGATEWAY_API AttachVolumeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AttachVolume"; }
34
35 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
36
37 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
46 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
47 template<typename GatewayARNT = Aws::String>
48 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
49 template<typename GatewayARNT = Aws::String>
50 AttachVolumeRequest& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
52
54
63 inline const Aws::String& GetTargetName() const { return m_targetName; }
64 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
65 template<typename TargetNameT = Aws::String>
66 void SetTargetName(TargetNameT&& value) { m_targetNameHasBeenSet = true; m_targetName = std::forward<TargetNameT>(value); }
67 template<typename TargetNameT = Aws::String>
68 AttachVolumeRequest& WithTargetName(TargetNameT&& value) { SetTargetName(std::forward<TargetNameT>(value)); return *this;}
70
72
76 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
77 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
78 template<typename VolumeARNT = Aws::String>
79 void SetVolumeARN(VolumeARNT&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::forward<VolumeARNT>(value); }
80 template<typename VolumeARNT = Aws::String>
81 AttachVolumeRequest& WithVolumeARN(VolumeARNT&& value) { SetVolumeARN(std::forward<VolumeARNT>(value)); return *this;}
83
85
91 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
92 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
93 template<typename NetworkInterfaceIdT = Aws::String>
94 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
95 template<typename NetworkInterfaceIdT = Aws::String>
96 AttachVolumeRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
98
100
105 inline const Aws::String& GetDiskId() const { return m_diskId; }
106 inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
107 template<typename DiskIdT = Aws::String>
108 void SetDiskId(DiskIdT&& value) { m_diskIdHasBeenSet = true; m_diskId = std::forward<DiskIdT>(value); }
109 template<typename DiskIdT = Aws::String>
110 AttachVolumeRequest& WithDiskId(DiskIdT&& value) { SetDiskId(std::forward<DiskIdT>(value)); return *this;}
112 private:
113
114 Aws::String m_gatewayARN;
115 bool m_gatewayARNHasBeenSet = false;
116
117 Aws::String m_targetName;
118 bool m_targetNameHasBeenSet = false;
119
120 Aws::String m_volumeARN;
121 bool m_volumeARNHasBeenSet = false;
122
123 Aws::String m_networkInterfaceId;
124 bool m_networkInterfaceIdHasBeenSet = false;
125
126 Aws::String m_diskId;
127 bool m_diskIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace StorageGateway
132} // namespace Aws
AttachVolumeRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
virtual const char * GetServiceRequestName() const override
AttachVolumeRequest & WithGatewayARN(GatewayARNT &&value)
AttachVolumeRequest & WithDiskId(DiskIdT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
AttachVolumeRequest & WithTargetName(TargetNameT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API AttachVolumeRequest()=default
AttachVolumeRequest & WithVolumeARN(VolumeARNT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String