AWS SDK for C++  1.9.160
AWS SDK for C++
DescribeContainerInstancesResult.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<ContainerInstance>& GetContainerInstances() const{ return m_containerInstances; }
41 
45  inline void SetContainerInstances(const Aws::Vector<ContainerInstance>& value) { m_containerInstances = value; }
46 
50  inline void SetContainerInstances(Aws::Vector<ContainerInstance>&& value) { m_containerInstances = std::move(value); }
51 
55  inline DescribeContainerInstancesResult& WithContainerInstances(const Aws::Vector<ContainerInstance>& value) { SetContainerInstances(value); return *this;}
56 
60  inline DescribeContainerInstancesResult& WithContainerInstances(Aws::Vector<ContainerInstance>&& value) { SetContainerInstances(std::move(value)); return *this;}
61 
65  inline DescribeContainerInstancesResult& AddContainerInstances(const ContainerInstance& value) { m_containerInstances.push_back(value); return *this; }
66 
70  inline DescribeContainerInstancesResult& AddContainerInstances(ContainerInstance&& value) { m_containerInstances.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 DescribeContainerInstancesResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
92 
96  inline DescribeContainerInstancesResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline DescribeContainerInstancesResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
102 
106  inline DescribeContainerInstancesResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<ContainerInstance> m_containerInstances;
111 
112  Aws::Vector<Failure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECS
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::DescribeContainerInstancesResult::SetContainerInstances
void SetContainerInstances(Aws::Vector< ContainerInstance > &&value)
Definition: DescribeContainerInstancesResult.h:50
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeContainerInstancesResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: DescribeContainerInstancesResult.h:86
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::DescribeContainerInstancesResult::GetContainerInstances
const Aws::Vector< ContainerInstance > & GetContainerInstances() const
Definition: DescribeContainerInstancesResult.h:40
Aws::ECS::Model::DescribeContainerInstancesResult::WithFailures
DescribeContainerInstancesResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: DescribeContainerInstancesResult.h:96
Aws::ECS::Model::DescribeContainerInstancesResult::WithFailures
DescribeContainerInstancesResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: DescribeContainerInstancesResult.h:91
Aws::ECS::Model::DescribeContainerInstancesResult::WithContainerInstances
DescribeContainerInstancesResult & WithContainerInstances(const Aws::Vector< ContainerInstance > &value)
Definition: DescribeContainerInstancesResult.h:55
Aws::ECS::Model::DescribeContainerInstancesResult::AddFailures
DescribeContainerInstancesResult & AddFailures(const Failure &value)
Definition: DescribeContainerInstancesResult.h:101
Aws::ECS::Model::DescribeContainerInstancesResult
Definition: DescribeContainerInstancesResult.h:30
Aws::ECS::Model::DescribeContainerInstancesResult::AddFailures
DescribeContainerInstancesResult & AddFailures(Failure &&value)
Definition: DescribeContainerInstancesResult.h:106
Failure.h
Aws::ECS::Model::DescribeContainerInstancesResult::AddContainerInstances
DescribeContainerInstancesResult & AddContainerInstances(ContainerInstance &&value)
Definition: DescribeContainerInstancesResult.h:70
ContainerInstance.h
Aws::ECS::Model::DescribeContainerInstancesResult::DescribeContainerInstancesResult
DescribeContainerInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeContainerInstancesResult::SetContainerInstances
void SetContainerInstances(const Aws::Vector< ContainerInstance > &value)
Definition: DescribeContainerInstancesResult.h:45
Aws::ECS::Model::DescribeContainerInstancesResult::operator=
DescribeContainerInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::DescribeContainerInstancesResult::WithContainerInstances
DescribeContainerInstancesResult & WithContainerInstances(Aws::Vector< ContainerInstance > &&value)
Definition: DescribeContainerInstancesResult.h:60
Aws::ECS::Model::DescribeContainerInstancesResult::DescribeContainerInstancesResult
DescribeContainerInstancesResult()
Aws::ECS::Model::DescribeContainerInstancesResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: DescribeContainerInstancesResult.h:81
Aws::ECS::Model::DescribeContainerInstancesResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: DescribeContainerInstancesResult.h:76
Aws::ECS::Model::ContainerInstance
Definition: ContainerInstance.h:42
ECS_EXPORTS.h
Aws::ECS::Model::DescribeContainerInstancesResult::AddContainerInstances
DescribeContainerInstancesResult & AddContainerInstances(const ContainerInstance &value)
Definition: DescribeContainerInstancesResult.h:65