AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetEnaSrdSpecification(const EnaSrdSpecification& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = value; }
64 inline void SetEnaSrdSpecification(EnaSrdSpecification&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::move(value); }
68
70
76 inline bool GetDryRun() const{ return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline AttachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81
83
86 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
87 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
88 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
89 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
90 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
93 inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
95
97
100 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
101 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
102 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
103 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
104 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
105 inline AttachNetworkInterfaceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
106 inline AttachNetworkInterfaceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
107 inline AttachNetworkInterfaceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
109
111
114 inline int GetDeviceIndex() const{ return m_deviceIndex; }
115 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
116 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
117 inline AttachNetworkInterfaceRequest& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
119 private:
120
121 int m_networkCardIndex;
122 bool m_networkCardIndexHasBeenSet = false;
123
124 EnaSrdSpecification m_enaSrdSpecification;
125 bool m_enaSrdSpecificationHasBeenSet = false;
126
127 bool m_dryRun;
128 bool m_dryRunHasBeenSet = false;
129
130 Aws::String m_networkInterfaceId;
131 bool m_networkInterfaceIdHasBeenSet = false;
132
133 Aws::String m_instanceId;
134 bool m_instanceIdHasBeenSet = false;
135
136 int m_deviceIndex;
137 bool m_deviceIndexHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EC2
142} // namespace Aws
AttachNetworkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AttachNetworkInterfaceRequest & WithInstanceId(const Aws::String &value)
AttachNetworkInterfaceRequest & WithInstanceId(Aws::String &&value)
AttachNetworkInterfaceRequest & WithInstanceId(const char *value)
AttachNetworkInterfaceRequest & WithDeviceIndex(int value)
virtual const char * GetServiceRequestName() const override
AttachNetworkInterfaceRequest & WithEnaSrdSpecification(const EnaSrdSpecification &value)
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(Aws::String &&value)
AttachNetworkInterfaceRequest & WithNetworkCardIndex(int value)
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetEnaSrdSpecification(const EnaSrdSpecification &value)
AttachNetworkInterfaceRequest & WithEnaSrdSpecification(EnaSrdSpecification &&value)
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String