AWS SDK for C++  1.9.71
AWS SDK for C++
CreateTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mq/MQ_EXPORTS.h>
8 #include <aws/mq/MQRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MQ
16 {
17 namespace Model
18 {
19 
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 "CreateTags"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
44 
48  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 
53  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
54 
58  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
59 
63  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
64 
68  inline CreateTagsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
69 
73  inline CreateTagsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
74 
78  inline CreateTagsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
79 
80 
84  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
85 
89  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 
94  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 
99  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
100 
104  inline CreateTagsRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
105 
109  inline CreateTagsRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
110 
114  inline CreateTagsRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 
119  inline CreateTagsRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 
124  inline CreateTagsRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 
129  inline CreateTagsRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 
134  inline CreateTagsRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 
139  inline CreateTagsRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 
144  inline CreateTagsRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
145 
146  private:
147 
148  Aws::String m_resourceArn;
149  bool m_resourceArnHasBeenSet;
150 
152  bool m_tagsHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace MQ
157 } // namespace Aws
Aws::MQ::Model::CreateTagsRequest
Definition: CreateTagsRequest.h:27
AWS_MQ_API
#define AWS_MQ_API
Definition: MQ_EXPORTS.h:28
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateTagsRequest.h:129
Aws::MQ::Model::CreateTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTagsRequest.h:89
Aws::MQ::Model::CreateTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTagsRequest.h:35
MQ_EXPORTS.h
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateTagsRequest.h:124
Aws::MQ::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateTagsRequest.h:109
Aws::MQ::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateTagsRequest.h:104
Aws::MQ::Model::CreateTagsRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateTagsRequest.h:99
Aws::MQ::Model::CreateTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MQ::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(Aws::String &&value)
Definition: CreateTagsRequest.h:73
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateTagsRequest.h:139
Aws::MQ::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(const Aws::String &value)
Definition: CreateTagsRequest.h:68
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateTagsRequest.h:119
Aws::MQ::Model::CreateTagsRequest::CreateTagsRequest
CreateTagsRequest()
Aws::MQ::Model::CreateTagsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: CreateTagsRequest.h:48
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateTagsRequest.h:114
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const char *key, const char *value)
Definition: CreateTagsRequest.h:144
Aws::MQ::Model::CreateTagsRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateTagsRequest.h:84
AWSString.h
Aws::MQ::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(const char *value)
Definition: CreateTagsRequest.h:78
MQRequest.h
Aws::MQ::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: CreateTagsRequest.h:58
Aws::MQ::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: CreateTagsRequest.h:53
Aws::MQ::Model::CreateTagsRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateTagsRequest.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::MQ::MQRequest
Definition: MQRequest.h:17
Aws::MQ::Model::CreateTagsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: CreateTagsRequest.h:43
Aws::MQ::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: CreateTagsRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Aws::MQ::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateTagsRequest.h:134
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19