AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename KeyT = Aws::String>
56 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
57 template<typename KeyT = Aws::String>
58 GameProperty& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
60
62
65 inline const Aws::String& GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 template<typename ValueT = Aws::String>
68 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
69 template<typename ValueT = Aws::String>
70 GameProperty& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
72 private:
73
74 Aws::String m_key;
75 bool m_keyHasBeenSet = false;
76
77 Aws::String m_value;
78 bool m_valueHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace GameLift
83} // namespace Aws
GameProperty & WithValue(ValueT &&value)
const Aws::String & GetValue() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKey() const
AWS_GAMELIFT_API GameProperty(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API GameProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API GameProperty()=default
GameProperty & WithKey(KeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue