AWS SDK for C++  1.9.122
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lambda
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetResource() const{ return m_resource; }
40 
44  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
45 
49  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
50 
54  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
55 
59  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
60 
64  inline TagResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
65 
69  inline TagResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
70 
74  inline TagResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
75 
76 
80  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
81 
85  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 
90  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 
95  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 
100  inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
101 
105  inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
106 
110  inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 
115  inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
116 
120  inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
121 
125  inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 
130  inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 
135  inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 
140  inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
141 
142  private:
143 
144  Aws::String m_resource;
145  bool m_resourceHasBeenSet;
146 
148  bool m_tagsHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace Lambda
153 } // namespace Aws
Aws::Lambda::Model::TagResourceRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: TagResourceRequest.h:80
Aws::Lambda::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Aws::Lambda::Model::TagResourceRequest::SetResource
void SetResource(Aws::String &&value)
Definition: TagResourceRequest.h:54
Aws::Lambda::Model::TagResourceRequest
Definition: TagResourceRequest.h:23
Aws::Lambda::Model::TagResourceRequest::GetResource
const Aws::String & GetResource() const
Definition: TagResourceRequest.h:39
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: TagResourceRequest.h:110
Aws::Lambda::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: TagResourceRequest.h:120
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::TagResourceRequest::WithResource
TagResourceRequest & WithResource(const char *value)
Definition: TagResourceRequest.h:74
Aws::Lambda::Model::TagResourceRequest::WithResource
TagResourceRequest & WithResource(Aws::String &&value)
Definition: TagResourceRequest.h:69
Aws::Lambda::Model::TagResourceRequest::WithResource
TagResourceRequest & WithResource(const Aws::String &value)
Definition: TagResourceRequest.h:64
Aws::Lambda::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourceRequest.h:100
Aws::Lambda::Model::TagResourceRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourceRequest.h:95
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const char *key, const char *value)
Definition: TagResourceRequest.h:140
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: TagResourceRequest.h:125
AWSString.h
Aws::Lambda::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:85
LambdaRequest.h
Aws::Lambda::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourceRequest.h:90
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::TagResourceRequest::SetResource
void SetResource(const Aws::String &value)
Definition: TagResourceRequest.h:49
Aws::Lambda::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourceRequest.h:105
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, const char *value)
Definition: TagResourceRequest.h:135
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: TagResourceRequest.h:115
Aws::Lambda::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const char *key, Aws::String &&value)
Definition: TagResourceRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::TagResourceRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: TagResourceRequest.h:44
AWSMap.h
Lambda_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Lambda::Model::TagResourceRequest::SetResource
void SetResource(const char *value)
Definition: TagResourceRequest.h:59
Aws::Lambda::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:31