AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeInstancesResult.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<Instance>& GetInstances() const{ return m_instances; }
46 
50  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
51 
55  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
56 
60  inline DescribeInstancesResult& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
61 
65  inline DescribeInstancesResult& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
66 
70  inline DescribeInstancesResult& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
71 
75  inline DescribeInstancesResult& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
76 
77  private:
78 
79  Aws::Vector<Instance> m_instances;
80  };
81 
82 } // namespace Model
83 } // namespace OpsWorks
84 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::OpsWorks::Model::DescribeInstancesResult
Definition: DescribeInstancesResult.h:35
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeInstancesResult::WithInstances
DescribeInstancesResult & WithInstances(Aws::Vector< Instance > &&value)
Definition: DescribeInstancesResult.h:65
Aws::OpsWorks::Model::DescribeInstancesResult::operator=
DescribeInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeInstancesResult::AddInstances
DescribeInstancesResult & AddInstances(Instance &&value)
Definition: DescribeInstancesResult.h:75
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Instance.h
Aws::OpsWorks::Model::DescribeInstancesResult::WithInstances
DescribeInstancesResult & WithInstances(const Aws::Vector< Instance > &value)
Definition: DescribeInstancesResult.h:60
Aws::OpsWorks::Model::DescribeInstancesResult::DescribeInstancesResult
DescribeInstancesResult()
Aws::OpsWorks::Model::DescribeInstancesResult::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: DescribeInstancesResult.h:50
Aws::OpsWorks::Model::DescribeInstancesResult::AddInstances
DescribeInstancesResult & AddInstances(const Instance &value)
Definition: DescribeInstancesResult.h:70
Aws::OpsWorks::Model::DescribeInstancesResult::DescribeInstancesResult
DescribeInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::Instance
Definition: Instance.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeInstancesResult::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: DescribeInstancesResult.h:45
Aws::OpsWorks::Model::DescribeInstancesResult::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: DescribeInstancesResult.h:55