AWS SDK for C++  1.8.54
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 GameLift
22 {
23 namespace Model
24 {
25 
39  {
40  public:
41  Tag();
43  Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
46 
51  inline const Aws::String& GetKey() const{ return m_key; }
52 
57  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 
63  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
64 
69  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
70 
75  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
76 
81  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
82 
87  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
88 
93  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
94 
95 
100  inline const Aws::String& GetValue() const{ return m_value; }
101 
106  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
107 
112  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
113 
118  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
119 
124  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
125 
130  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
131 
136  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
137 
142  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
143 
144  private:
145 
146  Aws::String m_key;
147  bool m_keyHasBeenSet;
148 
149  Aws::String m_value;
150  bool m_valueHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace GameLift
155 } // namespace Aws
#define AWS_GAMELIFT_API
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:87
void SetValue(const char *value)
Definition: Tag.h:124
const Aws::String & GetValue() const
Definition: Tag.h:100
void SetKey(const char *value)
Definition: Tag.h:75
void SetKey(Aws::String &&value)
Definition: Tag.h:69
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:130
void SetValue(Aws::String &&value)
Definition: Tag.h:118
void SetValue(const Aws::String &value)
Definition: Tag.h:112
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:136
Tag & WithKey(const char *value)
Definition: Tag.h:93
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:81
bool KeyHasBeenSet() const
Definition: Tag.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetKey(const Aws::String &value)
Definition: Tag.h:63
bool ValueHasBeenSet() const
Definition: Tag.h:106
Tag & WithValue(const char *value)
Definition: Tag.h:142
const Aws::String & GetKey() const
Definition: Tag.h:51