AWS SDK for C++  1.9.153
AWS SDK for C++
DescribeTaskDefinitionResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <aws/ecs/model/Tag.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const TaskDefinition& GetTaskDefinition() const{ return m_taskDefinition; }
41 
45  inline void SetTaskDefinition(const TaskDefinition& value) { m_taskDefinition = value; }
46 
50  inline void SetTaskDefinition(TaskDefinition&& value) { m_taskDefinition = std::move(value); }
51 
55  inline DescribeTaskDefinitionResult& WithTaskDefinition(const TaskDefinition& value) { SetTaskDefinition(value); return *this;}
56 
60  inline DescribeTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;}
61 
62 
81  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
82 
101  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
102 
121  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
122 
141  inline DescribeTaskDefinitionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
142 
161  inline DescribeTaskDefinitionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 
181  inline DescribeTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
182 
201  inline DescribeTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
202 
203  private:
204 
205  TaskDefinition m_taskDefinition;
206 
207  Aws::Vector<Tag> m_tags;
208  };
209 
210 } // namespace Model
211 } // namespace ECS
212 } // namespace Aws
Aws::ECS::Model::DescribeTaskDefinitionResult::AddTags
DescribeTaskDefinitionResult & AddTags(const Tag &value)
Definition: DescribeTaskDefinitionResult.h:181
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeTaskDefinitionResult::GetTaskDefinition
const TaskDefinition & GetTaskDefinition() const
Definition: DescribeTaskDefinitionResult.h:40
TaskDefinition.h
Tag.h
Aws::ECS::Model::DescribeTaskDefinitionResult::SetTaskDefinition
void SetTaskDefinition(const TaskDefinition &value)
Definition: DescribeTaskDefinitionResult.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::Tag
Definition: Tag.h:47
AWSVector.h
Aws::ECS::Model::DescribeTaskDefinitionResult::AddTags
DescribeTaskDefinitionResult & AddTags(Tag &&value)
Definition: DescribeTaskDefinitionResult.h:201
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeTaskDefinitionResult::DescribeTaskDefinitionResult
DescribeTaskDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeTaskDefinitionResult::SetTaskDefinition
void SetTaskDefinition(TaskDefinition &&value)
Definition: DescribeTaskDefinitionResult.h:50
Aws::ECS::Model::DescribeTaskDefinitionResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: DescribeTaskDefinitionResult.h:101
Aws::ECS::Model::DescribeTaskDefinitionResult::WithTaskDefinition
DescribeTaskDefinitionResult & WithTaskDefinition(const TaskDefinition &value)
Definition: DescribeTaskDefinitionResult.h:55
Aws::ECS::Model::DescribeTaskDefinitionResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: DescribeTaskDefinitionResult.h:81
Aws::ECS::Model::DescribeTaskDefinitionResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: DescribeTaskDefinitionResult.h:121
Aws::ECS::Model::DescribeTaskDefinitionResult::WithTags
DescribeTaskDefinitionResult & WithTags(Aws::Vector< Tag > &&value)
Definition: DescribeTaskDefinitionResult.h:161
Aws::ECS::Model::DescribeTaskDefinitionResult
Definition: DescribeTaskDefinitionResult.h:30
Aws::ECS::Model::DescribeTaskDefinitionResult::DescribeTaskDefinitionResult
DescribeTaskDefinitionResult()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeTaskDefinitionResult::WithTags
DescribeTaskDefinitionResult & WithTags(const Aws::Vector< Tag > &value)
Definition: DescribeTaskDefinitionResult.h:141
Aws::ECS::Model::TaskDefinition
Definition: TaskDefinition.h:51
Aws::ECS::Model::DescribeTaskDefinitionResult::WithTaskDefinition
DescribeTaskDefinitionResult & WithTaskDefinition(TaskDefinition &&value)
Definition: DescribeTaskDefinitionResult.h:60
ECS_EXPORTS.h
Aws::ECS::Model::DescribeTaskDefinitionResult::operator=
DescribeTaskDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)