AWS SDK for C++  1.9.71
AWS SDK for C++
DetachNetworkInterfaceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
47 
51  inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
52 
56  inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
57 
61  inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
62 
66  inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
67 
71  inline DetachNetworkInterfaceRequest& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
72 
76  inline DetachNetworkInterfaceRequest& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
77 
81  inline DetachNetworkInterfaceRequest& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
82 
83 
90  inline bool GetDryRun() const{ return m_dryRun; }
91 
98  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 
106  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
107 
114  inline DetachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
115 
116 
131  inline bool GetForce() const{ return m_force; }
132 
147  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
148 
163  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
164 
179  inline DetachNetworkInterfaceRequest& WithForce(bool value) { SetForce(value); return *this;}
180 
181  private:
182 
183  Aws::String m_attachmentId;
184  bool m_attachmentIdHasBeenSet;
185 
186  bool m_dryRun;
187  bool m_dryRunHasBeenSet;
188 
189  bool m_force;
190  bool m_forceHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EC2
195 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DetachNetworkInterfaceRequest::SetAttachmentId
void SetAttachmentId(const char *value)
Definition: DetachNetworkInterfaceRequest.h:66
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DetachNetworkInterfaceRequest::SetForce
void SetForce(bool value)
Definition: DetachNetworkInterfaceRequest.h:163
Aws::EC2::Model::DetachNetworkInterfaceRequest::WithAttachmentId
DetachNetworkInterfaceRequest & WithAttachmentId(const char *value)
Definition: DetachNetworkInterfaceRequest.h:81
Aws::EC2::Model::DetachNetworkInterfaceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DetachNetworkInterfaceRequest.h:98
Aws::EC2::Model::DetachNetworkInterfaceRequest::GetDryRun
bool GetDryRun() const
Definition: DetachNetworkInterfaceRequest.h:90
Aws::EC2::Model::DetachNetworkInterfaceRequest::SetDryRun
void SetDryRun(bool value)
Definition: DetachNetworkInterfaceRequest.h:106
Aws::EC2::Model::DetachNetworkInterfaceRequest::WithAttachmentId
DetachNetworkInterfaceRequest & WithAttachmentId(const Aws::String &value)
Definition: DetachNetworkInterfaceRequest.h:71
Aws::EC2::Model::DetachNetworkInterfaceRequest::WithDryRun
DetachNetworkInterfaceRequest & WithDryRun(bool value)
Definition: DetachNetworkInterfaceRequest.h:114
Aws::EC2::Model::DetachNetworkInterfaceRequest::WithForce
DetachNetworkInterfaceRequest & WithForce(bool value)
Definition: DetachNetworkInterfaceRequest.h:179
EC2Request.h
Aws::EC2::Model::DetachNetworkInterfaceRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DetachNetworkInterfaceRequest.h:147
Aws::EC2::Model::DetachNetworkInterfaceRequest::SetAttachmentId
void SetAttachmentId(Aws::String &&value)
Definition: DetachNetworkInterfaceRequest.h:61
AWSString.h
Aws::EC2::Model::DetachNetworkInterfaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachNetworkInterfaceRequest.h:34
Aws::EC2::Model::DetachNetworkInterfaceRequest::SetAttachmentId
void SetAttachmentId(const Aws::String &value)
Definition: DetachNetworkInterfaceRequest.h:56
Aws::EC2::Model::DetachNetworkInterfaceRequest
Definition: DetachNetworkInterfaceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest
DetachNetworkInterfaceRequest()
Aws::EC2::Model::DetachNetworkInterfaceRequest::AttachmentIdHasBeenSet
bool AttachmentIdHasBeenSet() const
Definition: DetachNetworkInterfaceRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DetachNetworkInterfaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DetachNetworkInterfaceRequest::GetAttachmentId
const Aws::String & GetAttachmentId() const
Definition: DetachNetworkInterfaceRequest.h:46
EC2_EXPORTS.h
Aws::EC2::Model::DetachNetworkInterfaceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DetachNetworkInterfaceRequest::WithAttachmentId
DetachNetworkInterfaceRequest & WithAttachmentId(Aws::String &&value)
Definition: DetachNetworkInterfaceRequest.h:76
Aws::EC2::Model::DetachNetworkInterfaceRequest::GetForce
bool GetForce() const
Definition: DetachNetworkInterfaceRequest.h:131