AWS SDK for C++  1.9.16
AWS SDK for C++
GetContainerServicePowersResult.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<ContainerServicePower>& GetPowers() const{ return m_powers; }
41 
46  inline void SetPowers(const Aws::Vector<ContainerServicePower>& value) { m_powers = value; }
47 
52  inline void SetPowers(Aws::Vector<ContainerServicePower>&& value) { m_powers = std::move(value); }
53 
58  inline GetContainerServicePowersResult& WithPowers(const Aws::Vector<ContainerServicePower>& value) { SetPowers(value); return *this;}
59 
64  inline GetContainerServicePowersResult& WithPowers(Aws::Vector<ContainerServicePower>&& value) { SetPowers(std::move(value)); return *this;}
65 
70  inline GetContainerServicePowersResult& AddPowers(const ContainerServicePower& value) { m_powers.push_back(value); return *this; }
71 
76  inline GetContainerServicePowersResult& AddPowers(ContainerServicePower&& value) { m_powers.push_back(std::move(value)); return *this; }
77 
78  private:
79 
81  };
82 
83 } // namespace Model
84 } // namespace Lightsail
85 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetContainerServicePowersResult::GetPowers
const Aws::Vector< ContainerServicePower > & GetPowers() const
Definition: GetContainerServicePowersResult.h:40
ContainerServicePower.h
Aws::Lightsail::Model::GetContainerServicePowersResult::WithPowers
GetContainerServicePowersResult & WithPowers(Aws::Vector< ContainerServicePower > &&value)
Definition: GetContainerServicePowersResult.h:64
Aws::Lightsail::Model::GetContainerServicePowersResult::SetPowers
void SetPowers(const Aws::Vector< ContainerServicePower > &value)
Definition: GetContainerServicePowersResult.h:46
Aws::Lightsail::Model::GetContainerServicePowersResult
Definition: GetContainerServicePowersResult.h:29
Aws::Lightsail::Model::GetContainerServicePowersResult::SetPowers
void SetPowers(Aws::Vector< ContainerServicePower > &&value)
Definition: GetContainerServicePowersResult.h:52
Aws::Lightsail::Model::GetContainerServicePowersResult::GetContainerServicePowersResult
GetContainerServicePowersResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetContainerServicePowersResult::operator=
GetContainerServicePowersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetContainerServicePowersResult::AddPowers
GetContainerServicePowersResult & AddPowers(ContainerServicePower &&value)
Definition: GetContainerServicePowersResult.h:76
Aws::Lightsail::Model::ContainerServicePower
Definition: ContainerServicePower.h:34
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetContainerServicePowersResult::GetContainerServicePowersResult
GetContainerServicePowersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetContainerServicePowersResult::AddPowers
GetContainerServicePowersResult & AddPowers(const ContainerServicePower &value)
Definition: GetContainerServicePowersResult.h:70
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetContainerServicePowersResult::WithPowers
GetContainerServicePowersResult & WithPowers(const Aws::Vector< ContainerServicePower > &value)
Definition: GetContainerServicePowersResult.h:58