AWS SDK for C++  1.8.95
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 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
TagResourceRequest & AddTags(const Tag &value)
TagResourceRequest & WithTags(const Aws::Vector< Tag > &value)
TagResourceRequest & AddTags(Tag &&value)
#define AWS_GAMELIFT_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
TagResourceRequest & WithResourceARN(const char *value)
const Aws::String & GetResourceARN() const
const Aws::Vector< Tag > & GetTags() const
TagResourceRequest & WithResourceARN(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
TagResourceRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
TagResourceRequest & WithResourceARN(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResourceARN(const Aws::String &value)