AWS SDK for C++  1.9.103
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 
40  {
41  public:
42  Tag();
46 
47 
52  inline const Aws::String& GetKey() const{ return m_key; }
53 
58  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
59 
64  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
65 
70  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 
76  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
77 
82  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
83 
88  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
89 
94  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
95 
96 
101  inline const Aws::String& GetValue() const{ return m_value; }
102 
107  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
108 
113  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
114 
119  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
120 
125  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
126 
131  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
132 
137  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
138 
143  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
144 
145  private:
146 
147  Aws::String m_key;
148  bool m_keyHasBeenSet;
149 
150  Aws::String m_value;
151  bool m_valueHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace GameLift
156 } // namespace Aws
Aws::GameLift::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:143
Aws::GameLift::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:82
Aws::GameLift::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:64
Aws::GameLift::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:70
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:107
Aws::GameLift::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:119
Aws::GameLift::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:125
Aws::GameLift::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:58
GameLift_EXPORTS.h
Aws::GameLift::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:131
Aws::GameLift::Model::Tag::Tag
Tag()
Aws::GameLift::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:113
Aws::GameLift::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:52
Aws::GameLift::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:88
Aws::GameLift::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:94
Aws::GameLift::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::Tag
Definition: Tag.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:101
Aws::GameLift::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:137