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