AWS SDK for C++  0.12.9
AWS SDK for C++
FleetUtilization.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 
38  {
39  public:
42  FleetUtilization& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
49 
53  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
54 
58  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
59 
63  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
64 
68  inline FleetUtilization& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
69 
73  inline FleetUtilization& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
74 
78  inline FleetUtilization& WithFleetId(const char* value) { SetFleetId(value); return *this;}
79 
84  inline long GetActiveGameSessionCount() const{ return m_activeGameSessionCount; }
85 
90  inline void SetActiveGameSessionCount(long value) { m_activeGameSessionCountHasBeenSet = true; m_activeGameSessionCount = value; }
91 
96  inline FleetUtilization& WithActiveGameSessionCount(long value) { SetActiveGameSessionCount(value); return *this;}
97 
102  inline long GetCurrentPlayerSessionCount() const{ return m_currentPlayerSessionCount; }
103 
108  inline void SetCurrentPlayerSessionCount(long value) { m_currentPlayerSessionCountHasBeenSet = true; m_currentPlayerSessionCount = value; }
109 
114  inline FleetUtilization& WithCurrentPlayerSessionCount(long value) { SetCurrentPlayerSessionCount(value); return *this;}
115 
120  inline long GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
121 
126  inline void SetMaximumPlayerSessionCount(long value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
127 
132  inline FleetUtilization& WithMaximumPlayerSessionCount(long value) { SetMaximumPlayerSessionCount(value); return *this;}
133 
134  private:
135  Aws::String m_fleetId;
136  bool m_fleetIdHasBeenSet;
137  long m_activeGameSessionCount;
138  bool m_activeGameSessionCountHasBeenSet;
139  long m_currentPlayerSessionCount;
140  bool m_currentPlayerSessionCountHasBeenSet;
141  long m_maximumPlayerSessionCount;
142  bool m_maximumPlayerSessionCountHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace GameLift
147 } // namespace Aws
#define AWS_GAMELIFT_API
void SetFleetId(Aws::String &&value)
FleetUtilization & WithFleetId(Aws::String &&value)
FleetUtilization & WithCurrentPlayerSessionCount(long value)
FleetUtilization & WithFleetId(const char *value)
FleetUtilization & WithMaximumPlayerSessionCount(long value)
FleetUtilization & WithActiveGameSessionCount(long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FleetUtilization & WithFleetId(const Aws::String &value)
void SetFleetId(const Aws::String &value)
const Aws::String & GetFleetId() const
JSON (JavaScript Object Notation).