AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeStacksResult.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 OpsWorks
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<Stack>& GetStacks() const{ return m_stacks; }
46 
50  inline void SetStacks(const Aws::Vector<Stack>& value) { m_stacks = value; }
51 
55  inline void SetStacks(Aws::Vector<Stack>&& value) { m_stacks = std::move(value); }
56 
60  inline DescribeStacksResult& WithStacks(const Aws::Vector<Stack>& value) { SetStacks(value); return *this;}
61 
65  inline DescribeStacksResult& WithStacks(Aws::Vector<Stack>&& value) { SetStacks(std::move(value)); return *this;}
66 
70  inline DescribeStacksResult& AddStacks(const Stack& value) { m_stacks.push_back(value); return *this; }
71 
75  inline DescribeStacksResult& AddStacks(Stack&& value) { m_stacks.push_back(std::move(value)); return *this; }
76 
77  private:
78 
79  Aws::Vector<Stack> m_stacks;
80  };
81 
82 } // namespace Model
83 } // namespace OpsWorks
84 } // namespace Aws
Aws::OpsWorks::Model::DescribeStacksResult::DescribeStacksResult
DescribeStacksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeStacksResult::SetStacks
void SetStacks(const Aws::Vector< Stack > &value)
Definition: DescribeStacksResult.h:50
Aws::OpsWorks::Model::DescribeStacksResult::operator=
DescribeStacksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::DescribeStacksResult::GetStacks
const Aws::Vector< Stack > & GetStacks() const
Definition: DescribeStacksResult.h:45
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::OpsWorks::Model::DescribeStacksResult
Definition: DescribeStacksResult.h:35
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeStacksResult::DescribeStacksResult
DescribeStacksResult()
Aws::OpsWorks::Model::DescribeStacksResult::AddStacks
DescribeStacksResult & AddStacks(Stack &&value)
Definition: DescribeStacksResult.h:75
Aws::OpsWorks::Model::DescribeStacksResult::AddStacks
DescribeStacksResult & AddStacks(const Stack &value)
Definition: DescribeStacksResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Stack.h
Aws::OpsWorks::Model::DescribeStacksResult::WithStacks
DescribeStacksResult & WithStacks(const Aws::Vector< Stack > &value)
Definition: DescribeStacksResult.h:60
Aws::OpsWorks::Model::DescribeStacksResult::WithStacks
DescribeStacksResult & WithStacks(Aws::Vector< Stack > &&value)
Definition: DescribeStacksResult.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::Stack
Definition: Stack.h:38
Aws::OpsWorks::Model::DescribeStacksResult::SetStacks
void SetStacks(Aws::Vector< Stack > &&value)
Definition: DescribeStacksResult.h:55