AWS SDK for C++  1.9.153
AWS SDK for C++
RegisterTaskDefinitionResult.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 RegisterTaskDefinitionResult& WithTaskDefinition(const TaskDefinition& value) { SetTaskDefinition(value); return *this;}
56 
60  inline RegisterTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;}
61 
62 
66  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
67 
71  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
72 
76  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
77 
81  inline RegisterTaskDefinitionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
82 
86  inline RegisterTaskDefinitionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
87 
91  inline RegisterTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
92 
96  inline RegisterTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
97 
98  private:
99 
100  TaskDefinition m_taskDefinition;
101 
102  Aws::Vector<Tag> m_tags;
103  };
104 
105 } // namespace Model
106 } // namespace ECS
107 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::RegisterTaskDefinitionResult
Definition: RegisterTaskDefinitionResult.h:30
Aws::ECS::Model::RegisterTaskDefinitionResult::RegisterTaskDefinitionResult
RegisterTaskDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::RegisterTaskDefinitionResult::GetTaskDefinition
const TaskDefinition & GetTaskDefinition() const
Definition: RegisterTaskDefinitionResult.h:40
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
TaskDefinition.h
Tag.h
Aws::ECS::Model::RegisterTaskDefinitionResult::WithTags
RegisterTaskDefinitionResult & WithTags(const Aws::Vector< Tag > &value)
Definition: RegisterTaskDefinitionResult.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::RegisterTaskDefinitionResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RegisterTaskDefinitionResult.h:71
Aws::ECS::Model::Tag
Definition: Tag.h:47
Aws::ECS::Model::RegisterTaskDefinitionResult::WithTaskDefinition
RegisterTaskDefinitionResult & WithTaskDefinition(TaskDefinition &&value)
Definition: RegisterTaskDefinitionResult.h:60
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::RegisterTaskDefinitionResult::AddTags
RegisterTaskDefinitionResult & AddTags(const Tag &value)
Definition: RegisterTaskDefinitionResult.h:91
Aws::ECS::Model::RegisterTaskDefinitionResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RegisterTaskDefinitionResult.h:66
Aws::ECS::Model::RegisterTaskDefinitionResult::RegisterTaskDefinitionResult
RegisterTaskDefinitionResult()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::RegisterTaskDefinitionResult::SetTaskDefinition
void SetTaskDefinition(const TaskDefinition &value)
Definition: RegisterTaskDefinitionResult.h:45
Aws::ECS::Model::RegisterTaskDefinitionResult::operator=
RegisterTaskDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::RegisterTaskDefinitionResult::SetTaskDefinition
void SetTaskDefinition(TaskDefinition &&value)
Definition: RegisterTaskDefinitionResult.h:50
Aws::ECS::Model::RegisterTaskDefinitionResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RegisterTaskDefinitionResult.h:76
Aws::ECS::Model::TaskDefinition
Definition: TaskDefinition.h:51
Aws::ECS::Model::RegisterTaskDefinitionResult::WithTaskDefinition
RegisterTaskDefinitionResult & WithTaskDefinition(const TaskDefinition &value)
Definition: RegisterTaskDefinitionResult.h:55
ECS_EXPORTS.h
Aws::ECS::Model::RegisterTaskDefinitionResult::WithTags
RegisterTaskDefinitionResult & WithTags(Aws::Vector< Tag > &&value)
Definition: RegisterTaskDefinitionResult.h:86
Aws::ECS::Model::RegisterTaskDefinitionResult::AddTags
RegisterTaskDefinitionResult & AddTags(Tag &&value)
Definition: RegisterTaskDefinitionResult.h:96