AWS SDK for C++  1.9.109
AWS SDK for C++
AddTagsToResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddTagsToResource"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
51 
58  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
59 
66  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
67 
74  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
75 
82  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
83 
90  inline AddTagsToResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
91 
98  inline AddTagsToResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
99 
106  inline AddTagsToResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
107 
108 
112  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
113 
117  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 
122  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 
127  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 
132  inline AddTagsToResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
133 
137  inline AddTagsToResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
138 
142  inline AddTagsToResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 
147  inline AddTagsToResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
148 
149  private:
150 
151  Aws::String m_resourceName;
152  bool m_resourceNameHasBeenSet;
153 
154  Aws::Vector<Tag> m_tags;
155  bool m_tagsHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace RDS
160 } // namespace Aws
Aws::RDS::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:132
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::AddTagsToResourceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::AddTagsToResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:122
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(Tag &&value)
Definition: AddTagsToResourceRequest.h:147
Aws::RDS::Model::AddTagsToResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: AddTagsToResourceRequest.h:50
Aws::RDS::Model::AddTagsToResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:137
AWSVector.h
Aws::RDS::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:74
Aws::RDS::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:66
RDS_EXPORTS.h
Aws::RDS::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(const char *value)
Definition: AddTagsToResourceRequest.h:106
Aws::RDS::Model::AddTagsToResourceRequest::AddTagsToResourceRequest
AddTagsToResourceRequest()
AWSString.h
Aws::RDS::Model::AddTagsToResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: AddTagsToResourceRequest.h:58
Aws::RDS::Model::AddTagsToResourceRequest
Definition: AddTagsToResourceRequest.h:27
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::AddTagsToResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsToResourceRequest.h:117
Aws::RDS::Model::AddTagsToResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:127
Aws::RDS::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(const Tag &value)
Definition: AddTagsToResourceRequest.h:142
Aws::RDS::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:90
Aws::RDS::Model::AddTagsToResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: AddTagsToResourceRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::AddTagsToResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsToResourceRequest.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
RDSRequest.h
Aws::RDS::Model::AddTagsToResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsToResourceRequest.h:35
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::AddTagsToResourceRequest::WithResourceName
AddTagsToResourceRequest & WithResourceName(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:98