AWS SDK for C++  1.9.69
AWS SDK for C++
MoveAddressToVpcResponse.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& GetAllocationId() const{ return m_allocationId; }
41 
45  inline void SetAllocationId(const Aws::String& value) { m_allocationId = value; }
46 
50  inline void SetAllocationId(Aws::String&& value) { m_allocationId = std::move(value); }
51 
55  inline void SetAllocationId(const char* value) { m_allocationId.assign(value); }
56 
60  inline MoveAddressToVpcResponse& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
61 
65  inline MoveAddressToVpcResponse& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
66 
70  inline MoveAddressToVpcResponse& WithAllocationId(const char* value) { SetAllocationId(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 MoveAddressToVpcResponse& WithStatus(const Status& value) { SetStatus(value); return *this;}
92 
96  inline MoveAddressToVpcResponse& 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 MoveAddressToVpcResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
110 
111 
112  inline MoveAddressToVpcResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_allocationId;
117 
118  Status m_status;
119 
120  ResponseMetadata m_responseMetadata;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::MoveAddressToVpcResponse::SetAllocationId
void SetAllocationId(const char *value)
Definition: MoveAddressToVpcResponse.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::MoveAddressToVpcResponse::WithAllocationId
MoveAddressToVpcResponse & WithAllocationId(const char *value)
Definition: MoveAddressToVpcResponse.h:70
Aws::EC2::Model::MoveAddressToVpcResponse::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: MoveAddressToVpcResponse.h:45
Aws::EC2::Model::MoveAddressToVpcResponse::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: MoveAddressToVpcResponse.h:40
Aws::EC2::Model::MoveAddressToVpcResponse::WithResponseMetadata
MoveAddressToVpcResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: MoveAddressToVpcResponse.h:112
Aws::EC2::Model::MoveAddressToVpcResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: MoveAddressToVpcResponse.h:100
Status.h
Aws::EC2::Model::MoveAddressToVpcResponse::MoveAddressToVpcResponse
MoveAddressToVpcResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::MoveAddressToVpcResponse::SetStatus
void SetStatus(Status &&value)
Definition: MoveAddressToVpcResponse.h:86
ResponseMetadata.h
Aws::EC2::Model::MoveAddressToVpcResponse::WithAllocationId
MoveAddressToVpcResponse & WithAllocationId(Aws::String &&value)
Definition: MoveAddressToVpcResponse.h:65
Aws::EC2::Model::MoveAddressToVpcResponse::operator=
MoveAddressToVpcResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::MoveAddressToVpcResponse::GetStatus
const Status & GetStatus() const
Definition: MoveAddressToVpcResponse.h:76
Aws::EC2::Model::MoveAddressToVpcResponse::MoveAddressToVpcResponse
MoveAddressToVpcResponse()
Aws::EC2::Model::MoveAddressToVpcResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: MoveAddressToVpcResponse.h:106
Aws::EC2::Model::MoveAddressToVpcResponse::WithAllocationId
MoveAddressToVpcResponse & WithAllocationId(const Aws::String &value)
Definition: MoveAddressToVpcResponse.h:60
Aws::EC2::Model::MoveAddressToVpcResponse::WithStatus
MoveAddressToVpcResponse & WithStatus(const Status &value)
Definition: MoveAddressToVpcResponse.h:91
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::MoveAddressToVpcResponse
Definition: MoveAddressToVpcResponse.h:30
Aws::EC2::Model::MoveAddressToVpcResponse::SetStatus
void SetStatus(const Status &value)
Definition: MoveAddressToVpcResponse.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::MoveAddressToVpcResponse::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: MoveAddressToVpcResponse.h:50
Aws::EC2::Model::MoveAddressToVpcResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: MoveAddressToVpcResponse.h:103
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
EC2_EXPORTS.h
Aws::EC2::Model::MoveAddressToVpcResponse::WithStatus
MoveAddressToVpcResponse & WithStatus(Status &&value)
Definition: MoveAddressToVpcResponse.h:96
Aws::EC2::Model::MoveAddressToVpcResponse::WithResponseMetadata
MoveAddressToVpcResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: MoveAddressToVpcResponse.h:109