AWS SDK for C++  1.9.160
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ResourceGroupsTaggingAPI
22 {
23 namespace Model
24 {
25 
37  {
38  public:
39  Tag();
43 
44 
49  inline const Aws::String& GetKey() const{ return m_key; }
50 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
61  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
62 
67  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
68 
73  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
74 
79  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
80 
85  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
86 
91  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
92 
93 
98  inline const Aws::String& GetValue() const{ return m_value; }
99 
104  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
105 
110  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
111 
116  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
117 
122  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
123 
128  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
129 
134  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
135 
140  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
141 
142  private:
143 
144  Aws::String m_key;
145  bool m_keyHasBeenSet;
146 
147  Aws::String m_value;
148  bool m_valueHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ResourceGroupsTaggingAPI
153 } // namespace Aws
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:128
Aws::ResourceGroupsTaggingAPI::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:55
AWS_RESOURCEGROUPSTAGGINGAPI_API
#define AWS_RESOURCEGROUPSTAGGINGAPI_API
Definition: ResourceGroupsTaggingAPI_EXPORTS.h:28
Aws::ResourceGroupsTaggingAPI::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ResourceGroupsTaggingAPI::Model::Tag
Definition: Tag.h:37
Aws::ResourceGroupsTaggingAPI::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:116
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:122
Aws::ResourceGroupsTaggingAPI::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:49
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:61
Aws::ResourceGroupsTaggingAPI::Model::Tag::Tag
Tag()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:85
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:91
Aws::ResourceGroupsTaggingAPI::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:73
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:110
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:79
ResourceGroupsTaggingAPI_EXPORTS.h
Aws::ResourceGroupsTaggingAPI::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:134
Aws::ResourceGroupsTaggingAPI::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:140
Aws::ResourceGroupsTaggingAPI::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:98
Aws::ResourceGroupsTaggingAPI::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:67