AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AttachNetworkInterfaceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/EnaSrdSpecification.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_EC2_API AttachNetworkInterfaceRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AttachNetworkInterface"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
50 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
51 inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
52 inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
55
57
61 inline const EnaSrdSpecification& GetEnaSrdSpecification() const { return m_enaSrdSpecification; }
62 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
63 template<typename EnaSrdSpecificationT = EnaSrdSpecification>
64 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value); }
65 template<typename EnaSrdSpecificationT = EnaSrdSpecification>
66 AttachNetworkInterfaceRequest& WithEnaSrdSpecification(EnaSrdSpecificationT&& value) { SetEnaSrdSpecification(std::forward<EnaSrdSpecificationT>(value)); return *this;}
68
70
73 inline int GetEnaQueueCount() const { return m_enaQueueCount; }
74 inline bool EnaQueueCountHasBeenSet() const { return m_enaQueueCountHasBeenSet; }
75 inline void SetEnaQueueCount(int value) { m_enaQueueCountHasBeenSet = true; m_enaQueueCount = value; }
76 inline AttachNetworkInterfaceRequest& WithEnaQueueCount(int value) { SetEnaQueueCount(value); return *this;}
78
80
86 inline bool GetDryRun() const { return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
89 inline AttachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
91
93
96 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
97 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
98 template<typename NetworkInterfaceIdT = Aws::String>
99 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
100 template<typename NetworkInterfaceIdT = Aws::String>
101 AttachNetworkInterfaceRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
103
105
108 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
109 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
110 template<typename InstanceIdT = Aws::String>
111 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
112 template<typename InstanceIdT = Aws::String>
113 AttachNetworkInterfaceRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
115
117
120 inline int GetDeviceIndex() const { return m_deviceIndex; }
121 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
122 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
123 inline AttachNetworkInterfaceRequest& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
125 private:
126
127 int m_networkCardIndex{0};
128 bool m_networkCardIndexHasBeenSet = false;
129
130 EnaSrdSpecification m_enaSrdSpecification;
131 bool m_enaSrdSpecificationHasBeenSet = false;
132
133 int m_enaQueueCount{0};
134 bool m_enaQueueCountHasBeenSet = false;
135
136 bool m_dryRun{false};
137 bool m_dryRunHasBeenSet = false;
138
139 Aws::String m_networkInterfaceId;
140 bool m_networkInterfaceIdHasBeenSet = false;
141
142 Aws::String m_instanceId;
143 bool m_instanceIdHasBeenSet = false;
144
145 int m_deviceIndex{0};
146 bool m_deviceIndexHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
AttachNetworkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
AttachNetworkInterfaceRequest & WithDeviceIndex(int value)
virtual const char * GetServiceRequestName() const override
AttachNetworkInterfaceRequest & WithEnaQueueCount(int value)
AttachNetworkInterfaceRequest & WithInstanceId(InstanceIdT &&value)
AttachNetworkInterfaceRequest & WithNetworkCardIndex(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AttachNetworkInterfaceRequest & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String