AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteNetworkInterfaceRequest.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 DeleteNetworkInterfaceRequest() = 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 "DeleteNetworkInterface"; }
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& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
63 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
64 template <typename NetworkInterfaceIdT = Aws::String>
65 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
66 m_networkInterfaceIdHasBeenSet = true;
67 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
68 }
69 template <typename NetworkInterfaceIdT = Aws::String>
71 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
72 return *this;
73 }
75 private:
76 bool m_dryRun{false};
77
78 Aws::String m_networkInterfaceId;
79 bool m_dryRunHasBeenSet = false;
80 bool m_networkInterfaceIdHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace EC2
85} // namespace Aws
DeleteNetworkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DeleteNetworkInterfaceRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String