AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameProperty.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift
22{
23namespace Model
24{
25
41 {
42 public:
43 AWS_GAMELIFT_API GameProperty();
44 AWS_GAMELIFT_API GameProperty(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetKey() const{ return m_key; }
54 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
56 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
57 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
58 inline GameProperty& WithKey(const Aws::String& value) { SetKey(value); return *this;}
59 inline GameProperty& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
60 inline GameProperty& WithKey(const char* value) { SetKey(value); return *this;}
62
64
67 inline const Aws::String& GetValue() const{ return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
70 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
71 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
72 inline GameProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
73 inline GameProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
74 inline GameProperty& WithValue(const char* value) { SetValue(value); return *this;}
76 private:
77
78 Aws::String m_key;
79 bool m_keyHasBeenSet = false;
80
81 Aws::String m_value;
82 bool m_valueHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GameLift
87} // namespace Aws
GameProperty & WithValue(Aws::String &&value)
const Aws::String & GetValue() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameProperty & WithKey(Aws::String &&value)
const Aws::String & GetKey() const
void SetKey(const char *value)
AWS_GAMELIFT_API GameProperty(Aws::Utils::Json::JsonView jsonValue)
void SetKey(Aws::String &&value)
AWS_GAMELIFT_API GameProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
GameProperty & WithKey(const char *value)
GameProperty & WithValue(const char *value)
GameProperty & WithValue(const Aws::String &value)
GameProperty & WithKey(const Aws::String &value)
void SetValue(Aws::String &&value)
void SetValue(const Aws::String &value)
void SetValue(const char *value)
void SetKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue