AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeAvailabilityZonesResponse.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::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
42 
47  inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZones = value; }
48 
53  inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZones = std::move(value); }
54 
59  inline DescribeAvailabilityZonesResponse& WithAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetAvailabilityZones(value); return *this;}
60 
65  inline DescribeAvailabilityZonesResponse& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
66 
71  inline DescribeAvailabilityZonesResponse& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZones.push_back(value); return *this; }
72 
77  inline DescribeAvailabilityZonesResponse& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZones.push_back(std::move(value)); return *this; }
78 
79 
80 
81  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
82 
83 
84  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
85 
86 
87  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
88 
89 
90  inline DescribeAvailabilityZonesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
91 
92 
93  inline DescribeAvailabilityZonesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
94 
95  private:
96 
97  Aws::Vector<AvailabilityZone> m_availabilityZones;
98 
99  ResponseMetadata m_responseMetadata;
100  };
101 
102 } // namespace Model
103 } // namespace EC2
104 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeAvailabilityZonesResponse
Definition: DescribeAvailabilityZonesResponse.h:30
Aws::EC2::Model::DescribeAvailabilityZonesResponse::DescribeAvailabilityZonesResponse
DescribeAvailabilityZonesResponse()
Aws::EC2::Model::DescribeAvailabilityZonesResponse::WithResponseMetadata
DescribeAvailabilityZonesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeAvailabilityZonesResponse.h:90
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeAvailabilityZonesResponse::WithResponseMetadata
DescribeAvailabilityZonesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeAvailabilityZonesResponse.h:93
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeAvailabilityZonesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeAvailabilityZonesResponse.h:87
AWSVector.h
Aws::EC2::Model::DescribeAvailabilityZonesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeAvailabilityZonesResponse.h:84
Aws::EC2::Model::DescribeAvailabilityZonesResponse::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: DescribeAvailabilityZonesResponse.h:53
Aws::EC2::Model::DescribeAvailabilityZonesResponse::AddAvailabilityZones
DescribeAvailabilityZonesResponse & AddAvailabilityZones(const AvailabilityZone &value)
Definition: DescribeAvailabilityZonesResponse.h:71
Aws::EC2::Model::DescribeAvailabilityZonesResponse::operator=
DescribeAvailabilityZonesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeAvailabilityZonesResponse::DescribeAvailabilityZonesResponse
DescribeAvailabilityZonesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeAvailabilityZonesResponse::WithAvailabilityZones
DescribeAvailabilityZonesResponse & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: DescribeAvailabilityZonesResponse.h:59
Aws::EC2::Model::DescribeAvailabilityZonesResponse::WithAvailabilityZones
DescribeAvailabilityZonesResponse & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: DescribeAvailabilityZonesResponse.h:65
Aws::EC2::Model::DescribeAvailabilityZonesResponse::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: DescribeAvailabilityZonesResponse.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeAvailabilityZonesResponse::AddAvailabilityZones
DescribeAvailabilityZonesResponse & AddAvailabilityZones(AvailabilityZone &&value)
Definition: DescribeAvailabilityZonesResponse.h:77
Aws::EC2::Model::DescribeAvailabilityZonesResponse::GetAvailabilityZones
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
Definition: DescribeAvailabilityZonesResponse.h:41
Aws::EC2::Model::AvailabilityZone
Definition: AvailabilityZone.h:37
EC2_EXPORTS.h
AvailabilityZone.h
Aws::EC2::Model::DescribeAvailabilityZonesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeAvailabilityZonesResponse.h:81