AWS SDK for C++  1.9.107
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
Aws::Neptune::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:95
Aws::Neptune::Model::AddTagsToResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsToResourceRequest.h:114
Aws::Neptune::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:63
Aws::Http::URI
Definition: URI.h:32
Aws::Neptune::Model::AddTagsToResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: AddTagsToResourceRequest.h:55
Neptune_EXPORTS.h
Aws::Neptune::Model::AddTagsToResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsToResourceRequest.h:109
Aws::Neptune::Model::AddTagsToResourceRequest
Definition: AddTagsToResourceRequest.h:24
Aws::Neptune::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(Tag &&value)
Definition: AddTagsToResourceRequest.h:144
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Neptune::Model::AddTagsToResourceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSVector.h
Aws::Neptune::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:129
Aws::Neptune::Model::AddTagsToResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:124
Aws::Neptune::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:87
Aws::Neptune::NeptuneRequest
Definition: NeptuneRequest.h:17
Tag.h
Aws::Neptune::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(const char *value)
Definition: AddTagsToResourceRequest.h:103
Aws::Neptune::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(const Tag &value)
Definition: AddTagsToResourceRequest.h:139
Aws::Neptune::Model::AddTagsToResourceRequest::AddTagsToResourceRequest
AddTagsToResourceRequest()
Aws::Neptune::Model::Tag
Definition: Tag.h:33
Aws::Neptune::Model::AddTagsToResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:119
AWSString.h
Aws::Neptune::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: AddTagsToResourceRequest.h:79
Aws::Neptune::Model::AddTagsToResourceRequest::SerializePayload
Aws::String SerializePayload() const override
NeptuneRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Neptune::Model::AddTagsToResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: AddTagsToResourceRequest.h:47
Aws::Neptune::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:134
Aws::Neptune::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:71
Aws::Neptune::Model::AddTagsToResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsToResourceRequest.h:32