AWS SDK for C++  0.14.3
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 int GetActiveServerProcessCount() const{ return m_activeServerProcessCount; }
85 
90  inline void SetActiveServerProcessCount(int value) { m_activeServerProcessCountHasBeenSet = true; m_activeServerProcessCount = value; }
91 
96  inline FleetUtilization& WithActiveServerProcessCount(int value) { SetActiveServerProcessCount(value); return *this;}
97 
102  inline int GetActiveGameSessionCount() const{ return m_activeGameSessionCount; }
103 
108  inline void SetActiveGameSessionCount(int value) { m_activeGameSessionCountHasBeenSet = true; m_activeGameSessionCount = value; }
109 
114  inline FleetUtilization& WithActiveGameSessionCount(int value) { SetActiveGameSessionCount(value); return *this;}
115 
120  inline int GetCurrentPlayerSessionCount() const{ return m_currentPlayerSessionCount; }
121 
126  inline void SetCurrentPlayerSessionCount(int value) { m_currentPlayerSessionCountHasBeenSet = true; m_currentPlayerSessionCount = value; }
127 
132  inline FleetUtilization& WithCurrentPlayerSessionCount(int value) { SetCurrentPlayerSessionCount(value); return *this;}
133 
138  inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
139 
144  inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
145 
150  inline FleetUtilization& WithMaximumPlayerSessionCount(int value) { SetMaximumPlayerSessionCount(value); return *this;}
151 
152  private:
153  Aws::String m_fleetId;
154  bool m_fleetIdHasBeenSet;
155  int m_activeServerProcessCount;
156  bool m_activeServerProcessCountHasBeenSet;
157  int m_activeGameSessionCount;
158  bool m_activeGameSessionCountHasBeenSet;
159  int m_currentPlayerSessionCount;
160  bool m_currentPlayerSessionCountHasBeenSet;
161  int m_maximumPlayerSessionCount;
162  bool m_maximumPlayerSessionCountHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace GameLift
167 } // namespace Aws
FleetUtilization & WithMaximumPlayerSessionCount(int value)
#define AWS_GAMELIFT_API
void SetFleetId(Aws::String &&value)
FleetUtilization & WithFleetId(Aws::String &&value)
FleetUtilization & WithActiveServerProcessCount(int value)
FleetUtilization & WithFleetId(const char *value)
FleetUtilization & WithCurrentPlayerSessionCount(int value)
FleetUtilization & WithActiveGameSessionCount(int 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).