AWS SDK for C++  1.8.71
AWS SDK for C++
AddTagsToResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/neptune/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Neptune
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 "AddTagsToResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
48 
55  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
56 
63  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
64 
71  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
72 
79  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
80 
87  inline AddTagsToResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
88 
95  inline AddTagsToResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
96 
103  inline AddTagsToResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
104 
105 
109  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
110 
114  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 
119  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 
124  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 
129  inline AddTagsToResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
130 
134  inline AddTagsToResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 
139  inline AddTagsToResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
140 
144  inline AddTagsToResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145 
146  private:
147 
148  Aws::String m_resourceName;
149  bool m_resourceNameHasBeenSet;
150 
151  Aws::Vector<Tag> m_tags;
152  bool m_tagsHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace Neptune
157 } // namespace Aws
AddTagsToResourceRequest & AddTags(Tag &&value)
AddTagsToResourceRequest & WithResourceName(const Aws::String &value)
#define AWS_NEPTUNE_API
AddTagsToResourceRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AddTagsToResourceRequest & WithResourceName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
AddTagsToResourceRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddTagsToResourceRequest & AddTags(const Tag &value)
AddTagsToResourceRequest & WithResourceName(Aws::String &&value)