AWS SDK for C++  1.9.67
AWS SDK for C++
GameProperty.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:
45 
46 
50  inline const Aws::String& GetKey() const{ return m_key; }
51 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
60  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
61 
65  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
66 
70  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
71 
75  inline GameProperty& WithKey(const Aws::String& value) { SetKey(value); return *this;}
76 
80  inline GameProperty& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
81 
85  inline GameProperty& WithKey(const char* value) { SetKey(value); return *this;}
86 
87 
91  inline const Aws::String& GetValue() const{ return m_value; }
92 
96  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
97 
101  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
102 
106  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
107 
111  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
112 
116  inline GameProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
117 
121  inline GameProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
122 
126  inline GameProperty& WithValue(const char* value) { SetValue(value); return *this;}
127 
128  private:
129 
130  Aws::String m_key;
131  bool m_keyHasBeenSet;
132 
133  Aws::String m_value;
134  bool m_valueHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace GameLift
139 } // namespace Aws
Aws::GameLift::Model::GameProperty::SetKey
void SetKey(Aws::String &&value)
Definition: GameProperty.h:65
Aws::GameLift::Model::GameProperty::GetKey
const Aws::String & GetKey() const
Definition: GameProperty.h:50
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GameProperty::WithValue
GameProperty & WithValue(const Aws::String &value)
Definition: GameProperty.h:116
Aws::GameLift::Model::GameProperty::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: GameProperty.h:55
Aws::GameLift::Model::GameProperty::SetValue
void SetValue(const char *value)
Definition: GameProperty.h:111
Aws::GameLift::Model::GameProperty::GetValue
const Aws::String & GetValue() const
Definition: GameProperty.h:91
Aws::GameLift::Model::GameProperty::WithValue
GameProperty & WithValue(const char *value)
Definition: GameProperty.h:126
Aws::GameLift::Model::GameProperty::WithKey
GameProperty & WithKey(Aws::String &&value)
Definition: GameProperty.h:80
GameLift_EXPORTS.h
Aws::GameLift::Model::GameProperty::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: GameProperty.h:96
Aws::GameLift::Model::GameProperty::WithValue
GameProperty & WithValue(Aws::String &&value)
Definition: GameProperty.h:121
Aws::GameLift::Model::GameProperty::GameProperty
GameProperty(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::GameProperty::SetKey
void SetKey(const Aws::String &value)
Definition: GameProperty.h:60
Aws::GameLift::Model::GameProperty::SetValue
void SetValue(const Aws::String &value)
Definition: GameProperty.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::GameLift::Model::GameProperty::WithKey
GameProperty & WithKey(const char *value)
Definition: GameProperty.h:85
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::GameProperty::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::GameProperty::WithKey
GameProperty & WithKey(const Aws::String &value)
Definition: GameProperty.h:75
Aws::GameLift::Model::GameProperty::SetKey
void SetKey(const char *value)
Definition: GameProperty.h:70
Aws::GameLift::Model::GameProperty
Definition: GameProperty.h:39
Aws::GameLift::Model::GameProperty::operator=
GameProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameProperty::SetValue
void SetValue(Aws::String &&value)
Definition: GameProperty.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::GameProperty::GameProperty
GameProperty()