AWS SDK for C++  1.9.71
AWS SDK for C++
CreateNetworkInterfaceResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const NetworkInterface& GetNetworkInterface() const{ return m_networkInterface; }
46 
50  inline void SetNetworkInterface(const NetworkInterface& value) { m_networkInterface = value; }
51 
55  inline void SetNetworkInterface(NetworkInterface&& value) { m_networkInterface = std::move(value); }
56 
60  inline CreateNetworkInterfaceResponse& WithNetworkInterface(const NetworkInterface& value) { SetNetworkInterface(value); return *this;}
61 
65  inline CreateNetworkInterfaceResponse& WithNetworkInterface(NetworkInterface&& value) { SetNetworkInterface(std::move(value)); return *this;}
66 
67 
72  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 
78  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
79 
84  inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
85 
90  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
91 
96  inline CreateNetworkInterfaceResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
97 
102  inline CreateNetworkInterfaceResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
103 
108  inline CreateNetworkInterfaceResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
109 
110 
111 
112  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
113 
114 
115  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
116 
117 
118  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
119 
120 
121  inline CreateNetworkInterfaceResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
122 
123 
124  inline CreateNetworkInterfaceResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
125 
126  private:
127 
128  NetworkInterface m_networkInterface;
129 
130  Aws::String m_clientToken;
131 
132  ResponseMetadata m_responseMetadata;
133  };
134 
135 } // namespace Model
136 } // namespace EC2
137 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateNetworkInterfaceResponse.h:115
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithClientToken
CreateNetworkInterfaceResponse & WithClientToken(const char *value)
Definition: CreateNetworkInterfaceResponse.h:108
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithNetworkInterface
CreateNetworkInterfaceResponse & WithNetworkInterface(const NetworkInterface &value)
Definition: CreateNetworkInterfaceResponse.h:60
NetworkInterface.h
Aws::EC2::Model::CreateNetworkInterfaceResponse::GetNetworkInterface
const NetworkInterface & GetNetworkInterface() const
Definition: CreateNetworkInterfaceResponse.h:45
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithClientToken
CreateNetworkInterfaceResponse & WithClientToken(Aws::String &&value)
Definition: CreateNetworkInterfaceResponse.h:102
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateNetworkInterfaceResponse.h:84
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithClientToken
CreateNetworkInterfaceResponse & WithClientToken(const Aws::String &value)
Definition: CreateNetworkInterfaceResponse.h:96
Aws::EC2::Model::CreateNetworkInterfaceResponse::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateNetworkInterfaceResponse.h:72
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithResponseMetadata
CreateNetworkInterfaceResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateNetworkInterfaceResponse.h:124
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetNetworkInterface
void SetNetworkInterface(NetworkInterface &&value)
Definition: CreateNetworkInterfaceResponse.h:55
Aws::EC2::Model::CreateNetworkInterfaceResponse::CreateNetworkInterfaceResponse
CreateNetworkInterfaceResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateNetworkInterfaceResponse.h:118
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CreateNetworkInterfaceResponse::CreateNetworkInterfaceResponse
CreateNetworkInterfaceResponse()
AWSString.h
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetClientToken
void SetClientToken(const char *value)
Definition: CreateNetworkInterfaceResponse.h:90
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithNetworkInterface
CreateNetworkInterfaceResponse & WithNetworkInterface(NetworkInterface &&value)
Definition: CreateNetworkInterfaceResponse.h:65
Aws::EC2::Model::CreateNetworkInterfaceResponse
Definition: CreateNetworkInterfaceResponse.h:35
Aws::EC2::Model::CreateNetworkInterfaceResponse::operator=
CreateNetworkInterfaceResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetNetworkInterface
void SetNetworkInterface(const NetworkInterface &value)
Definition: CreateNetworkInterfaceResponse.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNetworkInterfaceResponse::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateNetworkInterfaceResponse.h:78
Aws::EC2::Model::CreateNetworkInterfaceResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateNetworkInterfaceResponse.h:112
Aws::EC2::Model::NetworkInterface
Definition: NetworkInterface.h:43
Aws::EC2::Model::CreateNetworkInterfaceResponse::WithResponseMetadata
CreateNetworkInterfaceResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateNetworkInterfaceResponse.h:121
EC2_EXPORTS.h