AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
DetachVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace StorageGateway {
15namespace Model {
16
23 public:
24 AWS_STORAGEGATEWAY_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_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
41 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
42 template <typename VolumeARNT = Aws::String>
43 void SetVolumeARN(VolumeARNT&& value) {
44 m_volumeARNHasBeenSet = true;
45 m_volumeARN = std::forward<VolumeARNT>(value);
46 }
47 template <typename VolumeARNT = Aws::String>
48 DetachVolumeRequest& WithVolumeARN(VolumeARNT&& value) {
49 SetVolumeARN(std::forward<VolumeARNT>(value));
50 return *this;
51 }
53
55
62 inline bool GetForceDetach() const { return m_forceDetach; }
63 inline bool ForceDetachHasBeenSet() const { return m_forceDetachHasBeenSet; }
64 inline void SetForceDetach(bool value) {
65 m_forceDetachHasBeenSet = true;
66 m_forceDetach = value;
67 }
69 SetForceDetach(value);
70 return *this;
71 }
73 private:
74 Aws::String m_volumeARN;
75
76 bool m_forceDetach{false};
77 bool m_volumeARNHasBeenSet = false;
78 bool m_forceDetachHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace StorageGateway
83} // namespace Aws
DetachVolumeRequest & WithForceDetach(bool value)
AWS_STORAGEGATEWAY_API DetachVolumeRequest()=default
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetachVolumeRequest & WithVolumeARN(VolumeARNT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String