AWS SDK for C++  0.14.3
AWS SDK for C++
GameProperty.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace GameLift
29 {
30 namespace Model
31 {
32 
41  {
42  public:
43  GameProperty();
44  GameProperty(const Aws::Utils::Json::JsonValue& jsonValue);
45  GameProperty& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
48 
49  inline const Aws::String& GetKey() const{ return m_key; }
50 
51 
52  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
53 
54 
55  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
56 
57 
58  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
59 
60 
61  inline GameProperty& WithKey(const Aws::String& value) { SetKey(value); return *this;}
62 
63 
64  inline GameProperty& WithKey(Aws::String&& value) { SetKey(value); return *this;}
65 
66 
67  inline GameProperty& WithKey(const char* value) { SetKey(value); return *this;}
68 
69 
70  inline const Aws::String& GetValue() const{ return m_value; }
71 
72 
73  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
74 
75 
76  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
77 
78 
79  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
80 
81 
82  inline GameProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
83 
84 
85  inline GameProperty& WithValue(Aws::String&& value) { SetValue(value); return *this;}
86 
87 
88  inline GameProperty& WithValue(const char* value) { SetValue(value); return *this;}
89 
90  private:
91  Aws::String m_key;
92  bool m_keyHasBeenSet;
93  Aws::String m_value;
94  bool m_valueHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace GameLift
99 } // namespace Aws
const Aws::String & GetValue() const
Definition: GameProperty.h:70
void SetKey(const Aws::String &value)
Definition: GameProperty.h:52
#define AWS_GAMELIFT_API
void SetKey(Aws::String &&value)
Definition: GameProperty.h:55
void SetKey(const char *value)
Definition: GameProperty.h:58
void SetValue(const Aws::String &value)
Definition: GameProperty.h:73
GameProperty & WithValue(const char *value)
Definition: GameProperty.h:88
GameProperty & WithKey(Aws::String &&value)
Definition: GameProperty.h:64
GameProperty & WithValue(Aws::String &&value)
Definition: GameProperty.h:85
void SetValue(const char *value)
Definition: GameProperty.h:79
GameProperty & WithKey(const Aws::String &value)
Definition: GameProperty.h:61
const Aws::String & GetKey() const
Definition: GameProperty.h:49
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:82
void SetValue(Aws::String &&value)
Definition: GameProperty.h:76
JSON (JavaScript Object Notation).
GameProperty & WithKey(const char *value)
Definition: GameProperty.h:67