AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
54 inline const Aws::String& GetKey() const { return m_key; }
55 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 template <typename KeyT = Aws::String>
57 void SetKey(KeyT&& value) {
58 m_keyHasBeenSet = true;
59 m_key = std::forward<KeyT>(value);
60 }
61 template <typename KeyT = Aws::String>
62 GameProperty& WithKey(KeyT&& value) {
63 SetKey(std::forward<KeyT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetValue() const { return m_value; }
73 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
74 template <typename ValueT = Aws::String>
75 void SetValue(ValueT&& value) {
76 m_valueHasBeenSet = true;
77 m_value = std::forward<ValueT>(value);
78 }
79 template <typename ValueT = Aws::String>
80 GameProperty& WithValue(ValueT&& value) {
81 SetValue(std::forward<ValueT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_key;
87
88 Aws::String m_value;
89 bool m_keyHasBeenSet = false;
90 bool m_valueHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace GameLift
95} // 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