AWS SDK for C++  1.9.70
AWS SDK for C++
CreateNatGatewayResponse.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 {
30  {
31  public:
35 
36 
41  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
42 
47  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
48 
53  inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
54 
59  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
60 
65  inline CreateNatGatewayResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 
71  inline CreateNatGatewayResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
72 
77  inline CreateNatGatewayResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
78 
79 
83  inline const NatGateway& GetNatGateway() const{ return m_natGateway; }
84 
88  inline void SetNatGateway(const NatGateway& value) { m_natGateway = value; }
89 
93  inline void SetNatGateway(NatGateway&& value) { m_natGateway = std::move(value); }
94 
98  inline CreateNatGatewayResponse& WithNatGateway(const NatGateway& value) { SetNatGateway(value); return *this;}
99 
103  inline CreateNatGatewayResponse& WithNatGateway(NatGateway&& value) { SetNatGateway(std::move(value)); return *this;}
104 
105 
106 
107  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
108 
109 
110  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
111 
112 
113  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
114 
115 
116  inline CreateNatGatewayResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
117 
118 
119  inline CreateNatGatewayResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
120 
121  private:
122 
123  Aws::String m_clientToken;
124 
125  NatGateway m_natGateway;
126 
127  ResponseMetadata m_responseMetadata;
128  };
129 
130 } // namespace Model
131 } // namespace EC2
132 } // namespace Aws
NatGateway.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateNatGatewayResponse::WithNatGateway
CreateNatGatewayResponse & WithNatGateway(NatGateway &&value)
Definition: CreateNatGatewayResponse.h:103
Aws::EC2::Model::CreateNatGatewayResponse::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateNatGatewayResponse.h:41
Aws::EC2::Model::NatGateway
Definition: NatGateway.h:39
Aws::EC2::Model::CreateNatGatewayResponse::WithResponseMetadata
CreateNatGatewayResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateNatGatewayResponse.h:116
Aws::EC2::Model::CreateNatGatewayResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateNatGatewayResponse.h:113
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CreateNatGatewayResponse::SetClientToken
void SetClientToken(const char *value)
Definition: CreateNatGatewayResponse.h:59
Aws::EC2::Model::CreateNatGatewayResponse::WithResponseMetadata
CreateNatGatewayResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateNatGatewayResponse.h:119
Aws::EC2::Model::CreateNatGatewayResponse::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateNatGatewayResponse.h:53
Aws::EC2::Model::CreateNatGatewayResponse::operator=
CreateNatGatewayResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateNatGatewayResponse
Definition: CreateNatGatewayResponse.h:30
Aws::EC2::Model::CreateNatGatewayResponse::SetNatGateway
void SetNatGateway(const NatGateway &value)
Definition: CreateNatGatewayResponse.h:88
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CreateNatGatewayResponse::WithClientToken
CreateNatGatewayResponse & WithClientToken(const char *value)
Definition: CreateNatGatewayResponse.h:77
Aws::EC2::Model::CreateNatGatewayResponse::SetNatGateway
void SetNatGateway(NatGateway &&value)
Definition: CreateNatGatewayResponse.h:93
Aws::EC2::Model::CreateNatGatewayResponse::WithClientToken
CreateNatGatewayResponse & WithClientToken(Aws::String &&value)
Definition: CreateNatGatewayResponse.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNatGatewayResponse::WithClientToken
CreateNatGatewayResponse & WithClientToken(const Aws::String &value)
Definition: CreateNatGatewayResponse.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNatGatewayResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateNatGatewayResponse.h:107
Aws::EC2::Model::CreateNatGatewayResponse::WithNatGateway
CreateNatGatewayResponse & WithNatGateway(const NatGateway &value)
Definition: CreateNatGatewayResponse.h:98
Aws::EC2::Model::CreateNatGatewayResponse::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateNatGatewayResponse.h:47
EC2_EXPORTS.h
Aws::EC2::Model::CreateNatGatewayResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateNatGatewayResponse.h:110
Aws::EC2::Model::CreateNatGatewayResponse::GetNatGateway
const NatGateway & GetNatGateway() const
Definition: CreateNatGatewayResponse.h:83
Aws::EC2::Model::CreateNatGatewayResponse::CreateNatGatewayResponse
CreateNatGatewayResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateNatGatewayResponse::CreateNatGatewayResponse
CreateNatGatewayResponse()