AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RuntimeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/ServerProcess.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
39 public:
40 AWS_GAMELIFT_API RuntimeConfiguration() = default;
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::Vector<ServerProcess>& GetServerProcesses() const { return m_serverProcesses; }
51 inline bool ServerProcessesHasBeenSet() const { return m_serverProcessesHasBeenSet; }
52 template <typename ServerProcessesT = Aws::Vector<ServerProcess>>
53 void SetServerProcesses(ServerProcessesT&& value) {
54 m_serverProcessesHasBeenSet = true;
55 m_serverProcesses = std::forward<ServerProcessesT>(value);
56 }
57 template <typename ServerProcessesT = Aws::Vector<ServerProcess>>
58 RuntimeConfiguration& WithServerProcesses(ServerProcessesT&& value) {
59 SetServerProcesses(std::forward<ServerProcessesT>(value));
60 return *this;
61 }
62 template <typename ServerProcessesT = ServerProcess>
63 RuntimeConfiguration& AddServerProcesses(ServerProcessesT&& value) {
64 m_serverProcessesHasBeenSet = true;
65 m_serverProcesses.emplace_back(std::forward<ServerProcessesT>(value));
66 return *this;
67 }
69
71
76 inline int GetMaxConcurrentGameSessionActivations() const { return m_maxConcurrentGameSessionActivations; }
77 inline bool MaxConcurrentGameSessionActivationsHasBeenSet() const { return m_maxConcurrentGameSessionActivationsHasBeenSet; }
79 m_maxConcurrentGameSessionActivationsHasBeenSet = true;
80 m_maxConcurrentGameSessionActivations = value;
81 }
84 return *this;
85 }
87
89
96 inline int GetGameSessionActivationTimeoutSeconds() const { return m_gameSessionActivationTimeoutSeconds; }
97 inline bool GameSessionActivationTimeoutSecondsHasBeenSet() const { return m_gameSessionActivationTimeoutSecondsHasBeenSet; }
99 m_gameSessionActivationTimeoutSecondsHasBeenSet = true;
100 m_gameSessionActivationTimeoutSeconds = value;
101 }
104 return *this;
105 }
107 private:
108 Aws::Vector<ServerProcess> m_serverProcesses;
109
110 int m_maxConcurrentGameSessionActivations{0};
111
112 int m_gameSessionActivationTimeoutSeconds{0};
113 bool m_serverProcessesHasBeenSet = false;
114 bool m_maxConcurrentGameSessionActivationsHasBeenSet = false;
115 bool m_gameSessionActivationTimeoutSecondsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GameLift
120} // namespace Aws
const Aws::Vector< ServerProcess > & GetServerProcesses() const
AWS_GAMELIFT_API RuntimeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServerProcesses(ServerProcessesT &&value)
RuntimeConfiguration & WithGameSessionActivationTimeoutSeconds(int value)
RuntimeConfiguration & AddServerProcesses(ServerProcessesT &&value)
RuntimeConfiguration & WithServerProcesses(ServerProcessesT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
RuntimeConfiguration & WithMaxConcurrentGameSessionActivations(int value)
AWS_GAMELIFT_API RuntimeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API RuntimeConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue