AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ServerProcess.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
31 public:
32 AWS_GAMELIFT_API ServerProcess() = default;
33 AWS_GAMELIFT_API ServerProcess(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API ServerProcess& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
50 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
51 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
52 template <typename LaunchPathT = Aws::String>
53 void SetLaunchPath(LaunchPathT&& value) {
54 m_launchPathHasBeenSet = true;
55 m_launchPath = std::forward<LaunchPathT>(value);
56 }
57 template <typename LaunchPathT = Aws::String>
58 ServerProcess& WithLaunchPath(LaunchPathT&& value) {
59 SetLaunchPath(std::forward<LaunchPathT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetParameters() const { return m_parameters; }
70 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
71 template <typename ParametersT = Aws::String>
72 void SetParameters(ParametersT&& value) {
73 m_parametersHasBeenSet = true;
74 m_parameters = std::forward<ParametersT>(value);
75 }
76 template <typename ParametersT = Aws::String>
77 ServerProcess& WithParameters(ParametersT&& value) {
78 SetParameters(std::forward<ParametersT>(value));
79 return *this;
80 }
82
84
88 inline int64_t GetConcurrentExecutions() const { return m_concurrentExecutions; }
89 inline bool ConcurrentExecutionsHasBeenSet() const { return m_concurrentExecutionsHasBeenSet; }
90 inline void SetConcurrentExecutions(int64_t value) {
91 m_concurrentExecutionsHasBeenSet = true;
92 m_concurrentExecutions = value;
93 }
94 inline ServerProcess& WithConcurrentExecutions(int64_t value) {
96 return *this;
97 }
99 private:
100 Aws::String m_launchPath;
101
102 Aws::String m_parameters;
103
104 int64_t m_concurrentExecutions{0};
105 bool m_launchPathHasBeenSet = false;
106 bool m_parametersHasBeenSet = false;
107 bool m_concurrentExecutionsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace GameLift
112} // namespace Aws
void SetParameters(ParametersT &&value)
ServerProcess & WithParameters(ParametersT &&value)
const Aws::String & GetParameters() const
AWS_GAMELIFT_API ServerProcess & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetLaunchPath() const
ServerProcess & WithLaunchPath(LaunchPathT &&value)
AWS_GAMELIFT_API ServerProcess(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetLaunchPath(LaunchPathT &&value)
void SetConcurrentExecutions(int64_t value)
AWS_GAMELIFT_API ServerProcess()=default
ServerProcess & WithConcurrentExecutions(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String