AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GameProperty.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
37 public:
38 AWS_GAMELIFT_API GameProperty() = default;
39 AWS_GAMELIFT_API GameProperty(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
50 inline const Aws::String& GetKey() const { return m_key; }
51 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 template <typename KeyT = Aws::String>
53 void SetKey(KeyT&& value) {
54 m_keyHasBeenSet = true;
55 m_key = std::forward<KeyT>(value);
56 }
57 template <typename KeyT = Aws::String>
58 GameProperty& WithKey(KeyT&& value) {
59 SetKey(std::forward<KeyT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetValue() const { return m_value; }
69 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 template <typename ValueT = Aws::String>
71 void SetValue(ValueT&& value) {
72 m_valueHasBeenSet = true;
73 m_value = std::forward<ValueT>(value);
74 }
75 template <typename ValueT = Aws::String>
76 GameProperty& WithValue(ValueT&& value) {
77 SetValue(std::forward<ValueT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_key;
83
84 Aws::String m_value;
85 bool m_keyHasBeenSet = false;
86 bool m_valueHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace GameLift
91} // 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