AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticBeanstalk
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 "UpdateTagsForResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
45  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
46 
51  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 
57  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
58 
63  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 
69  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
70 
75  inline UpdateTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
76 
81  inline UpdateTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
82 
87  inline UpdateTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
88 
89 
95  inline const Aws::Vector<Tag>& GetTagsToAdd() const{ return m_tagsToAdd; }
96 
102  inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
103 
109  inline void SetTagsToAdd(const Aws::Vector<Tag>& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = value; }
110 
116  inline void SetTagsToAdd(Aws::Vector<Tag>&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::move(value); }
117 
123  inline UpdateTagsForResourceRequest& WithTagsToAdd(const Aws::Vector<Tag>& value) { SetTagsToAdd(value); return *this;}
124 
130  inline UpdateTagsForResourceRequest& WithTagsToAdd(Aws::Vector<Tag>&& value) { SetTagsToAdd(std::move(value)); return *this;}
131 
137  inline UpdateTagsForResourceRequest& AddTagsToAdd(const Tag& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
138 
144  inline UpdateTagsForResourceRequest& AddTagsToAdd(Tag&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(std::move(value)); return *this; }
145 
146 
152  inline const Aws::Vector<Aws::String>& GetTagsToRemove() const{ return m_tagsToRemove; }
153 
159  inline bool TagsToRemoveHasBeenSet() const { return m_tagsToRemoveHasBeenSet; }
160 
166  inline void SetTagsToRemove(const Aws::Vector<Aws::String>& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove = value; }
167 
173  inline void SetTagsToRemove(Aws::Vector<Aws::String>&& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove = std::move(value); }
174 
180  inline UpdateTagsForResourceRequest& WithTagsToRemove(const Aws::Vector<Aws::String>& value) { SetTagsToRemove(value); return *this;}
181 
187  inline UpdateTagsForResourceRequest& WithTagsToRemove(Aws::Vector<Aws::String>&& value) { SetTagsToRemove(std::move(value)); return *this;}
188 
194  inline UpdateTagsForResourceRequest& AddTagsToRemove(const Aws::String& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(value); return *this; }
195 
201  inline UpdateTagsForResourceRequest& AddTagsToRemove(Aws::String&& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(std::move(value)); return *this; }
202 
208  inline UpdateTagsForResourceRequest& AddTagsToRemove(const char* value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(value); return *this; }
209 
210  private:
211 
212  Aws::String m_resourceArn;
213  bool m_resourceArnHasBeenSet;
214 
215  Aws::Vector<Tag> m_tagsToAdd;
216  bool m_tagsToAddHasBeenSet;
217 
218  Aws::Vector<Aws::String> m_tagsToRemove;
219  bool m_tagsToRemoveHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace ElasticBeanstalk
224 } // namespace Aws
UpdateTagsForResourceRequest & WithResourceArn(const char *value)
#define AWS_ELASTICBEANSTALK_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetTagsToRemove(const Aws::Vector< Aws::String > &value)
UpdateTagsForResourceRequest & AddTagsToRemove(const Aws::String &value)
UpdateTagsForResourceRequest & AddTagsToAdd(const Tag &value)
UpdateTagsForResourceRequest & WithTagsToRemove(const Aws::Vector< Aws::String > &value)
UpdateTagsForResourceRequest & WithResourceArn(Aws::String &&value)
UpdateTagsForResourceRequest & WithTagsToAdd(Aws::Vector< Tag > &&value)
UpdateTagsForResourceRequest & WithTagsToRemove(Aws::Vector< Aws::String > &&value)
UpdateTagsForResourceRequest & AddTagsToRemove(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTagsForResourceRequest & WithResourceArn(const Aws::String &value)
UpdateTagsForResourceRequest & AddTagsToRemove(Aws::String &&value)
UpdateTagsForResourceRequest & WithTagsToAdd(const Aws::Vector< Tag > &value)