AWS SDK for C++  1.9.131
AWS SDK for C++
CreateTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MediaLive
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateTags"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
39 
40  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
41 
42 
43  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 
45 
46  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
47 
48 
49  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
50 
51 
52  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
53 
54 
55  inline CreateTagsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
56 
57 
58  inline CreateTagsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
59 
60 
61  inline CreateTagsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
62 
63 
64 
65  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
66 
67 
68  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 
70 
71  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
72 
73 
74  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 
76 
77  inline CreateTagsRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
78 
79 
80  inline CreateTagsRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
81 
82 
83  inline CreateTagsRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 
85 
86  inline CreateTagsRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
87 
88 
89  inline CreateTagsRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
90 
91 
92  inline CreateTagsRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 
94 
95  inline CreateTagsRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 
97 
98  inline CreateTagsRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 
100 
101  inline CreateTagsRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102 
103  private:
104 
105  Aws::String m_resourceArn;
106  bool m_resourceArnHasBeenSet;
107 
109  bool m_tagsHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace MediaLive
114 } // namespace Aws
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateTagsRequest.h:98
Aws::MediaLive::Model::CreateTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaLive::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(const char *value)
Definition: CreateTagsRequest.h:61
Aws::MediaLive::Model::CreateTagsRequest::CreateTagsRequest
CreateTagsRequest()
Aws::MediaLive::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(const Aws::String &value)
Definition: CreateTagsRequest.h:55
Aws::MediaLive::Model::CreateTagsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: CreateTagsRequest.h:43
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateTagsRequest.h:89
Aws::MediaLive::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: CreateTagsRequest.h:49
Aws::MediaLive::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: CreateTagsRequest.h:52
Aws::MediaLive::Model::CreateTagsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: CreateTagsRequest.h:46
Aws::MediaLive::MediaLiveRequest
Definition: MediaLiveRequest.h:17
Aws::MediaLive::Model::CreateTagsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: CreateTagsRequest.h:40
Aws::MediaLive::Model::CreateTagsRequest::WithResourceArn
CreateTagsRequest & WithResourceArn(Aws::String &&value)
Definition: CreateTagsRequest.h:58
AWS_MEDIALIVE_API
#define AWS_MEDIALIVE_API
Definition: MediaLive_EXPORTS.h:28
Aws::MediaLive::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateTagsRequest.h:80
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateTagsRequest.h:86
Aws::MediaLive::Model::CreateTagsRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateTagsRequest.h:71
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateTagsRequest.h:92
AWSString.h
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateTagsRequest.h:83
Aws::MediaLive::Model::CreateTagsRequest
Definition: CreateTagsRequest.h:26
Aws::MediaLive::Model::CreateTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTagsRequest.h:68
Aws::MediaLive::Model::CreateTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTagsRequest.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::MediaLive::Model::CreateTagsRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateTagsRequest.h:65
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const char *key, const char *value)
Definition: CreateTagsRequest.h:101
MediaLiveRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaLive::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateTagsRequest.h:95
Aws::MediaLive::Model::CreateTagsRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateTagsRequest.h:74
AWSMap.h
Aws::MediaLive::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateTagsRequest.h:77
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
MediaLive_EXPORTS.h