AWS SDK for C++  1.9.154
AWS SDK for C++
ResourceTags.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace MediaConvert
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetArn() const{ return m_arn; }
46 
50  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 
55  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 
60  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 
65  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 
70  inline ResourceTags& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
75  inline ResourceTags& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 
80  inline ResourceTags& WithArn(const char* value) { SetArn(value); return *this;}
81 
82 
86  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
87 
91  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 
96  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 
101  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 
106  inline ResourceTags& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
107 
111  inline ResourceTags& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
112 
116  inline ResourceTags& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117 
121  inline ResourceTags& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
122 
126  inline ResourceTags& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 
131  inline ResourceTags& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
132 
136  inline ResourceTags& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 
141  inline ResourceTags& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 
146  inline ResourceTags& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 
148  private:
149 
150  Aws::String m_arn;
151  bool m_arnHasBeenSet;
152 
154  bool m_tagsHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace MediaConvert
159 } // namespace Aws
Aws::MediaConvert::Model::ResourceTags::WithArn
ResourceTags & WithArn(const Aws::String &value)
Definition: ResourceTags.h:70
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(const char *key, const char *value)
Definition: ResourceTags.h:146
Aws::MediaConvert::Model::ResourceTags::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ResourceTags.h:96
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(Aws::String &&key, const Aws::String &value)
Definition: ResourceTags.h:121
Aws::MediaConvert::Model::ResourceTags::SetArn
void SetArn(const Aws::String &value)
Definition: ResourceTags.h:55
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(const char *key, Aws::String &&value)
Definition: ResourceTags.h:136
Aws::MediaConvert::Model::ResourceTags::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ResourceTags.h:101
Aws::MediaConvert::Model::ResourceTags::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ResourceTags.h:91
Aws::MediaConvert::Model::ResourceTags::SetArn
void SetArn(const char *value)
Definition: ResourceTags.h:65
Aws::MediaConvert::Model::ResourceTags::ResourceTags
ResourceTags(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaConvert::Model::ResourceTags::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: ResourceTags.h:86
Aws::MediaConvert::Model::ResourceTags::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::MediaConvert::Model::ResourceTags::WithTags
ResourceTags & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ResourceTags.h:106
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(Aws::String &&key, Aws::String &&value)
Definition: ResourceTags.h:131
Aws::MediaConvert::Model::ResourceTags::SetArn
void SetArn(Aws::String &&value)
Definition: ResourceTags.h:60
Aws::MediaConvert::Model::ResourceTags::WithArn
ResourceTags & WithArn(Aws::String &&value)
Definition: ResourceTags.h:75
Aws::MediaConvert::Model::ResourceTags::operator=
ResourceTags & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(const Aws::String &key, const Aws::String &value)
Definition: ResourceTags.h:116
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::ResourceTags
Definition: ResourceTags.h:34
Aws::MediaConvert::Model::ResourceTags::ResourceTags
ResourceTags()
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(const Aws::String &key, Aws::String &&value)
Definition: ResourceTags.h:126
Aws::MediaConvert::Model::ResourceTags::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ResourceTags.h:50
AWSMap.h
Aws::MediaConvert::Model::ResourceTags::WithArn
ResourceTags & WithArn(const char *value)
Definition: ResourceTags.h:80
Aws::MediaConvert::Model::ResourceTags::AddTags
ResourceTags & AddTags(Aws::String &&key, const char *value)
Definition: ResourceTags.h:141
Aws::MediaConvert::Model::ResourceTags::WithTags
ResourceTags & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ResourceTags.h:111
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MediaConvert::Model::ResourceTags::GetArn
const Aws::String & GetArn() const
Definition: ResourceTags.h:45