AWS SDK for C++  1.9.70
AWS SDK for C++
DescribeNetworkInterfaceAttributeRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace 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 "DescribeNetworkInterfaceAttribute"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const NetworkInterfaceAttribute& GetAttribute() const{ return m_attribute; }
48 
52  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
53 
57  inline void SetAttribute(const NetworkInterfaceAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
58 
62  inline void SetAttribute(NetworkInterfaceAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
63 
67  inline DescribeNetworkInterfaceAttributeRequest& WithAttribute(const NetworkInterfaceAttribute& value) { SetAttribute(value); return *this;}
68 
72  inline DescribeNetworkInterfaceAttributeRequest& WithAttribute(NetworkInterfaceAttribute&& value) { SetAttribute(std::move(value)); return *this;}
73 
74 
81  inline bool GetDryRun() const{ return m_dryRun; }
82 
89  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
90 
97  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
98 
105  inline DescribeNetworkInterfaceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
106 
107 
111  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
112 
116  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
117 
121  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
122 
126  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
127 
131  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
132 
136  inline DescribeNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
137 
141  inline DescribeNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
142 
146  inline DescribeNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
147 
148  private:
149 
150  NetworkInterfaceAttribute m_attribute;
151  bool m_attributeHasBeenSet;
152 
153  bool m_dryRun;
154  bool m_dryRunHasBeenSet;
155 
156  Aws::String m_networkInterfaceId;
157  bool m_networkInterfaceIdHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace EC2
162 } // namespace Aws
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithAttribute
DescribeNetworkInterfaceAttributeRequest & WithAttribute(const NetworkInterfaceAttribute &value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:67
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::GetAttribute
const NetworkInterfaceAttribute & GetAttribute() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:47
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetAttribute
void SetAttribute(const NetworkInterfaceAttribute &value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:57
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:121
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:97
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:131
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
DescribeNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:136
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:126
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:116
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithAttribute
DescribeNetworkInterfaceAttributeRequest & WithAttribute(NetworkInterfaceAttribute &&value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:72
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:81
NetworkInterfaceAttribute.h
EC2Request.h
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::SetAttribute
void SetAttribute(NetworkInterfaceAttribute &&value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:62
AWSString.h
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest
Definition: DescribeNetworkInterfaceAttributeRequest.h:27
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeNetworkInterfaceAttributeRequest.h:35
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:111
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
DescribeNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const char *value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:146
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInterfaceAttribute
NetworkInterfaceAttribute
Definition: NetworkInterfaceAttribute.h:17
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::DescribeNetworkInterfaceAttributeRequest
DescribeNetworkInterfaceAttributeRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithDryRun
DescribeNetworkInterfaceAttributeRequest & WithDryRun(bool value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:105
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
DescribeNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: DescribeNetworkInterfaceAttributeRequest.h:141
Aws::EC2::Model::DescribeNetworkInterfaceAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeNetworkInterfaceAttributeRequest.h:89
EC2_EXPORTS.h