AWS SDK for C++  1.9.123
AWS SDK for C++
DescribeAddressesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <aws/ec2/model/Address.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::Vector<Address>& GetAddresses() const{ return m_addresses; }
41 
45  inline void SetAddresses(const Aws::Vector<Address>& value) { m_addresses = value; }
46 
50  inline void SetAddresses(Aws::Vector<Address>&& value) { m_addresses = std::move(value); }
51 
55  inline DescribeAddressesResponse& WithAddresses(const Aws::Vector<Address>& value) { SetAddresses(value); return *this;}
56 
60  inline DescribeAddressesResponse& WithAddresses(Aws::Vector<Address>&& value) { SetAddresses(std::move(value)); return *this;}
61 
65  inline DescribeAddressesResponse& AddAddresses(const Address& value) { m_addresses.push_back(value); return *this; }
66 
70  inline DescribeAddressesResponse& AddAddresses(Address&& value) { m_addresses.push_back(std::move(value)); return *this; }
71 
72 
73 
74  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
75 
76 
77  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
78 
79 
80  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
81 
82 
83  inline DescribeAddressesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
84 
85 
86  inline DescribeAddressesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
87 
88  private:
89 
90  Aws::Vector<Address> m_addresses;
91 
92  ResponseMetadata m_responseMetadata;
93  };
94 
95 } // namespace Model
96 } // namespace EC2
97 } // namespace Aws
Aws::EC2::Model::DescribeAddressesResponse::WithAddresses
DescribeAddressesResponse & WithAddresses(const Aws::Vector< Address > &value)
Definition: DescribeAddressesResponse.h:55
Aws::EC2::Model::DescribeAddressesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeAddressesResponse.h:74
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeAddressesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeAddressesResponse.h:80
Aws::EC2::Model::DescribeAddressesResponse::SetAddresses
void SetAddresses(const Aws::Vector< Address > &value)
Definition: DescribeAddressesResponse.h:45
Aws::EC2::Model::DescribeAddressesResponse::AddAddresses
DescribeAddressesResponse & AddAddresses(Address &&value)
Definition: DescribeAddressesResponse.h:70
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeAddressesResponse::DescribeAddressesResponse
DescribeAddressesResponse()
AWSVector.h
Aws::EC2::Model::DescribeAddressesResponse::SetAddresses
void SetAddresses(Aws::Vector< Address > &&value)
Definition: DescribeAddressesResponse.h:50
Aws::EC2::Model::DescribeAddressesResponse::WithAddresses
DescribeAddressesResponse & WithAddresses(Aws::Vector< Address > &&value)
Definition: DescribeAddressesResponse.h:60
Aws::EC2::Model::DescribeAddressesResponse::GetAddresses
const Aws::Vector< Address > & GetAddresses() const
Definition: DescribeAddressesResponse.h:40
Aws::EC2::Model::DescribeAddressesResponse::WithResponseMetadata
DescribeAddressesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeAddressesResponse.h:86
Address.h
Aws::EC2::Model::DescribeAddressesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeAddressesResponse.h:77
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeAddressesResponse::WithResponseMetadata
DescribeAddressesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeAddressesResponse.h:83
Aws::EC2::Model::DescribeAddressesResponse::operator=
DescribeAddressesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::Address
Definition: Address.h:36
EC2_EXPORTS.h
Aws::EC2::Model::DescribeAddressesResponse::AddAddresses
DescribeAddressesResponse & AddAddresses(const Address &value)
Definition: DescribeAddressesResponse.h:65
Aws::EC2::Model::DescribeAddressesResponse
Definition: DescribeAddressesResponse.h:30
Aws::EC2::Model::DescribeAddressesResponse::DescribeAddressesResponse
DescribeAddressesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)