AWS SDK for C++  1.9.1
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 Athena
22 {
23 namespace Model
24 {
25 
44  {
45  public:
46  Tag();
50 
51 
58  inline const Aws::String& GetKey() const{ return m_key; }
59 
66  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
67 
74  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
75 
82  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
83 
90  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
91 
98  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
99 
106  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
107 
114  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
115 
116 
122  inline const Aws::String& GetValue() const{ return m_value; }
123 
129  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
130 
136  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
137 
143  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
144 
150  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
151 
157  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
158 
164  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
165 
171  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
172 
173  private:
174 
175  Aws::String m_key;
176  bool m_keyHasBeenSet;
177 
178  Aws::String m_value;
179  bool m_valueHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace Athena
184 } // namespace Aws
Aws::Athena::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:114
Aws::Athena::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:90
Aws::Athena::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:82
Aws::Athena::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:164
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:129
Aws::Athena::Model::Tag::Tag
Tag()
Aws::Athena::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:157
Aws::Athena::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:143
Aws::Athena::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:106
Aws::Athena::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:58
Aws::Athena::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:122
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:98
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Athena::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:66
Aws::Athena::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:136
Aws::Athena::Model::Tag
Definition: Tag.h:44
Aws::Athena::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:171
Aws::Athena::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)