AWS SDK for C++  1.9.125
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 WAFRegional
22 {
23 namespace Model
24 {
25 
47  {
48  public:
49  Tag();
53 
54 
58  inline const Aws::String& GetKey() const{ return m_key; }
59 
63  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 
68  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
69 
73  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
74 
78  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
79 
83  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
84 
88  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
89 
93  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
94 
95 
99  inline const Aws::String& GetValue() const{ return m_value; }
100 
104  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
105 
109  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
110 
114  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
115 
119  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
120 
124  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
125 
129  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
130 
134  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
135 
136  private:
137 
138  Aws::String m_key;
139  bool m_keyHasBeenSet;
140 
141  Aws::String m_value;
142  bool m_valueHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace WAFRegional
147 } // namespace Aws
Aws::WAFRegional::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:109
Aws::WAFRegional::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:73
Aws::WAFRegional::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:134
Aws::WAFRegional::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:83
Aws::WAFRegional::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:104
Aws::WAFRegional::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:58
AWS_WAFREGIONAL_API
#define AWS_WAFREGIONAL_API
Definition: WAFRegional_EXPORTS.h:28
Aws::WAFRegional::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:129
Aws::WAFRegional::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFRegional::Model::Tag::Tag
Tag()
Aws::WAFRegional::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFRegional::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
WAFRegional_EXPORTS.h
Aws::WAFRegional::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:63
Aws::WAFRegional::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:124
Aws::WAFRegional::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:119
Aws::WAFRegional::Model::Tag
Definition: Tag.h:47
Aws::WAFRegional::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFRegional::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:88
Aws::WAFRegional::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:99
Aws::WAFRegional::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:78
Aws::WAFRegional::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:114