AWS SDK for C++  1.9.156
AWS SDK for C++
RunTaskResult.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 
41  inline const Aws::Vector<Task>& GetTasks() const{ return m_tasks; }
42 
47  inline void SetTasks(const Aws::Vector<Task>& value) { m_tasks = value; }
48 
53  inline void SetTasks(Aws::Vector<Task>&& value) { m_tasks = std::move(value); }
54 
59  inline RunTaskResult& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
60 
65  inline RunTaskResult& WithTasks(Aws::Vector<Task>&& value) { SetTasks(std::move(value)); return *this;}
66 
71  inline RunTaskResult& AddTasks(const Task& value) { m_tasks.push_back(value); return *this; }
72 
77  inline RunTaskResult& AddTasks(Task&& value) { m_tasks.push_back(std::move(value)); return *this; }
78 
79 
83  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
84 
88  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
89 
93  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
94 
98  inline RunTaskResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
99 
103  inline RunTaskResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
104 
108  inline RunTaskResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
109 
113  inline RunTaskResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::Vector<Task> m_tasks;
118 
119  Aws::Vector<Failure> m_failures;
120  };
121 
122 } // namespace Model
123 } // namespace ECS
124 } // namespace Aws
Aws::ECS::Model::RunTaskResult::AddFailures
RunTaskResult & AddFailures(const Failure &value)
Definition: RunTaskResult.h:108
Aws::ECS::Model::RunTaskResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: RunTaskResult.h:93
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::Task
Definition: Task.h:45
Aws::ECS::Model::RunTaskResult
Definition: RunTaskResult.h:30
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::RunTaskResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: RunTaskResult.h:83
Aws::ECS::Model::RunTaskResult::AddTasks
RunTaskResult & AddTasks(const Task &value)
Definition: RunTaskResult.h:71
Aws::ECS::Model::RunTaskResult::WithFailures
RunTaskResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: RunTaskResult.h:98
Aws::ECS::Model::RunTaskResult::WithTasks
RunTaskResult & WithTasks(Aws::Vector< Task > &&value)
Definition: RunTaskResult.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Task.h
Aws::ECS::Model::RunTaskResult::SetTasks
void SetTasks(const Aws::Vector< Task > &value)
Definition: RunTaskResult.h:47
Aws::ECS::Model::RunTaskResult::WithTasks
RunTaskResult & WithTasks(const Aws::Vector< Task > &value)
Definition: RunTaskResult.h:59
Aws::ECS::Model::RunTaskResult::RunTaskResult
RunTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::RunTaskResult::AddTasks
RunTaskResult & AddTasks(Task &&value)
Definition: RunTaskResult.h:77
Aws::ECS::Model::RunTaskResult::WithFailures
RunTaskResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: RunTaskResult.h:103
Aws::ECS::Model::RunTaskResult::GetTasks
const Aws::Vector< Task > & GetTasks() const
Definition: RunTaskResult.h:41
Failure.h
Aws::ECS::Model::RunTaskResult::operator=
RunTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::RunTaskResult::RunTaskResult
RunTaskResult()
Aws::ECS::Model::RunTaskResult::SetTasks
void SetTasks(Aws::Vector< Task > &&value)
Definition: RunTaskResult.h:53
Aws::ECS::Model::RunTaskResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: RunTaskResult.h:88
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::RunTaskResult::AddFailures
RunTaskResult & AddFailures(Failure &&value)
Definition: RunTaskResult.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
ECS_EXPORTS.h