AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeNetworkInterfaceAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/NetworkInterfaceAttribute.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 "DescribeNetworkInterfaceAttribute"; }
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
51 inline bool GetDryRun() const { return m_dryRun; }
52 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
53 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 inline DescribeNetworkInterfaceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
56
58
61 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
62 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
63 template<typename NetworkInterfaceIdT = Aws::String>
64 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
65 template<typename NetworkInterfaceIdT = Aws::String>
66 DescribeNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
68
70
73 inline NetworkInterfaceAttribute GetAttribute() const { return m_attribute; }
74 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
75 inline void SetAttribute(NetworkInterfaceAttribute value) { m_attributeHasBeenSet = true; m_attribute = value; }
78 private:
79
80 bool m_dryRun{false};
81 bool m_dryRunHasBeenSet = false;
82
83 Aws::String m_networkInterfaceId;
84 bool m_networkInterfaceIdHasBeenSet = false;
85
87 bool m_attributeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeNetworkInterfaceAttributeRequest & WithAttribute(NetworkInterfaceAttribute value)
DescribeNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
DescribeNetworkInterfaceAttributeRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String