AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeNetworkInterfaceAttributeResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/model/NetworkInterfaceAttachment.h>
9#include <aws/ec2/model/AttributeValue.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/AttributeBooleanValue.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14#include <aws/ec2/model/GroupIdentifier.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Xml
25{
26 class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace EC2
30{
31namespace Model
32{
40 {
41 public:
45
46
48
51 inline const NetworkInterfaceAttachment& GetAttachment() const { return m_attachment; }
52 template<typename AttachmentT = NetworkInterfaceAttachment>
53 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
54 template<typename AttachmentT = NetworkInterfaceAttachment>
55 DescribeNetworkInterfaceAttributeResponse& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
57
59
62 inline const AttributeValue& GetDescription() const { return m_description; }
63 template<typename DescriptionT = AttributeValue>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = AttributeValue>
66 DescribeNetworkInterfaceAttributeResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<GroupIdentifier>& GetGroups() const { return m_groups; }
74 template<typename GroupsT = Aws::Vector<GroupIdentifier>>
75 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
76 template<typename GroupsT = Aws::Vector<GroupIdentifier>>
77 DescribeNetworkInterfaceAttributeResponse& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
78 template<typename GroupsT = GroupIdentifier>
79 DescribeNetworkInterfaceAttributeResponse& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
87 template<typename NetworkInterfaceIdT = Aws::String>
88 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
89 template<typename NetworkInterfaceIdT = Aws::String>
90 DescribeNetworkInterfaceAttributeResponse& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
92
94
97 inline const AttributeBooleanValue& GetSourceDestCheck() const { return m_sourceDestCheck; }
98 template<typename SourceDestCheckT = AttributeBooleanValue>
99 void SetSourceDestCheck(SourceDestCheckT&& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = std::forward<SourceDestCheckT>(value); }
100 template<typename SourceDestCheckT = AttributeBooleanValue>
101 DescribeNetworkInterfaceAttributeResponse& WithSourceDestCheck(SourceDestCheckT&& value) { SetSourceDestCheck(std::forward<SourceDestCheckT>(value)); return *this;}
103
105
110 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
111 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
114
116
117 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
118 template<typename ResponseMetadataT = ResponseMetadata>
119 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
120 template<typename ResponseMetadataT = ResponseMetadata>
121 DescribeNetworkInterfaceAttributeResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
123 private:
124
125 NetworkInterfaceAttachment m_attachment;
126 bool m_attachmentHasBeenSet = false;
127
128 AttributeValue m_description;
129 bool m_descriptionHasBeenSet = false;
130
132 bool m_groupsHasBeenSet = false;
133
134 Aws::String m_networkInterfaceId;
135 bool m_networkInterfaceIdHasBeenSet = false;
136
137 AttributeBooleanValue m_sourceDestCheck;
138 bool m_sourceDestCheckHasBeenSet = false;
139
140 bool m_associatePublicIpAddress{false};
141 bool m_associatePublicIpAddressHasBeenSet = false;
142
143 ResponseMetadata m_responseMetadata;
144 bool m_responseMetadataHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
DescribeNetworkInterfaceAttributeResponse & WithResponseMetadata(ResponseMetadataT &&value)
DescribeNetworkInterfaceAttributeResponse & WithGroups(GroupsT &&value)
DescribeNetworkInterfaceAttributeResponse & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
DescribeNetworkInterfaceAttributeResponse & WithAttachment(AttachmentT &&value)
DescribeNetworkInterfaceAttributeResponse & AddGroups(GroupsT &&value)
DescribeNetworkInterfaceAttributeResponse & WithSourceDestCheck(SourceDestCheckT &&value)
DescribeNetworkInterfaceAttributeResponse & WithAssociatePublicIpAddress(bool value)
AWS_EC2_API DescribeNetworkInterfaceAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API DescribeNetworkInterfaceAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeNetworkInterfaceAttributeResponse & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument