AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DetachNetworkInterfaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
24 public:
25 AWS_EC2_API DetachNetworkInterfaceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DetachNetworkInterface"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
53 SetDryRun(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
63 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
64 template <typename AttachmentIdT = Aws::String>
65 void SetAttachmentId(AttachmentIdT&& value) {
66 m_attachmentIdHasBeenSet = true;
67 m_attachmentId = std::forward<AttachmentIdT>(value);
68 }
69 template <typename AttachmentIdT = Aws::String>
71 SetAttachmentId(std::forward<AttachmentIdT>(value));
72 return *this;
73 }
75
77
91 inline bool GetForce() const { return m_force; }
92 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
93 inline void SetForce(bool value) {
94 m_forceHasBeenSet = true;
95 m_force = value;
96 }
98 SetForce(value);
99 return *this;
100 }
102 private:
103 bool m_dryRun{false};
104
105 Aws::String m_attachmentId;
106
107 bool m_force{false};
108 bool m_dryRunHasBeenSet = false;
109 bool m_attachmentIdHasBeenSet = false;
110 bool m_forceHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EC2
115} // 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