AWS SDK for C++  1.9.104
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 WAFV2
22 {
23 namespace Model
24 {
25 
41  {
42  public:
43  Tag();
47 
48 
54  inline const Aws::String& GetKey() const{ return m_key; }
55 
61  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
62 
68  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
69 
75  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
76 
82  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
83 
89  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
90 
96  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
97 
103  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
104 
105 
111  inline const Aws::String& GetValue() const{ return m_value; }
112 
118  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
119 
125  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
126 
132  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
133 
139  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
140 
146  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
147 
153  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
154 
160  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
161 
162  private:
163 
164  Aws::String m_key;
165  bool m_keyHasBeenSet;
166 
167  Aws::String m_value;
168  bool m_valueHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace WAFV2
173 } // namespace Aws
Aws::WAFV2::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:132
Aws::WAFV2::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:118
Aws::WAFV2::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:89
Aws::WAFV2::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:82
Aws::WAFV2::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:75
Aws::WAFV2::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:96
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:125
WAFV2_EXPORTS.h
Aws::WAFV2::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:146
Aws::WAFV2::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:103
Aws::WAFV2::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:68
Aws::WAFV2::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:153
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:61
Aws::WAFV2::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:139
Aws::WAFV2::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:160
Aws::WAFV2::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::Tag::Tag
Tag()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
Aws::WAFV2::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:111