AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterTaskDefinitionResult.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/TaskDefinition.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ecs/model/Tag.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
42 inline const TaskDefinition& GetTaskDefinition() const{ return m_taskDefinition; }
43 inline void SetTaskDefinition(const TaskDefinition& value) { m_taskDefinition = value; }
44 inline void SetTaskDefinition(TaskDefinition&& value) { m_taskDefinition = std::move(value); }
46 inline RegisterTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;}
48
50
53 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
54 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
55 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
56 inline RegisterTaskDefinitionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
57 inline RegisterTaskDefinitionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
58 inline RegisterTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
59 inline RegisterTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline RegisterTaskDefinitionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline RegisterTaskDefinitionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline RegisterTaskDefinitionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 TaskDefinition m_taskDefinition;
75
76 Aws::Vector<Tag> m_tags;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace ECS
83} // namespace Aws
RegisterTaskDefinitionResult & WithTaskDefinition(const TaskDefinition &value)
RegisterTaskDefinitionResult & AddTags(Tag &&value)
RegisterTaskDefinitionResult & WithRequestId(const Aws::String &value)
RegisterTaskDefinitionResult & AddTags(const Tag &value)
RegisterTaskDefinitionResult & WithRequestId(Aws::String &&value)
RegisterTaskDefinitionResult & WithTags(const Aws::Vector< Tag > &value)
AWS_ECS_API RegisterTaskDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RegisterTaskDefinitionResult & WithRequestId(const char *value)
AWS_ECS_API RegisterTaskDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RegisterTaskDefinitionResult & WithTags(Aws::Vector< Tag > &&value)
RegisterTaskDefinitionResult & WithTaskDefinition(TaskDefinition &&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