AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FleetUtilization.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
30 public:
31 AWS_GAMELIFT_API FleetUtilization() = default;
32 AWS_GAMELIFT_API FleetUtilization(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFleetId() const { return m_fleetId; }
41 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
42 template <typename FleetIdT = Aws::String>
43 void SetFleetId(FleetIdT&& value) {
44 m_fleetIdHasBeenSet = true;
45 m_fleetId = std::forward<FleetIdT>(value);
46 }
47 template <typename FleetIdT = Aws::String>
48 FleetUtilization& WithFleetId(FleetIdT&& value) {
49 SetFleetId(std::forward<FleetIdT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
63 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
64 template <typename FleetArnT = Aws::String>
65 void SetFleetArn(FleetArnT&& value) {
66 m_fleetArnHasBeenSet = true;
67 m_fleetArn = std::forward<FleetArnT>(value);
68 }
69 template <typename FleetArnT = Aws::String>
70 FleetUtilization& WithFleetArn(FleetArnT&& value) {
71 SetFleetArn(std::forward<FleetArnT>(value));
72 return *this;
73 }
75
77
81 inline int GetActiveServerProcessCount() const { return m_activeServerProcessCount; }
82 inline bool ActiveServerProcessCountHasBeenSet() const { return m_activeServerProcessCountHasBeenSet; }
83 inline void SetActiveServerProcessCount(int value) {
84 m_activeServerProcessCountHasBeenSet = true;
85 m_activeServerProcessCount = value;
86 }
89 return *this;
90 }
92
94
98 inline int GetActiveGameSessionCount() const { return m_activeGameSessionCount; }
99 inline bool ActiveGameSessionCountHasBeenSet() const { return m_activeGameSessionCountHasBeenSet; }
100 inline void SetActiveGameSessionCount(int value) {
101 m_activeGameSessionCountHasBeenSet = true;
102 m_activeGameSessionCount = value;
103 }
106 return *this;
107 }
109
111
115 inline int GetCurrentPlayerSessionCount() const { return m_currentPlayerSessionCount; }
116 inline bool CurrentPlayerSessionCountHasBeenSet() const { return m_currentPlayerSessionCountHasBeenSet; }
117 inline void SetCurrentPlayerSessionCount(int value) {
118 m_currentPlayerSessionCountHasBeenSet = true;
119 m_currentPlayerSessionCount = value;
120 }
123 return *this;
124 }
126
128
132 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
133 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
134 inline void SetMaximumPlayerSessionCount(int value) {
135 m_maximumPlayerSessionCountHasBeenSet = true;
136 m_maximumPlayerSessionCount = value;
137 }
140 return *this;
141 }
143
145
149 inline const Aws::String& GetLocation() const { return m_location; }
150 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
151 template <typename LocationT = Aws::String>
152 void SetLocation(LocationT&& value) {
153 m_locationHasBeenSet = true;
154 m_location = std::forward<LocationT>(value);
155 }
156 template <typename LocationT = Aws::String>
157 FleetUtilization& WithLocation(LocationT&& value) {
158 SetLocation(std::forward<LocationT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_fleetId;
164
165 Aws::String m_fleetArn;
166
167 int m_activeServerProcessCount{0};
168
169 int m_activeGameSessionCount{0};
170
171 int m_currentPlayerSessionCount{0};
172
173 int m_maximumPlayerSessionCount{0};
174
175 Aws::String m_location;
176 bool m_fleetIdHasBeenSet = false;
177 bool m_fleetArnHasBeenSet = false;
178 bool m_activeServerProcessCountHasBeenSet = false;
179 bool m_activeGameSessionCountHasBeenSet = false;
180 bool m_currentPlayerSessionCountHasBeenSet = false;
181 bool m_maximumPlayerSessionCountHasBeenSet = false;
182 bool m_locationHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace GameLift
187} // namespace Aws
FleetUtilization & WithActiveServerProcessCount(int value)
const Aws::String & GetFleetArn() const
const Aws::String & GetFleetId() const
AWS_GAMELIFT_API FleetUtilization(Aws::Utils::Json::JsonView jsonValue)
FleetUtilization & WithLocation(LocationT &&value)
FleetUtilization & WithMaximumPlayerSessionCount(int value)
AWS_GAMELIFT_API FleetUtilization()=default
FleetUtilization & WithCurrentPlayerSessionCount(int value)
FleetUtilization & WithActiveGameSessionCount(int value)
FleetUtilization & WithFleetArn(FleetArnT &&value)
const Aws::String & GetLocation() const
FleetUtilization & WithFleetId(FleetIdT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API FleetUtilization & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue