AWS SDK for C++  1.9.123
AWS SDK for C++
RestoreAddressToClassicResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 #include <aws/ec2/model/Status.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 
40  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
41 
45  inline void SetPublicIp(const Aws::String& value) { m_publicIp = value; }
46 
50  inline void SetPublicIp(Aws::String&& value) { m_publicIp = std::move(value); }
51 
55  inline void SetPublicIp(const char* value) { m_publicIp.assign(value); }
56 
60  inline RestoreAddressToClassicResponse& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
61 
65  inline RestoreAddressToClassicResponse& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
66 
70  inline RestoreAddressToClassicResponse& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
71 
72 
76  inline const Status& GetStatus() const{ return m_status; }
77 
81  inline void SetStatus(const Status& value) { m_status = value; }
82 
86  inline void SetStatus(Status&& value) { m_status = std::move(value); }
87 
91  inline RestoreAddressToClassicResponse& WithStatus(const Status& value) { SetStatus(value); return *this;}
92 
96  inline RestoreAddressToClassicResponse& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
97 
98 
99 
100  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
101 
102 
103  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
104 
105 
106  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
107 
108 
109  inline RestoreAddressToClassicResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
110 
111 
112  inline RestoreAddressToClassicResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_publicIp;
117 
118  Status m_status;
119 
120  ResponseMetadata m_responseMetadata;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::RestoreAddressToClassicResponse::WithResponseMetadata
RestoreAddressToClassicResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: RestoreAddressToClassicResponse.h:112
Aws::EC2::Model::RestoreAddressToClassicResponse::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: RestoreAddressToClassicResponse.h:40
Aws::EC2::Model::RestoreAddressToClassicResponse
Definition: RestoreAddressToClassicResponse.h:30
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::RestoreAddressToClassicResponse::WithPublicIp
RestoreAddressToClassicResponse & WithPublicIp(Aws::String &&value)
Definition: RestoreAddressToClassicResponse.h:65
Aws::EC2::Model::RestoreAddressToClassicResponse::WithPublicIp
RestoreAddressToClassicResponse & WithPublicIp(const char *value)
Definition: RestoreAddressToClassicResponse.h:70
Status.h
Aws::EC2::Model::RestoreAddressToClassicResponse::RestoreAddressToClassicResponse
RestoreAddressToClassicResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::RestoreAddressToClassicResponse::WithPublicIp
RestoreAddressToClassicResponse & WithPublicIp(const Aws::String &value)
Definition: RestoreAddressToClassicResponse.h:60
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::RestoreAddressToClassicResponse::WithStatus
RestoreAddressToClassicResponse & WithStatus(Status &&value)
Definition: RestoreAddressToClassicResponse.h:96
Aws::EC2::Model::RestoreAddressToClassicResponse::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: RestoreAddressToClassicResponse.h:45
Aws::EC2::Model::RestoreAddressToClassicResponse::SetStatus
void SetStatus(const Status &value)
Definition: RestoreAddressToClassicResponse.h:81
Aws::EC2::Model::RestoreAddressToClassicResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: RestoreAddressToClassicResponse.h:106
Aws::EC2::Model::RestoreAddressToClassicResponse::RestoreAddressToClassicResponse
RestoreAddressToClassicResponse()
Aws::EC2::Model::RestoreAddressToClassicResponse::SetPublicIp
void SetPublicIp(const char *value)
Definition: RestoreAddressToClassicResponse.h:55
Aws::EC2::Model::RestoreAddressToClassicResponse::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: RestoreAddressToClassicResponse.h:50
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::RestoreAddressToClassicResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: RestoreAddressToClassicResponse.h:103
Aws::EC2::Model::RestoreAddressToClassicResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: RestoreAddressToClassicResponse.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RestoreAddressToClassicResponse::operator=
RestoreAddressToClassicResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::Status
Status
Definition: Status.h:17
Aws::EC2::Model::RestoreAddressToClassicResponse::SetStatus
void SetStatus(Status &&value)
Definition: RestoreAddressToClassicResponse.h:86
Aws::EC2::Model::RestoreAddressToClassicResponse::GetStatus
const Status & GetStatus() const
Definition: RestoreAddressToClassicResponse.h:76
EC2_EXPORTS.h
Aws::EC2::Model::RestoreAddressToClassicResponse::WithResponseMetadata
RestoreAddressToClassicResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: RestoreAddressToClassicResponse.h:109
Aws::EC2::Model::RestoreAddressToClassicResponse::WithStatus
RestoreAddressToClassicResponse & WithStatus(const Status &value)
Definition: RestoreAddressToClassicResponse.h:91