AWS SDK for C++  1.8.23
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:
41  GameProperty();
43  GameProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetKey(const Aws::String &value)
Definition: GameProperty.h:60
#define AWS_GAMELIFT_API
void SetKey(Aws::String &&value)
Definition: GameProperty.h:65
const Aws::String & GetKey() const
Definition: GameProperty.h:50
void SetKey(const char *value)
Definition: GameProperty.h:70
void SetValue(const Aws::String &value)
Definition: GameProperty.h:101
GameProperty & WithValue(const char *value)
Definition: GameProperty.h:126
GameProperty & WithKey(Aws::String &&value)
Definition: GameProperty.h:80
GameProperty & WithValue(Aws::String &&value)
Definition: GameProperty.h:121
void SetValue(const char *value)
Definition: GameProperty.h:111
GameProperty & WithKey(const Aws::String &value)
Definition: GameProperty.h:75
const Aws::String & GetValue() const
Definition: GameProperty.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GameProperty & WithValue(const Aws::String &value)
Definition: GameProperty.h:116
void SetValue(Aws::String &&value)
Definition: GameProperty.h:106
GameProperty & WithKey(const char *value)
Definition: GameProperty.h:85