AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateTags"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
49  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
50 
55  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
56 
61  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
62 
67  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
68 
73  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
74 
79  inline CreateTagsRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
80 
85  inline CreateTagsRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
86 
91  inline CreateTagsRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
92 
93 
103  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 
114  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 
125  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 
136  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
137 
147  inline CreateTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 
158  inline CreateTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
159 
169  inline CreateTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
170 
180  inline CreateTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
181 
182  private:
183 
184  Aws::String m_resourceName;
185  bool m_resourceNameHasBeenSet;
186 
187  Aws::Vector<Tag> m_tags;
188  bool m_tagsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Redshift
193 } // namespace Aws
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetResourceName() const
CreateTagsRequest & WithResourceName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetResourceName(const Aws::String &value)
#define AWS_REDSHIFT_API
void SetTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
CreateTagsRequest & AddTags(Tag &&value)
CreateTagsRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResourceName(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateTagsRequest & AddTags(const Tag &value)
CreateTagsRequest & WithResourceName(const char *value)
CreateTagsRequest & WithResourceName(Aws::String &&value)
CreateTagsRequest & WithTags(const Aws::Vector< Tag > &value)