AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTaskProtectionResult.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/ProtectedTask.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:
36
37
39
47 inline const Aws::Vector<ProtectedTask>& GetProtectedTasks() const{ return m_protectedTasks; }
48 inline void SetProtectedTasks(const Aws::Vector<ProtectedTask>& value) { m_protectedTasks = value; }
49 inline void SetProtectedTasks(Aws::Vector<ProtectedTask>&& value) { m_protectedTasks = std::move(value); }
52 inline GetTaskProtectionResult& AddProtectedTasks(const ProtectedTask& value) { m_protectedTasks.push_back(value); return *this; }
53 inline GetTaskProtectionResult& AddProtectedTasks(ProtectedTask&& value) { m_protectedTasks.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
61 inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
62 inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
63 inline GetTaskProtectionResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
64 inline GetTaskProtectionResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
65 inline GetTaskProtectionResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
66 inline GetTaskProtectionResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
68
70
71 inline const Aws::String& GetRequestId() const{ return m_requestId; }
72 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
73 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
74 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
75 inline GetTaskProtectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
76 inline GetTaskProtectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
77 inline GetTaskProtectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
79 private:
80
81 Aws::Vector<ProtectedTask> m_protectedTasks;
82
83 Aws::Vector<Failure> m_failures;
84
85 Aws::String m_requestId;
86 };
87
88} // namespace Model
89} // namespace ECS
90} // namespace Aws
GetTaskProtectionResult & WithFailures(Aws::Vector< Failure > &&value)
GetTaskProtectionResult & WithFailures(const Aws::Vector< Failure > &value)
void SetFailures(Aws::Vector< Failure > &&value)
AWS_ECS_API GetTaskProtectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProtectedTasks(Aws::Vector< ProtectedTask > &&value)
void SetFailures(const Aws::Vector< Failure > &value)
GetTaskProtectionResult & WithRequestId(Aws::String &&value)
void SetProtectedTasks(const Aws::Vector< ProtectedTask > &value)
const Aws::Vector< ProtectedTask > & GetProtectedTasks() const
GetTaskProtectionResult & WithProtectedTasks(const Aws::Vector< ProtectedTask > &value)
GetTaskProtectionResult & WithRequestId(const char *value)
GetTaskProtectionResult & WithRequestId(const Aws::String &value)
GetTaskProtectionResult & AddFailures(const Failure &value)
AWS_ECS_API GetTaskProtectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTaskProtectionResult & WithProtectedTasks(Aws::Vector< ProtectedTask > &&value)
GetTaskProtectionResult & AddProtectedTasks(const ProtectedTask &value)
GetTaskProtectionResult & AddProtectedTasks(ProtectedTask &&value)
GetTaskProtectionResult & AddFailures(Failure &&value)
const Aws::Vector< Failure > & GetFailures() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue