AWS SDK for C++  0.12.9
AWS SDK for C++
StartTaskResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
18 #include <aws/ecs/model/Task.h>
19 #include <aws/ecs/model/Failure.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace ECS
34 {
35 namespace Model
36 {
38  {
39  public:
43 
48  inline const Aws::Vector<Task>& GetTasks() const{ return m_tasks; }
49 
54  inline void SetTasks(const Aws::Vector<Task>& value) { m_tasks = value; }
55 
60  inline void SetTasks(Aws::Vector<Task>&& value) { m_tasks = value; }
61 
66  inline StartTaskResult& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
67 
72  inline StartTaskResult& WithTasks(Aws::Vector<Task>&& value) { SetTasks(value); return *this;}
73 
78  inline StartTaskResult& AddTasks(const Task& value) { m_tasks.push_back(value); return *this; }
79 
84  inline StartTaskResult& AddTasks(Task&& value) { m_tasks.push_back(value); return *this; }
85 
89  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
90 
94  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
95 
99  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = value; }
100 
104  inline StartTaskResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
105 
109  inline StartTaskResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(value); return *this;}
110 
114  inline StartTaskResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
115 
119  inline StartTaskResult& AddFailures(Failure&& value) { m_failures.push_back(value); return *this; }
120 
121  private:
122  Aws::Vector<Task> m_tasks;
123  Aws::Vector<Failure> m_failures;
124  };
125 
126 } // namespace Model
127 } // namespace ECS
128 } // namespace Aws
void SetTasks(const Aws::Vector< Task > &value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
const Aws::Vector< Failure > & GetFailures() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetFailures(const Aws::Vector< Failure > &value)
StartTaskResult & WithFailures(Aws::Vector< Failure > &&value)
StartTaskResult & AddFailures(const Failure &value)
void SetFailures(Aws::Vector< Failure > &&value)
StartTaskResult & WithTasks(Aws::Vector< Task > &&value)
void SetTasks(Aws::Vector< Task > &&value)
StartTaskResult & WithTasks(const Aws::Vector< Task > &value)
StartTaskResult & AddTasks(const Task &value)
StartTaskResult & AddFailures(Failure &&value)
StartTaskResult & AddTasks(Task &&value)
JSON (JavaScript Object Notation).
const Aws::Vector< Task > & GetTasks() const
StartTaskResult & WithFailures(const Aws::Vector< Failure > &value)