AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FleetUtilization.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_GAMELIFT_API FleetUtilization() = default;
37 AWS_GAMELIFT_API FleetUtilization(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetFleetId() const { return m_fleetId; }
47 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
48 template<typename FleetIdT = Aws::String>
49 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
50 template<typename FleetIdT = Aws::String>
51 FleetUtilization& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
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) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
66 template<typename FleetArnT = Aws::String>
67 FleetUtilization& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
69
71
75 inline int GetActiveServerProcessCount() const { return m_activeServerProcessCount; }
76 inline bool ActiveServerProcessCountHasBeenSet() const { return m_activeServerProcessCountHasBeenSet; }
77 inline void SetActiveServerProcessCount(int value) { m_activeServerProcessCountHasBeenSet = true; m_activeServerProcessCount = value; }
80
82
86 inline int GetActiveGameSessionCount() const { return m_activeGameSessionCount; }
87 inline bool ActiveGameSessionCountHasBeenSet() const { return m_activeGameSessionCountHasBeenSet; }
88 inline void SetActiveGameSessionCount(int value) { m_activeGameSessionCountHasBeenSet = true; m_activeGameSessionCount = value; }
89 inline FleetUtilization& WithActiveGameSessionCount(int value) { SetActiveGameSessionCount(value); return *this;}
91
93
97 inline int GetCurrentPlayerSessionCount() const { return m_currentPlayerSessionCount; }
98 inline bool CurrentPlayerSessionCountHasBeenSet() const { return m_currentPlayerSessionCountHasBeenSet; }
99 inline void SetCurrentPlayerSessionCount(int value) { m_currentPlayerSessionCountHasBeenSet = true; m_currentPlayerSessionCount = value; }
102
104
108 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
109 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
110 inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
113
115
119 inline const Aws::String& GetLocation() const { return m_location; }
120 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
121 template<typename LocationT = Aws::String>
122 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
123 template<typename LocationT = Aws::String>
124 FleetUtilization& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
126 private:
127
128 Aws::String m_fleetId;
129 bool m_fleetIdHasBeenSet = false;
130
131 Aws::String m_fleetArn;
132 bool m_fleetArnHasBeenSet = false;
133
134 int m_activeServerProcessCount{0};
135 bool m_activeServerProcessCountHasBeenSet = false;
136
137 int m_activeGameSessionCount{0};
138 bool m_activeGameSessionCountHasBeenSet = false;
139
140 int m_currentPlayerSessionCount{0};
141 bool m_currentPlayerSessionCountHasBeenSet = false;
142
143 int m_maximumPlayerSessionCount{0};
144 bool m_maximumPlayerSessionCountHasBeenSet = false;
145
146 Aws::String m_location;
147 bool m_locationHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace GameLift
152} // 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