AWS SDK for C++  1.9.103
AWS SDK for C++
DetachVolumeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
25  {
26  public:
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 "DetachVolume"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
44 
48  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
49 
53  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
54 
58  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
59 
63  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
64 
68  inline DetachVolumeRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
69 
73  inline DetachVolumeRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
74 
78  inline DetachVolumeRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
79 
80 
88  inline bool GetForceDetach() const{ return m_forceDetach; }
89 
97  inline bool ForceDetachHasBeenSet() const { return m_forceDetachHasBeenSet; }
98 
106  inline void SetForceDetach(bool value) { m_forceDetachHasBeenSet = true; m_forceDetach = value; }
107 
115  inline DetachVolumeRequest& WithForceDetach(bool value) { SetForceDetach(value); return *this;}
116 
117  private:
118 
119  Aws::String m_volumeARN;
120  bool m_volumeARNHasBeenSet;
121 
122  bool m_forceDetach;
123  bool m_forceDetachHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace StorageGateway
128 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DetachVolumeRequest::WithVolumeARN
DetachVolumeRequest & WithVolumeARN(const char *value)
Definition: DetachVolumeRequest.h:78
Aws::StorageGateway::Model::DetachVolumeRequest
Definition: DetachVolumeRequest.h:25
Aws::StorageGateway::Model::DetachVolumeRequest::WithVolumeARN
DetachVolumeRequest & WithVolumeARN(const Aws::String &value)
Definition: DetachVolumeRequest.h:68
Aws::StorageGateway::Model::DetachVolumeRequest::DetachVolumeRequest
DetachVolumeRequest()
Aws::StorageGateway::Model::DetachVolumeRequest::WithVolumeARN
DetachVolumeRequest & WithVolumeARN(Aws::String &&value)
Definition: DetachVolumeRequest.h:73
Aws::StorageGateway::Model::DetachVolumeRequest::VolumeARNHasBeenSet
bool VolumeARNHasBeenSet() const
Definition: DetachVolumeRequest.h:48
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::DetachVolumeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::DetachVolumeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachVolumeRequest.h:33
Aws::StorageGateway::Model::DetachVolumeRequest::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: DetachVolumeRequest.h:53
AWSString.h
Aws::StorageGateway::Model::DetachVolumeRequest::ForceDetachHasBeenSet
bool ForceDetachHasBeenSet() const
Definition: DetachVolumeRequest.h:97
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DetachVolumeRequest::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: DetachVolumeRequest.h:63
Aws::StorageGateway::Model::DetachVolumeRequest::SetForceDetach
void SetForceDetach(bool value)
Definition: DetachVolumeRequest.h:106
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DetachVolumeRequest::GetForceDetach
bool GetForceDetach() const
Definition: DetachVolumeRequest.h:88
Aws::StorageGateway::Model::DetachVolumeRequest::WithForceDetach
DetachVolumeRequest & WithForceDetach(bool value)
Definition: DetachVolumeRequest.h:115
Aws::StorageGateway::Model::DetachVolumeRequest::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: DetachVolumeRequest.h:58
Aws::StorageGateway::Model::DetachVolumeRequest::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: DetachVolumeRequest.h:43
Aws::StorageGateway::Model::DetachVolumeRequest::SerializePayload
Aws::String SerializePayload() const override