AWS SDK for C++  1.9.156
AWS SDK for C++
DescribeTasksResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <aws/ecs/model/Task.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<Task>& GetTasks() const{ return m_tasks; }
41 
45  inline void SetTasks(const Aws::Vector<Task>& value) { m_tasks = value; }
46 
50  inline void SetTasks(Aws::Vector<Task>&& value) { m_tasks = std::move(value); }
51 
55  inline DescribeTasksResult& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
56 
60  inline DescribeTasksResult& WithTasks(Aws::Vector<Task>&& value) { SetTasks(std::move(value)); return *this;}
61 
65  inline DescribeTasksResult& AddTasks(const Task& value) { m_tasks.push_back(value); return *this; }
66 
70  inline DescribeTasksResult& AddTasks(Task&& value) { m_tasks.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 DescribeTasksResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
92 
96  inline DescribeTasksResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline DescribeTasksResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
102 
106  inline DescribeTasksResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<Task> m_tasks;
111 
112  Aws::Vector<Failure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECS
117 } // namespace Aws
Aws::ECS::Model::DescribeTasksResult::AddFailures
DescribeTasksResult & AddFailures(const Failure &value)
Definition: DescribeTasksResult.h:101
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::DescribeTasksResult
Definition: DescribeTasksResult.h:30
Aws::ECS::Model::Task
Definition: Task.h:45
Aws::ECS::Model::DescribeTasksResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: DescribeTasksResult.h:76
Aws::ECS::Model::DescribeTasksResult::SetTasks
void SetTasks(Aws::Vector< Task > &&value)
Definition: DescribeTasksResult.h:50
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeTasksResult::SetTasks
void SetTasks(const Aws::Vector< Task > &value)
Definition: DescribeTasksResult.h:45
Aws::ECS::Model::DescribeTasksResult::DescribeTasksResult
DescribeTasksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeTasksResult::WithFailures
DescribeTasksResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: DescribeTasksResult.h:96
Aws::ECS::Model::DescribeTasksResult::AddFailures
DescribeTasksResult & AddFailures(Failure &&value)
Definition: DescribeTasksResult.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Task.h
Aws::ECS::Model::DescribeTasksResult::WithTasks
DescribeTasksResult & WithTasks(Aws::Vector< Task > &&value)
Definition: DescribeTasksResult.h:60
Aws::ECS::Model::DescribeTasksResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: DescribeTasksResult.h:81
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeTasksResult::WithFailures
DescribeTasksResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: DescribeTasksResult.h:91
Failure.h
Aws::ECS::Model::DescribeTasksResult::DescribeTasksResult
DescribeTasksResult()
Aws::ECS::Model::DescribeTasksResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: DescribeTasksResult.h:86
Aws::ECS::Model::DescribeTasksResult::AddTasks
DescribeTasksResult & AddTasks(Task &&value)
Definition: DescribeTasksResult.h:70
Aws::ECS::Model::DescribeTasksResult::GetTasks
const Aws::Vector< Task > & GetTasks() const
Definition: DescribeTasksResult.h:40
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::DescribeTasksResult::operator=
DescribeTasksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeTasksResult::AddTasks
DescribeTasksResult & AddTasks(const Task &value)
Definition: DescribeTasksResult.h:65
Aws::ECS::Model::DescribeTasksResult::WithTasks
DescribeTasksResult & WithTasks(const Aws::Vector< Task > &value)
Definition: DescribeTasksResult.h:55
ECS_EXPORTS.h