AWS SDK for C++  1.9.108
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/gamelift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
47  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
48 
57  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
58 
67  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
68 
77  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
78 
87  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
88 
97  inline TagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
98 
107  inline TagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
108 
117  inline TagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
118 
119 
127  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 
136  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 
145  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 
154  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 
163  inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164 
172  inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
173 
181  inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
182 
190  inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
191 
192  private:
193 
194  Aws::String m_resourceARN;
195  bool m_resourceARNHasBeenSet;
196 
197  Aws::Vector<Tag> m_tags;
198  bool m_tagsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace GameLift
203 } // namespace Aws
Aws::GameLift::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Tag &value)
Definition: TagResourceRequest.h:181
Aws::GameLift::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Tag &&value)
Definition: TagResourceRequest.h:190
Aws::GameLift::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:136
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:163
Aws::GameLift::Model::TagResourceRequest
Definition: TagResourceRequest.h:24
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const char *value)
Definition: TagResourceRequest.h:117
Aws::GameLift::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:32
Aws::GameLift::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: TagResourceRequest.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
AWSVector.h
Aws::GameLift::Model::TagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::TagResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TagResourceRequest.h:127
Aws::GameLift::Model::TagResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: TagResourceRequest.h:57
Aws::GameLift::Model::TagResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: TagResourceRequest.h:47
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(Aws::String &&value)
Definition: TagResourceRequest.h:107
AWSString.h
Aws::GameLift::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:172
Aws::GameLift::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::TagResourceRequest::WithResourceARN
TagResourceRequest & WithResourceARN(const Aws::String &value)
Definition: TagResourceRequest.h:97
Aws::GameLift::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition: TagResourceRequest.h:87
Aws::GameLift::Model::Tag
Definition: Tag.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TagResourceRequest.h:145
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::GameLift::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TagResourceRequest.h:154
Aws::GameLift::Model::TagResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: TagResourceRequest.h:67