AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyNetworkInterfaceAttributeRequest.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/ec2/model/ConnectionTrackingSpecificationRequest.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/AttributeValue.h>
13#include <aws/ec2/model/AttributeBooleanValue.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/NetworkInterfaceAttachmentChanges.h>
16#include <utility>
17
18namespace Aws
19{
20namespace EC2
21{
22namespace Model
23{
24
32 {
33 public:
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "ModifyNetworkInterfaceAttribute"; }
41
42 AWS_EC2_API Aws::String SerializePayload() const override;
43
44 protected:
45 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46
47 public:
48
50
54 inline const EnaSrdSpecification& GetEnaSrdSpecification() const{ return m_enaSrdSpecification; }
55 inline bool EnaSrdSpecificationHasBeenSet() const { return m_enaSrdSpecificationHasBeenSet; }
56 inline void SetEnaSrdSpecification(const EnaSrdSpecification& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = value; }
57 inline void SetEnaSrdSpecification(EnaSrdSpecification&& value) { m_enaSrdSpecificationHasBeenSet = true; m_enaSrdSpecification = std::move(value); }
61
63
78 inline bool GetEnablePrimaryIpv6() const{ return m_enablePrimaryIpv6; }
79 inline bool EnablePrimaryIpv6HasBeenSet() const { return m_enablePrimaryIpv6HasBeenSet; }
80 inline void SetEnablePrimaryIpv6(bool value) { m_enablePrimaryIpv6HasBeenSet = true; m_enablePrimaryIpv6 = value; }
83
85
88 inline const ConnectionTrackingSpecificationRequest& GetConnectionTrackingSpecification() const{ return m_connectionTrackingSpecification; }
89 inline bool ConnectionTrackingSpecificationHasBeenSet() const { return m_connectionTrackingSpecificationHasBeenSet; }
90 inline void SetConnectionTrackingSpecification(const ConnectionTrackingSpecificationRequest& value) { m_connectionTrackingSpecificationHasBeenSet = true; m_connectionTrackingSpecification = value; }
91 inline void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest&& value) { m_connectionTrackingSpecificationHasBeenSet = true; m_connectionTrackingSpecification = std::move(value); }
95
97
102 inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
103 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
104 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
107
109
115 inline bool GetDryRun() const{ return m_dryRun; }
116 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
117 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
118 inline ModifyNetworkInterfaceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
120
122
125 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
126 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
127 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
128 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
129 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
134
136
139 inline const AttributeValue& GetDescription() const{ return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 inline void SetDescription(const AttributeValue& value) { m_descriptionHasBeenSet = true; m_description = value; }
142 inline void SetDescription(AttributeValue&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
144 inline ModifyNetworkInterfaceAttributeRequest& WithDescription(AttributeValue&& value) { SetDescription(std::move(value)); return *this;}
146
148
156 inline const AttributeBooleanValue& GetSourceDestCheck() const{ return m_sourceDestCheck; }
157 inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
158 inline void SetSourceDestCheck(const AttributeBooleanValue& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
159 inline void SetSourceDestCheck(AttributeBooleanValue&& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = std::move(value); }
163
165
171 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
172 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
173 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
174 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
176 inline ModifyNetworkInterfaceAttributeRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
177 inline ModifyNetworkInterfaceAttributeRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
178 inline ModifyNetworkInterfaceAttributeRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
179 inline ModifyNetworkInterfaceAttributeRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
181
183
188 inline const NetworkInterfaceAttachmentChanges& GetAttachment() const{ return m_attachment; }
189 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
190 inline void SetAttachment(const NetworkInterfaceAttachmentChanges& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
191 inline void SetAttachment(NetworkInterfaceAttachmentChanges&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
195 private:
196
197 EnaSrdSpecification m_enaSrdSpecification;
198 bool m_enaSrdSpecificationHasBeenSet = false;
199
200 bool m_enablePrimaryIpv6;
201 bool m_enablePrimaryIpv6HasBeenSet = false;
202
203 ConnectionTrackingSpecificationRequest m_connectionTrackingSpecification;
204 bool m_connectionTrackingSpecificationHasBeenSet = false;
205
206 bool m_associatePublicIpAddress;
207 bool m_associatePublicIpAddressHasBeenSet = false;
208
209 bool m_dryRun;
210 bool m_dryRunHasBeenSet = false;
211
212 Aws::String m_networkInterfaceId;
213 bool m_networkInterfaceIdHasBeenSet = false;
214
215 AttributeValue m_description;
216 bool m_descriptionHasBeenSet = false;
217
218 AttributeBooleanValue m_sourceDestCheck;
219 bool m_sourceDestCheckHasBeenSet = false;
220
222 bool m_groupsHasBeenSet = false;
223
225 bool m_attachmentHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace EC2
230} // namespace Aws
ModifyNetworkInterfaceAttributeRequest & AddGroups(const Aws::String &value)
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(Aws::String &&value)
void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest &&value)
void SetAttachment(const NetworkInterfaceAttachmentChanges &value)
ModifyNetworkInterfaceAttributeRequest & WithGroups(const Aws::Vector< Aws::String > &value)
ModifyNetworkInterfaceAttributeRequest & WithSourceDestCheck(const AttributeBooleanValue &value)
ModifyNetworkInterfaceAttributeRequest & WithDescription(const AttributeValue &value)
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const Aws::String &value)
ModifyNetworkInterfaceAttributeRequest & WithEnaSrdSpecification(const EnaSrdSpecification &value)
ModifyNetworkInterfaceAttributeRequest & AddGroups(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyNetworkInterfaceAttributeRequest & WithDryRun(bool value)
ModifyNetworkInterfaceAttributeRequest & WithAssociatePublicIpAddress(bool value)
ModifyNetworkInterfaceAttributeRequest & WithAttachment(NetworkInterfaceAttachmentChanges &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyNetworkInterfaceAttributeRequest & WithDescription(AttributeValue &&value)
ModifyNetworkInterfaceAttributeRequest & WithSourceDestCheck(AttributeBooleanValue &&value)
ModifyNetworkInterfaceAttributeRequest & WithConnectionTrackingSpecification(const ConnectionTrackingSpecificationRequest &value)
void SetConnectionTrackingSpecification(const ConnectionTrackingSpecificationRequest &value)
ModifyNetworkInterfaceAttributeRequest & WithEnablePrimaryIpv6(bool value)
ModifyNetworkInterfaceAttributeRequest & WithEnaSrdSpecification(EnaSrdSpecification &&value)
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const char *value)
ModifyNetworkInterfaceAttributeRequest & WithConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest &&value)
ModifyNetworkInterfaceAttributeRequest & WithAttachment(const NetworkInterfaceAttachmentChanges &value)
ModifyNetworkInterfaceAttributeRequest & WithGroups(Aws::Vector< Aws::String > &&value)
ModifyNetworkInterfaceAttributeRequest & AddGroups(Aws::String &&value)
const ConnectionTrackingSpecificationRequest & GetConnectionTrackingSpecification() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector