AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartTaskResult.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/Task.h>
11#include <aws/ecs/model/Failure.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ECS
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ECS_API StartTaskResult();
36
37
39
43 inline const Aws::Vector<Task>& GetTasks() const{ return m_tasks; }
44 inline void SetTasks(const Aws::Vector<Task>& value) { m_tasks = value; }
45 inline void SetTasks(Aws::Vector<Task>&& value) { m_tasks = std::move(value); }
46 inline StartTaskResult& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
47 inline StartTaskResult& WithTasks(Aws::Vector<Task>&& value) { SetTasks(std::move(value)); return *this;}
48 inline StartTaskResult& AddTasks(const Task& value) { m_tasks.push_back(value); return *this; }
49 inline StartTaskResult& AddTasks(Task&& value) { m_tasks.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
57 inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
58 inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
59 inline StartTaskResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
60 inline StartTaskResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
61 inline StartTaskResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
62 inline StartTaskResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
69 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
70 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
71 inline StartTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
72 inline StartTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
73 inline StartTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
75 private:
76
77 Aws::Vector<Task> m_tasks;
78
79 Aws::Vector<Failure> m_failures;
80
81 Aws::String m_requestId;
82 };
83
84} // namespace Model
85} // namespace ECS
86} // namespace Aws
StartTaskResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
StartTaskResult & WithTasks(Aws::Vector< Task > &&value)
void SetRequestId(Aws::String &&value)
StartTaskResult & AddFailures(const Failure &value)
StartTaskResult & WithTasks(const Aws::Vector< Task > &value)
const Aws::Vector< Failure > & GetFailures() const
const Aws::Vector< Task > & GetTasks() const
StartTaskResult & AddTasks(Task &&value)
StartTaskResult & AddTasks(const Task &value)
StartTaskResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
void SetRequestId(const char *value)
void SetTasks(const Aws::Vector< Task > &value)
void SetFailures(const Aws::Vector< Failure > &value)
StartTaskResult & WithFailures(Aws::Vector< Failure > &&value)
StartTaskResult & AddFailures(Failure &&value)
StartTaskResult & WithRequestId(const Aws::String &value)
AWS_ECS_API StartTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFailures(Aws::Vector< Failure > &&value)
AWS_ECS_API StartTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTasks(Aws::Vector< Task > &&value)
StartTaskResult & WithFailures(const Aws::Vector< Failure > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue