AWS SDK for C++  1.9.154
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 MediaConvert
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 
40  inline const Aws::String& GetArn() const{ return m_arn; }
41 
46  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 
52  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 
58  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
59 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
70  inline TagResourceRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
76  inline TagResourceRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
82  inline TagResourceRequest& WithArn(const char* value) { SetArn(value); return *this;}
83 
84 
89  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
90 
95  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 
101  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 
107  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 
113  inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
114 
119  inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
120 
125  inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
126 
131  inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 
137  inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
138 
143  inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
144 
149  inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 
155  inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
156 
161  inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162 
163  private:
164 
165  Aws::String m_arn;
166  bool m_arnHasBeenSet;
167 
169  bool m_tagsHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace MediaConvert
174 } // namespace Aws
Aws::MediaConvert::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourceRequest.h:101
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: TagResourceRequest.h:131
MediaConvertRequest.h
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: TagResourceRequest.h:143
MediaConvert_EXPORTS.h
Aws::MediaConvert::Model::TagResourceRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: TagResourceRequest.h:89
Aws::MediaConvert::Model::TagResourceRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourceRequest.h:107
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::TagResourceRequest::SetArn
void SetArn(const Aws::String &value)
Definition: TagResourceRequest.h:52
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(Aws::String &&key, const char *value)
Definition: TagResourceRequest.h:155
Aws::MediaConvert::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(const Aws::String &value)
Definition: TagResourceRequest.h:70
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: TagResourceRequest.h:125
Aws::MediaConvert::Model::TagResourceRequest::SetArn
void SetArn(const char *value)
Definition: TagResourceRequest.h:64
Aws::MediaConvert::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
Aws::MediaConvert::MediaConvertRequest
Definition: MediaConvertRequest.h:17
Aws::MediaConvert::Model::TagResourceRequest::GetArn
const Aws::String & GetArn() const
Definition: TagResourceRequest.h:40
Aws::MediaConvert::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourceRequest.h:113
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: TagResourceRequest.h:137
Aws::MediaConvert::Model::TagResourceRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: TagResourceRequest.h:46
Aws::MediaConvert::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(Aws::String &&value)
Definition: TagResourceRequest.h:76
Aws::MediaConvert::Model::TagResourceRequest::WithArn
TagResourceRequest & WithArn(const char *value)
Definition: TagResourceRequest.h:82
Aws::MediaConvert::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaConvert::Model::TagResourceRequest::SetArn
void SetArn(Aws::String &&value)
Definition: TagResourceRequest.h:58
AWSString.h
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const char *key, Aws::String &&value)
Definition: TagResourceRequest.h:149
Aws::MediaConvert::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const char *key, const char *value)
Definition: TagResourceRequest.h:161
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaConvert::Model::TagResourceRequest
Definition: TagResourceRequest.h:23
Aws::MediaConvert::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:95
Aws::MediaConvert::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:31
Aws::MediaConvert::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourceRequest.h:119
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19