AWS SDK for C++  1.9.123
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 NetworkFirewall
22 {
23 namespace Model
24 {
25 
36  {
37  public:
38  Tag();
42 
43 
49  inline const Aws::String& GetKey() const{ return m_key; }
50 
56  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
57 
63  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
64 
70  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 
77  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
78 
84  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
85 
91  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
92 
98  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
99 
100 
106  inline const Aws::String& GetValue() const{ return m_value; }
107 
113  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
114 
120  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
121 
127  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
128 
134  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
135 
141  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
142 
148  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
149 
155  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
156 
157  private:
158 
159  Aws::String m_key;
160  bool m_keyHasBeenSet;
161 
162  Aws::String m_value;
163  bool m_valueHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace NetworkFirewall
168 } // namespace Aws
Aws::NetworkFirewall::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:49
Aws::NetworkFirewall::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::NetworkFirewall::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:127
Aws::NetworkFirewall::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:106
Aws::NetworkFirewall::Model::Tag
Definition: Tag.h:36
Aws::NetworkFirewall::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:63
Aws::NetworkFirewall::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:155
Aws::NetworkFirewall::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:134
Aws::NetworkFirewall::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:148
Aws::NetworkFirewall::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:56
Aws::NetworkFirewall::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:77
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::NetworkFirewall::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:91
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::Tag::Tag
Tag()
Aws::NetworkFirewall::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:141
Aws::NetworkFirewall::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:70
Aws::NetworkFirewall::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:113
NetworkFirewall_EXPORTS.h
Aws::NetworkFirewall::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:84