AWS SDK for C++  1.9.40
AWS SDK for C++
RuntimeConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
45  {
46  public:
51 
52 
57  inline const Aws::Vector<ServerProcess>& GetServerProcesses() const{ return m_serverProcesses; }
58 
63  inline bool ServerProcessesHasBeenSet() const { return m_serverProcessesHasBeenSet; }
64 
69  inline void SetServerProcesses(const Aws::Vector<ServerProcess>& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses = value; }
70 
75  inline void SetServerProcesses(Aws::Vector<ServerProcess>&& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses = std::move(value); }
76 
81  inline RuntimeConfiguration& WithServerProcesses(const Aws::Vector<ServerProcess>& value) { SetServerProcesses(value); return *this;}
82 
87  inline RuntimeConfiguration& WithServerProcesses(Aws::Vector<ServerProcess>&& value) { SetServerProcesses(std::move(value)); return *this;}
88 
93  inline RuntimeConfiguration& AddServerProcesses(const ServerProcess& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses.push_back(value); return *this; }
94 
99  inline RuntimeConfiguration& AddServerProcesses(ServerProcess&& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses.push_back(std::move(value)); return *this; }
100 
101 
107  inline int GetMaxConcurrentGameSessionActivations() const{ return m_maxConcurrentGameSessionActivations; }
108 
114  inline bool MaxConcurrentGameSessionActivationsHasBeenSet() const { return m_maxConcurrentGameSessionActivationsHasBeenSet; }
115 
121  inline void SetMaxConcurrentGameSessionActivations(int value) { m_maxConcurrentGameSessionActivationsHasBeenSet = true; m_maxConcurrentGameSessionActivations = value; }
122 
128  inline RuntimeConfiguration& WithMaxConcurrentGameSessionActivations(int value) { SetMaxConcurrentGameSessionActivations(value); return *this;}
129 
130 
138  inline int GetGameSessionActivationTimeoutSeconds() const{ return m_gameSessionActivationTimeoutSeconds; }
139 
147  inline bool GameSessionActivationTimeoutSecondsHasBeenSet() const { return m_gameSessionActivationTimeoutSecondsHasBeenSet; }
148 
156  inline void SetGameSessionActivationTimeoutSeconds(int value) { m_gameSessionActivationTimeoutSecondsHasBeenSet = true; m_gameSessionActivationTimeoutSeconds = value; }
157 
165  inline RuntimeConfiguration& WithGameSessionActivationTimeoutSeconds(int value) { SetGameSessionActivationTimeoutSeconds(value); return *this;}
166 
167  private:
168 
169  Aws::Vector<ServerProcess> m_serverProcesses;
170  bool m_serverProcessesHasBeenSet;
171 
172  int m_maxConcurrentGameSessionActivations;
173  bool m_maxConcurrentGameSessionActivationsHasBeenSet;
174 
175  int m_gameSessionActivationTimeoutSeconds;
176  bool m_gameSessionActivationTimeoutSecondsHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace GameLift
181 } // namespace Aws
Aws::GameLift::Model::RuntimeConfiguration::SetMaxConcurrentGameSessionActivations
void SetMaxConcurrentGameSessionActivations(int value)
Definition: RuntimeConfiguration.h:121
Aws::GameLift::Model::RuntimeConfiguration::ServerProcessesHasBeenSet
bool ServerProcessesHasBeenSet() const
Definition: RuntimeConfiguration.h:63
Aws::GameLift::Model::RuntimeConfiguration::WithServerProcesses
RuntimeConfiguration & WithServerProcesses(const Aws::Vector< ServerProcess > &value)
Definition: RuntimeConfiguration.h:81
Aws::GameLift::Model::RuntimeConfiguration::GetServerProcesses
const Aws::Vector< ServerProcess > & GetServerProcesses() const
Definition: RuntimeConfiguration.h:57
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::RuntimeConfiguration::SetServerProcesses
void SetServerProcesses(Aws::Vector< ServerProcess > &&value)
Definition: RuntimeConfiguration.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::RuntimeConfiguration::AddServerProcesses
RuntimeConfiguration & AddServerProcesses(ServerProcess &&value)
Definition: RuntimeConfiguration.h:99
AWSVector.h
GameLift_EXPORTS.h
Aws::GameLift::Model::RuntimeConfiguration::SetServerProcesses
void SetServerProcesses(const Aws::Vector< ServerProcess > &value)
Definition: RuntimeConfiguration.h:69
Aws::GameLift::Model::RuntimeConfiguration::WithServerProcesses
RuntimeConfiguration & WithServerProcesses(Aws::Vector< ServerProcess > &&value)
Definition: RuntimeConfiguration.h:87
Aws::GameLift::Model::RuntimeConfiguration::WithMaxConcurrentGameSessionActivations
RuntimeConfiguration & WithMaxConcurrentGameSessionActivations(int value)
Definition: RuntimeConfiguration.h:128
Aws::GameLift::Model::RuntimeConfiguration::RuntimeConfiguration
RuntimeConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::RuntimeConfiguration::operator=
RuntimeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
ServerProcess.h
Aws::GameLift::Model::RuntimeConfiguration::RuntimeConfiguration
RuntimeConfiguration()
Aws::GameLift::Model::RuntimeConfiguration::MaxConcurrentGameSessionActivationsHasBeenSet
bool MaxConcurrentGameSessionActivationsHasBeenSet() const
Definition: RuntimeConfiguration.h:114
Aws::GameLift::Model::RuntimeConfiguration::SetGameSessionActivationTimeoutSeconds
void SetGameSessionActivationTimeoutSeconds(int value)
Definition: RuntimeConfiguration.h:156
Aws::GameLift::Model::RuntimeConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::RuntimeConfiguration
Definition: RuntimeConfiguration.h:45
Aws::GameLift::Model::RuntimeConfiguration::GetGameSessionActivationTimeoutSeconds
int GetGameSessionActivationTimeoutSeconds() const
Definition: RuntimeConfiguration.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::ServerProcess
Definition: ServerProcess.h:35
Aws::GameLift::Model::RuntimeConfiguration::WithGameSessionActivationTimeoutSeconds
RuntimeConfiguration & WithGameSessionActivationTimeoutSeconds(int value)
Definition: RuntimeConfiguration.h:165
Aws::GameLift::Model::RuntimeConfiguration::GetMaxConcurrentGameSessionActivations
int GetMaxConcurrentGameSessionActivations() const
Definition: RuntimeConfiguration.h:107
Aws::GameLift::Model::RuntimeConfiguration::AddServerProcesses
RuntimeConfiguration & AddServerProcesses(const ServerProcess &value)
Definition: RuntimeConfiguration.h:93
Aws::GameLift::Model::RuntimeConfiguration::GameSessionActivationTimeoutSecondsHasBeenSet
bool GameSessionActivationTimeoutSecondsHasBeenSet() const
Definition: RuntimeConfiguration.h:147