AWS SDK for C++  1.9.19
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 EMR
22 {
23 namespace Model
24 {
25 
37  {
38  public:
39  Tag();
43 
44 
51  inline const Aws::String& GetKey() const{ return m_key; }
52 
59  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 
67  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
68 
75  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
76 
83  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
84 
91  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
92 
99  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
100 
107  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
108 
109 
116  inline const Aws::String& GetValue() const{ return m_value; }
117 
124  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
125 
132  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
133 
140  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
141 
148  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
149 
156  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
157 
164  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
165 
172  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
173 
174  private:
175 
176  Aws::String m_key;
177  bool m_keyHasBeenSet;
178 
179  Aws::String m_value;
180  bool m_valueHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace EMR
185 } // namespace Aws
Aws::EMR::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:67
Aws::EMR::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:124
Aws::EMR::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:116
Aws::EMR::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
Aws::EMR::Model::Tag::Tag
Tag()
Aws::EMR::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:83
Aws::EMR::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:156
Aws::EMR::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:99
Aws::EMR::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:107
Aws::EMR::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:164
Aws::EMR::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:91
Aws::EMR::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:148
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::Tag
Definition: Tag.h:37
Aws::EMR::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:140
Aws::EMR::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:172
Aws::EMR::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:132
Aws::EMR::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:59
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28