AWS SDK for C++  1.8.95
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 
46  {
47  public:
48  Tag();
50  Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
51  Aws::Utils::Json::JsonValue Jsonize() const;
52 
53 
59  inline const Aws::String& GetKey() const{ return m_key; }
60 
66  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
67 
73  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
74 
80  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
81 
87  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
88 
94  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
95 
101  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
102 
108  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
109 
110 
116  inline const Aws::String& GetValue() const{ return m_value; }
117 
123  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
124 
130  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
131 
137  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
138 
144  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
145 
151  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
152 
158  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
159 
165  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
166 
167  private:
168 
169  Aws::String m_key;
170  bool m_keyHasBeenSet;
171 
172  Aws::String m_value;
173  bool m_valueHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace WAFV2
178 } // namespace Aws
void SetKey(Aws::String &&value)
Definition: Tag.h:80
bool KeyHasBeenSet() const
Definition: Tag.h:66
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:158
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:101
const Aws::String & GetValue() const
Definition: Tag.h:116
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
void SetValue(Aws::String &&value)
Definition: Tag.h:137
bool ValueHasBeenSet() const
Definition: Tag.h:123
Tag & WithKey(const char *value)
Definition: Tag.h:108
const Aws::String & GetKey() const
Definition: Tag.h:59
void SetValue(const char *value)
Definition: Tag.h:144
void SetKey(const char *value)
Definition: Tag.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetValue(const Aws::String &value)
Definition: Tag.h:130
void SetKey(const Aws::String &value)
Definition: Tag.h:73
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:151
Tag & WithValue(const char *value)
Definition: Tag.h:165
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:94