AWS SDK for C++  1.9.108
AWS SDK for C++
AddTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace MachineLearning
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AddTags"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
46 
52  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
53 
59  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
60 
66  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
67 
73  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
74 
80  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
81 
87  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
88 
94  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 
96 
100  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
101 
105  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
106 
110  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
111 
115  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
116 
120  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
121 
125  inline AddTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
126 
130  inline AddTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
131 
135  inline AddTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
136 
137 
141  inline const TaggableResourceType& GetResourceType() const{ return m_resourceType; }
142 
146  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
147 
151  inline void SetResourceType(const TaggableResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
152 
156  inline void SetResourceType(TaggableResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
157 
161  inline AddTagsRequest& WithResourceType(const TaggableResourceType& value) { SetResourceType(value); return *this;}
162 
166  inline AddTagsRequest& WithResourceType(TaggableResourceType&& value) { SetResourceType(std::move(value)); return *this;}
167 
168  private:
169 
170  Aws::Vector<Tag> m_tags;
171  bool m_tagsHasBeenSet;
172 
173  Aws::String m_resourceId;
174  bool m_resourceIdHasBeenSet;
175 
176  TaggableResourceType m_resourceType;
177  bool m_resourceTypeHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace MachineLearning
182 } // namespace Aws
Aws::MachineLearning::Model::AddTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:59
Aws::MachineLearning::Model::AddTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: AddTagsRequest.h:120
Aws::MachineLearning::Model::AddTagsRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: AddTagsRequest.h:146
Aws::MachineLearning::Model::AddTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:66
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::AddTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: AddTagsRequest.h:100
Aws::MachineLearning::Model::AddTagsRequest::SetResourceType
void SetResourceType(TaggableResourceType &&value)
Definition: AddTagsRequest.h:156
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::AddTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsRequest.h:45
Aws::MachineLearning::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(Tag &&value)
Definition: AddTagsRequest.h:94
Aws::MachineLearning::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:80
Aws::MachineLearning::Model::AddTagsRequest::WithResourceType
AddTagsRequest & WithResourceType(const TaggableResourceType &value)
Definition: AddTagsRequest.h:161
Aws::MachineLearning::Model::AddTagsRequest::WithResourceType
AddTagsRequest & WithResourceType(TaggableResourceType &&value)
Definition: AddTagsRequest.h:166
Aws::MachineLearning::Model::AddTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: AddTagsRequest.h:115
Aws::MachineLearning::Model::AddTagsRequest::GetResourceType
const TaggableResourceType & GetResourceType() const
Definition: AddTagsRequest.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MachineLearning::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
Aws::MachineLearning::Model::AddTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsRequest.h:52
AWSVector.h
Aws::MachineLearning::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:33
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::AddTagsRequest
Definition: AddTagsRequest.h:25
Aws::MachineLearning::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MachineLearning::Model::AddTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: AddTagsRequest.h:105
AWSString.h
Aws::MachineLearning::Model::TaggableResourceType
TaggableResourceType
Definition: TaggableResourceType.h:17
Aws::MachineLearning::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(const Tag &value)
Definition: AddTagsRequest.h:87
Aws::MachineLearning::Model::AddTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: AddTagsRequest.h:110
Aws::MachineLearning::Model::Tag
Definition: Tag.h:33
MachineLearningRequest.h
Aws::MachineLearning::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(const Aws::String &value)
Definition: AddTagsRequest.h:125
Aws::MachineLearning::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(const char *value)
Definition: AddTagsRequest.h:135
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(Aws::String &&value)
Definition: AddTagsRequest.h:130
Aws::MachineLearning::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:73
TaggableResourceType.h
Aws::MachineLearning::Model::AddTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MachineLearning::Model::AddTagsRequest::SetResourceType
void SetResourceType(const TaggableResourceType &value)
Definition: AddTagsRequest.h:151