AWS SDK for C++  1.9.68
AWS SDK for C++
ModifyNetworkInterfaceAttributeRequest.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>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ModifyNetworkInterfaceAttribute"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
51  inline const NetworkInterfaceAttachmentChanges& GetAttachment() const{ return m_attachment; }
52 
57  inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
58 
63  inline void SetAttachment(const NetworkInterfaceAttachmentChanges& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
64 
69  inline void SetAttachment(NetworkInterfaceAttachmentChanges&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
70 
75  inline ModifyNetworkInterfaceAttributeRequest& WithAttachment(const NetworkInterfaceAttachmentChanges& value) { SetAttachment(value); return *this;}
76 
81  inline ModifyNetworkInterfaceAttributeRequest& WithAttachment(NetworkInterfaceAttachmentChanges&& value) { SetAttachment(std::move(value)); return *this;}
82 
83 
87  inline const AttributeValue& GetDescription() const{ return m_description; }
88 
92  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 
97  inline void SetDescription(const AttributeValue& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 
102  inline void SetDescription(AttributeValue&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
103 
107  inline ModifyNetworkInterfaceAttributeRequest& WithDescription(const AttributeValue& value) { SetDescription(value); return *this;}
108 
112  inline ModifyNetworkInterfaceAttributeRequest& WithDescription(AttributeValue&& value) { SetDescription(std::move(value)); return *this;}
113 
114 
121  inline bool GetDryRun() const{ return m_dryRun; }
122 
129  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
130 
137  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
138 
145  inline ModifyNetworkInterfaceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
146 
147 
154  inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
155 
162  inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
163 
170  inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
171 
178  inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
179 
186  inline ModifyNetworkInterfaceAttributeRequest& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
187 
194  inline ModifyNetworkInterfaceAttributeRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
195 
202  inline ModifyNetworkInterfaceAttributeRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
203 
210  inline ModifyNetworkInterfaceAttributeRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
211 
218  inline ModifyNetworkInterfaceAttributeRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
219 
220 
224  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
225 
229  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
230 
234  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
235 
239  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
240 
244  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
245 
249  inline ModifyNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
250 
254  inline ModifyNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
255 
259  inline ModifyNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
260 
261 
270  inline const AttributeBooleanValue& GetSourceDestCheck() const{ return m_sourceDestCheck; }
271 
280  inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
281 
290  inline void SetSourceDestCheck(const AttributeBooleanValue& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
291 
300  inline void SetSourceDestCheck(AttributeBooleanValue&& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = std::move(value); }
301 
310  inline ModifyNetworkInterfaceAttributeRequest& WithSourceDestCheck(const AttributeBooleanValue& value) { SetSourceDestCheck(value); return *this;}
311 
320  inline ModifyNetworkInterfaceAttributeRequest& WithSourceDestCheck(AttributeBooleanValue&& value) { SetSourceDestCheck(std::move(value)); return *this;}
321 
322  private:
323 
325  bool m_attachmentHasBeenSet;
326 
327  AttributeValue m_description;
328  bool m_descriptionHasBeenSet;
329 
330  bool m_dryRun;
331  bool m_dryRunHasBeenSet;
332 
333  Aws::Vector<Aws::String> m_groups;
334  bool m_groupsHasBeenSet;
335 
336  Aws::String m_networkInterfaceId;
337  bool m_networkInterfaceIdHasBeenSet;
338 
339  AttributeBooleanValue m_sourceDestCheck;
340  bool m_sourceDestCheckHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace EC2
345 } // namespace Aws
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:129
AttributeBooleanValue.h
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GroupsHasBeenSet
bool GroupsHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:162
AttributeValue.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:92
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:229
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:254
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:234
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetAttachment
void SetAttachment(NetworkInterfaceAttachmentChanges &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:69
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest
ModifyNetworkInterfaceAttributeRequest()
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetGroups
void SetGroups(Aws::Vector< Aws::String > &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:178
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest
Definition: ModifyNetworkInterfaceAttributeRequest.h:30
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:224
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetGroups
const Aws::Vector< Aws::String > & GetGroups() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:154
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::AddGroups
ModifyNetworkInterfaceAttributeRequest & AddGroups(Aws::String &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:210
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:239
AWSVector.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithSourceDestCheck
ModifyNetworkInterfaceAttributeRequest & WithSourceDestCheck(const AttributeBooleanValue &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:310
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetAttachment
const NetworkInterfaceAttachmentChanges & GetAttachment() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:51
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::AddGroups
ModifyNetworkInterfaceAttributeRequest & AddGroups(const char *value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:218
Aws::EC2::Model::AttributeValue
Definition: AttributeValue.h:33
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithDescription
ModifyNetworkInterfaceAttributeRequest & WithDescription(AttributeValue &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:112
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithDescription
ModifyNetworkInterfaceAttributeRequest & WithDescription(const AttributeValue &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:107
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetSourceDestCheck
void SetSourceDestCheck(AttributeBooleanValue &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:300
Aws::EC2::Model::NetworkInterfaceAttachmentChanges
Definition: NetworkInterfaceAttachmentChanges.h:32
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::AddGroups
ModifyNetworkInterfaceAttributeRequest & AddGroups(const Aws::String &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:202
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetSourceDestCheck
const AttributeBooleanValue & GetSourceDestCheck() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:270
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithGroups
ModifyNetworkInterfaceAttributeRequest & WithGroups(Aws::Vector< Aws::String > &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:194
AWSString.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:244
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SourceDestCheckHasBeenSet
bool SourceDestCheckHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:280
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithSourceDestCheck
ModifyNetworkInterfaceAttributeRequest & WithSourceDestCheck(AttributeBooleanValue &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:320
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetDescription
void SetDescription(AttributeValue &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:102
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithAttachment
ModifyNetworkInterfaceAttributeRequest & WithAttachment(NetworkInterfaceAttachmentChanges &&value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:81
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:137
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetDescription
const AttributeValue & GetDescription() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:87
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetDescription
void SetDescription(const AttributeValue &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:97
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:121
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithDryRun
ModifyNetworkInterfaceAttributeRequest & WithDryRun(bool value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:145
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyNetworkInterfaceAttributeRequest.h:38
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetGroups
void SetGroups(const Aws::Vector< Aws::String > &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithAttachment
ModifyNetworkInterfaceAttributeRequest & WithAttachment(const NetworkInterfaceAttachmentChanges &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:75
NetworkInterfaceAttachmentChanges.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:249
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetAttachment
void SetAttachment(const NetworkInterfaceAttachmentChanges &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:63
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ModifyNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const char *value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:259
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::SetSourceDestCheck
void SetSourceDestCheck(const AttributeBooleanValue &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:290
EC2_EXPORTS.h
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::WithGroups
ModifyNetworkInterfaceAttributeRequest & WithGroups(const Aws::Vector< Aws::String > &value)
Definition: ModifyNetworkInterfaceAttributeRequest.h:186
Aws::EC2::Model::ModifyNetworkInterfaceAttributeRequest::AttachmentHasBeenSet
bool AttachmentHasBeenSet() const
Definition: ModifyNetworkInterfaceAttributeRequest.h:57