AWS SDK for C++  1.9.108
AWS SDK for C++
GetRegionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::Vector<Region>& GetRegions() const{ return m_regions; }
41 
46  inline void SetRegions(const Aws::Vector<Region>& value) { m_regions = value; }
47 
52  inline void SetRegions(Aws::Vector<Region>&& value) { m_regions = std::move(value); }
53 
58  inline GetRegionsResult& WithRegions(const Aws::Vector<Region>& value) { SetRegions(value); return *this;}
59 
64  inline GetRegionsResult& WithRegions(Aws::Vector<Region>&& value) { SetRegions(std::move(value)); return *this;}
65 
70  inline GetRegionsResult& AddRegions(const Region& value) { m_regions.push_back(value); return *this; }
71 
76  inline GetRegionsResult& AddRegions(Region&& value) { m_regions.push_back(std::move(value)); return *this; }
77 
78  private:
79 
80  Aws::Vector<Region> m_regions;
81  };
82 
83 } // namespace Model
84 } // namespace Lightsail
85 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetRegionsResult::GetRegionsResult
GetRegionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Region.h
Aws::Lightsail::Model::Region
Definition: Region.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetRegionsResult::AddRegions
GetRegionsResult & AddRegions(Region &&value)
Definition: GetRegionsResult.h:76
Aws::Lightsail::Model::GetRegionsResult::GetRegionsResult
GetRegionsResult()
AWSVector.h
Aws::Lightsail::Model::GetRegionsResult::SetRegions
void SetRegions(Aws::Vector< Region > &&value)
Definition: GetRegionsResult.h:52
Aws::Lightsail::Model::GetRegionsResult::GetRegions
const Aws::Vector< Region > & GetRegions() const
Definition: GetRegionsResult.h:40
Aws::Lightsail::Model::GetRegionsResult::WithRegions
GetRegionsResult & WithRegions(Aws::Vector< Region > &&value)
Definition: GetRegionsResult.h:64
Aws::Lightsail::Model::GetRegionsResult
Definition: GetRegionsResult.h:29
Aws::Lightsail::Model::GetRegionsResult::operator=
GetRegionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetRegionsResult::WithRegions
GetRegionsResult & WithRegions(const Aws::Vector< Region > &value)
Definition: GetRegionsResult.h:58
Aws
Definition: AccessManagementClient.h:15
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetRegionsResult::AddRegions
GetRegionsResult & AddRegions(const Region &value)
Definition: GetRegionsResult.h:70
Aws::Lightsail::Model::GetRegionsResult::SetRegions
void SetRegions(const Aws::Vector< Region > &value)
Definition: GetRegionsResult.h:46