AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RunTaskResult.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 RunTaskResult();
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 RunTaskResult& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
47 inline RunTaskResult& WithTasks(Aws::Vector<Task>&& value) { SetTasks(std::move(value)); return *this;}
48 inline RunTaskResult& AddTasks(const Task& value) { m_tasks.push_back(value); return *this; }
49 inline RunTaskResult& AddTasks(Task&& value) { m_tasks.push_back(std::move(value)); return *this; }
51
53
62 inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
63 inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
64 inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
65 inline RunTaskResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
66 inline RunTaskResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
67 inline RunTaskResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
68 inline RunTaskResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
70
72
73 inline const Aws::String& GetRequestId() const{ return m_requestId; }
74 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
75 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
76 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
77 inline RunTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
78 inline RunTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
79 inline RunTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
81 private:
82
83 Aws::Vector<Task> m_tasks;
84
85 Aws::Vector<Failure> m_failures;
86
87 Aws::String m_requestId;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
void SetFailures(const Aws::Vector< Failure > &value)
AWS_ECS_API RunTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTasks(const Aws::Vector< Task > &value)
RunTaskResult & AddFailures(Failure &&value)
RunTaskResult & WithTasks(Aws::Vector< Task > &&value)
RunTaskResult & WithRequestId(const char *value)
RunTaskResult & WithRequestId(Aws::String &&value)
RunTaskResult & AddFailures(const Failure &value)
void SetTasks(Aws::Vector< Task > &&value)
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
RunTaskResult & WithRequestId(const Aws::String &value)
RunTaskResult & WithTasks(const Aws::Vector< Task > &value)
const Aws::String & GetRequestId() const
AWS_ECS_API RunTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Task > & GetTasks() const
RunTaskResult & WithFailures(Aws::Vector< Failure > &&value)
void SetFailures(Aws::Vector< Failure > &&value)
RunTaskResult & AddTasks(const Task &value)
RunTaskResult & WithFailures(const Aws::Vector< Failure > &value)
const Aws::Vector< Failure > & GetFailures() const
RunTaskResult & AddTasks(Task &&value)
void SetRequestId(const char *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