AWS SDK for C++  1.9.156
AWS SDK for C++
ListTagsForResourceResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <aws/ecs/model/Tag.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ECS
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
40 
44  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
45 
49  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
50 
54  inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
55 
59  inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
60 
64  inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
65 
69  inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
70 
71  private:
72 
73  Aws::Vector<Tag> m_tags;
74  };
75 
76 } // namespace Model
77 } // namespace ECS
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::ListTagsForResourceResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ListTagsForResourceResult.h:44
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Tag.h
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_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ListTagsForResourceResult
Definition: ListTagsForResourceResult.h:29
Aws::ECS::Model::ListTagsForResourceResult::ListTagsForResourceResult
ListTagsForResourceResult()
Aws::ECS::Model::ListTagsForResourceResult::WithTags
ListTagsForResourceResult & WithTags(Aws::Vector< Tag > &&value)
Definition: ListTagsForResourceResult.h:59
Aws::ECS::Model::ListTagsForResourceResult::ListTagsForResourceResult
ListTagsForResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(const Tag &value)
Definition: ListTagsForResourceResult.h:64
Aws::ECS::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(Tag &&value)
Definition: ListTagsForResourceResult.h:69
Aws::ECS::Model::ListTagsForResourceResult::WithTags
ListTagsForResourceResult & WithTags(const Aws::Vector< Tag > &value)
Definition: ListTagsForResourceResult.h:54
Aws::ECS::Model::ListTagsForResourceResult::operator=
ListTagsForResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ListTagsForResourceResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ListTagsForResourceResult.h:39
Aws::ECS::Model::ListTagsForResourceResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ListTagsForResourceResult.h:49
ECS_EXPORTS.h