AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AttachNetworkInterfaceResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
30 public:
31 AWS_EC2_API AttachNetworkInterfaceResponse() = default;
34
36
39 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
40 template <typename AttachmentIdT = Aws::String>
41 void SetAttachmentId(AttachmentIdT&& value) {
42 m_attachmentIdHasBeenSet = true;
43 m_attachmentId = std::forward<AttachmentIdT>(value);
44 }
45 template <typename AttachmentIdT = Aws::String>
47 SetAttachmentId(std::forward<AttachmentIdT>(value));
48 return *this;
49 }
51
53
56 inline int GetNetworkCardIndex() const { return m_networkCardIndex; }
57 inline void SetNetworkCardIndex(int value) {
58 m_networkCardIndexHasBeenSet = true;
59 m_networkCardIndex = value;
60 }
63 return *this;
64 }
66
68
69 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
70 template <typename ResponseMetadataT = ResponseMetadata>
71 void SetResponseMetadata(ResponseMetadataT&& value) {
72 m_responseMetadataHasBeenSet = true;
73 m_responseMetadata = std::forward<ResponseMetadataT>(value);
74 }
75 template <typename ResponseMetadataT = ResponseMetadata>
77 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_attachmentId;
83
84 int m_networkCardIndex{0};
85
86 ResponseMetadata m_responseMetadata;
87 bool m_attachmentIdHasBeenSet = false;
88 bool m_networkCardIndexHasBeenSet = false;
89 bool m_responseMetadataHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
AttachNetworkInterfaceResponse & WithResponseMetadata(ResponseMetadataT &&value)
AttachNetworkInterfaceResponse & WithNetworkCardIndex(int value)
AWS_EC2_API AttachNetworkInterfaceResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AttachNetworkInterfaceResponse & WithAttachmentId(AttachmentIdT &&value)
AWS_EC2_API AttachNetworkInterfaceResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument