AWS SDK for C++  1.9.109
AWS SDK for C++
DescribeTagsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace MachineLearning
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
47 
51  inline void SetResourceId(const Aws::String& value) { m_resourceId = value; }
52 
56  inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); }
57 
61  inline void SetResourceId(const char* value) { m_resourceId.assign(value); }
62 
66  inline DescribeTagsResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
67 
71  inline DescribeTagsResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
72 
76  inline DescribeTagsResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77 
78 
82  inline const TaggableResourceType& GetResourceType() const{ return m_resourceType; }
83 
87  inline void SetResourceType(const TaggableResourceType& value) { m_resourceType = value; }
88 
92  inline void SetResourceType(TaggableResourceType&& value) { m_resourceType = std::move(value); }
93 
97  inline DescribeTagsResult& WithResourceType(const TaggableResourceType& value) { SetResourceType(value); return *this;}
98 
102  inline DescribeTagsResult& WithResourceType(TaggableResourceType&& value) { SetResourceType(std::move(value)); return *this;}
103 
104 
108  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
109 
113  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
114 
118  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
119 
123  inline DescribeTagsResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 
128  inline DescribeTagsResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
129 
133  inline DescribeTagsResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
134 
138  inline DescribeTagsResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
139 
140  private:
141 
142  Aws::String m_resourceId;
143 
144  TaggableResourceType m_resourceType;
145 
146  Aws::Vector<Tag> m_tags;
147  };
148 
149 } // namespace Model
150 } // namespace MachineLearning
151 } // namespace Aws
Aws::MachineLearning::Model::DescribeTagsResult::SetResourceType
void SetResourceType(TaggableResourceType &&value)
Definition: DescribeTagsResult.h:92
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MachineLearning::Model::DescribeTagsResult::GetResourceType
const TaggableResourceType & GetResourceType() const
Definition: DescribeTagsResult.h:82
Aws::MachineLearning::Model::DescribeTagsResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: DescribeTagsResult.h:118
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::DescribeTagsResult::DescribeTagsResult
DescribeTagsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::DescribeTagsResult::AddTags
DescribeTagsResult & AddTags(const Tag &value)
Definition: DescribeTagsResult.h:133
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MachineLearning::Model::DescribeTagsResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: DescribeTagsResult.h:113
AWSVector.h
Aws::MachineLearning::Model::DescribeTagsResult::WithResourceType
DescribeTagsResult & WithResourceType(TaggableResourceType &&value)
Definition: DescribeTagsResult.h:102
Aws::MachineLearning::Model::DescribeTagsResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: DescribeTagsResult.h:108
Aws::MachineLearning::Model::DescribeTagsResult::WithResourceId
DescribeTagsResult & WithResourceId(const Aws::String &value)
Definition: DescribeTagsResult.h:66
Aws::MachineLearning::Model::DescribeTagsResult::SetResourceId
void SetResourceId(const char *value)
Definition: DescribeTagsResult.h:61
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::DescribeTagsResult::operator=
DescribeTagsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::DescribeTagsResult::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DescribeTagsResult.h:56
Aws::MachineLearning::Model::DescribeTagsResult::AddTags
DescribeTagsResult & AddTags(Tag &&value)
Definition: DescribeTagsResult.h:138
Aws::MachineLearning::Model::DescribeTagsResult::WithTags
DescribeTagsResult & WithTags(Aws::Vector< Tag > &&value)
Definition: DescribeTagsResult.h:128
AWSString.h
Aws::MachineLearning::Model::TaggableResourceType
TaggableResourceType
Definition: TaggableResourceType.h:17
Aws::MachineLearning::Model::DescribeTagsResult::WithResourceId
DescribeTagsResult & WithResourceId(Aws::String &&value)
Definition: DescribeTagsResult.h:71
Aws::MachineLearning::Model::Tag
Definition: Tag.h:33
Aws::MachineLearning::Model::DescribeTagsResult::WithTags
DescribeTagsResult & WithTags(const Aws::Vector< Tag > &value)
Definition: DescribeTagsResult.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::DescribeTagsResult::WithResourceType
DescribeTagsResult & WithResourceType(const TaggableResourceType &value)
Definition: DescribeTagsResult.h:97
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::DescribeTagsResult
Definition: DescribeTagsResult.h:36
Aws::MachineLearning::Model::DescribeTagsResult::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DescribeTagsResult.h:51
Aws::MachineLearning::Model::DescribeTagsResult::GetResourceId
const Aws::String & GetResourceId() const
Definition: DescribeTagsResult.h:46
TaggableResourceType.h
Aws::MachineLearning::Model::DescribeTagsResult::SetResourceType
void SetResourceType(const TaggableResourceType &value)
Definition: DescribeTagsResult.h:87
Aws::MachineLearning::Model::DescribeTagsResult::WithResourceId
DescribeTagsResult & WithResourceId(const char *value)
Definition: DescribeTagsResult.h:76
Aws::MachineLearning::Model::DescribeTagsResult::DescribeTagsResult
DescribeTagsResult()