AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTaskDefinitionResult.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 DescribeTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;}
48
50
68 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
69 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
70 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
71 inline DescribeTaskDefinitionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
72 inline DescribeTaskDefinitionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
73 inline DescribeTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
74 inline DescribeTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline DescribeTaskDefinitionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline DescribeTaskDefinitionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline DescribeTaskDefinitionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 TaskDefinition m_taskDefinition;
90
91 Aws::Vector<Tag> m_tags;
92
93 Aws::String m_requestId;
94 };
95
96} // namespace Model
97} // namespace ECS
98} // namespace Aws
DescribeTaskDefinitionResult & WithRequestId(const Aws::String &value)
DescribeTaskDefinitionResult & WithRequestId(const char *value)
AWS_ECS_API DescribeTaskDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskDefinitionResult & WithTags(Aws::Vector< Tag > &&value)
DescribeTaskDefinitionResult & WithTags(const Aws::Vector< Tag > &value)
DescribeTaskDefinitionResult & WithTaskDefinition(const TaskDefinition &value)
AWS_ECS_API DescribeTaskDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskDefinitionResult & WithTaskDefinition(TaskDefinition &&value)
DescribeTaskDefinitionResult & WithRequestId(Aws::String &&value)
DescribeTaskDefinitionResult & AddTags(Tag &&value)
DescribeTaskDefinitionResult & AddTags(const Tag &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