AWS SDK for C++  1.9.47
AWS SDK for C++
DescribeClustersResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <aws/ecs/model/Failure.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Cluster>& GetClusters() const{ return m_clusters; }
41 
45  inline void SetClusters(const Aws::Vector<Cluster>& value) { m_clusters = value; }
46 
50  inline void SetClusters(Aws::Vector<Cluster>&& value) { m_clusters = std::move(value); }
51 
55  inline DescribeClustersResult& WithClusters(const Aws::Vector<Cluster>& value) { SetClusters(value); return *this;}
56 
60  inline DescribeClustersResult& WithClusters(Aws::Vector<Cluster>&& value) { SetClusters(std::move(value)); return *this;}
61 
65  inline DescribeClustersResult& AddClusters(const Cluster& value) { m_clusters.push_back(value); return *this; }
66 
70  inline DescribeClustersResult& AddClusters(Cluster&& value) { m_clusters.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
77 
81  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
82 
86  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
87 
91  inline DescribeClustersResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
92 
96  inline DescribeClustersResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline DescribeClustersResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
102 
106  inline DescribeClustersResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<Cluster> m_clusters;
111 
112  Aws::Vector<Failure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECS
117 } // namespace Aws
Aws::ECS::Model::DescribeClustersResult::AddFailures
DescribeClustersResult & AddFailures(const Failure &value)
Definition: DescribeClustersResult.h:101
Aws::ECS::Model::DescribeClustersResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: DescribeClustersResult.h:81
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::DescribeClustersResult::WithFailures
DescribeClustersResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: DescribeClustersResult.h:91
Aws::ECS::Model::DescribeClustersResult::SetClusters
void SetClusters(Aws::Vector< Cluster > &&value)
Definition: DescribeClustersResult.h:50
Aws::ECS::Model::DescribeClustersResult::operator=
DescribeClustersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeClustersResult::GetClusters
const Aws::Vector< Cluster > & GetClusters() const
Definition: DescribeClustersResult.h:40
Aws::ECS::Model::DescribeClustersResult
Definition: DescribeClustersResult.h:30
Aws::ECS::Model::DescribeClustersResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: DescribeClustersResult.h:76
Aws::ECS::Model::DescribeClustersResult::WithClusters
DescribeClustersResult & WithClusters(const Aws::Vector< Cluster > &value)
Definition: DescribeClustersResult.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeClustersResult::AddClusters
DescribeClustersResult & AddClusters(Cluster &&value)
Definition: DescribeClustersResult.h:70
Aws::ECS::Model::DescribeClustersResult::WithFailures
DescribeClustersResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: DescribeClustersResult.h:96
Cluster.h
Aws::ECS::Model::DescribeClustersResult::SetClusters
void SetClusters(const Aws::Vector< Cluster > &value)
Definition: DescribeClustersResult.h:45
Failure.h
Aws::ECS::Model::DescribeClustersResult::AddClusters
DescribeClustersResult & AddClusters(const Cluster &value)
Definition: DescribeClustersResult.h:65
Aws::ECS::Model::Cluster
Definition: Cluster.h:42
Aws::ECS::Model::DescribeClustersResult::DescribeClustersResult
DescribeClustersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeClustersResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: DescribeClustersResult.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::DescribeClustersResult::AddFailures
DescribeClustersResult & AddFailures(Failure &&value)
Definition: DescribeClustersResult.h:106
Aws::ECS::Model::DescribeClustersResult::DescribeClustersResult
DescribeClustersResult()
Aws::ECS::Model::DescribeClustersResult::WithClusters
DescribeClustersResult & WithClusters(Aws::Vector< Cluster > &&value)
Definition: DescribeClustersResult.h:60
ECS_EXPORTS.h