AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetachNetworkInterfaceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_EC2_API DetachNetworkInterfaceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DetachNetworkInterface"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const { return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline DetachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
61 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
62 template<typename AttachmentIdT = Aws::String>
63 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
64 template<typename AttachmentIdT = Aws::String>
65 DetachNetworkInterfaceRequest& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
67
69
83 inline bool GetForce() const { return m_force; }
84 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
85 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
86 inline DetachNetworkInterfaceRequest& WithForce(bool value) { SetForce(value); return *this;}
88 private:
89
90 bool m_dryRun{false};
91 bool m_dryRunHasBeenSet = false;
92
93 Aws::String m_attachmentId;
94 bool m_attachmentIdHasBeenSet = false;
95
96 bool m_force{false};
97 bool m_forceHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DetachNetworkInterfaceRequest & WithForce(bool value)
virtual const char * GetServiceRequestName() const override
DetachNetworkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DetachNetworkInterfaceRequest & WithAttachmentId(AttachmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String