AWS SDK for C++  0.14.3
AWS SDK for C++
ServerProcess.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace GameLift
29 {
30 namespace Model
31 {
32 
41  {
42  public:
43  ServerProcess();
45  ServerProcess& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
54  inline const Aws::String& GetLaunchPath() const{ return m_launchPath; }
55 
62  inline void SetLaunchPath(const Aws::String& value) { m_launchPathHasBeenSet = true; m_launchPath = value; }
63 
70  inline void SetLaunchPath(Aws::String&& value) { m_launchPathHasBeenSet = true; m_launchPath = value; }
71 
78  inline void SetLaunchPath(const char* value) { m_launchPathHasBeenSet = true; m_launchPath.assign(value); }
79 
86  inline ServerProcess& WithLaunchPath(const Aws::String& value) { SetLaunchPath(value); return *this;}
87 
94  inline ServerProcess& WithLaunchPath(Aws::String&& value) { SetLaunchPath(value); return *this;}
95 
102  inline ServerProcess& WithLaunchPath(const char* value) { SetLaunchPath(value); return *this;}
103 
107  inline const Aws::String& GetParameters() const{ return m_parameters; }
108 
112  inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; }
113 
117  inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
118 
122  inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); }
123 
127  inline ServerProcess& WithParameters(const Aws::String& value) { SetParameters(value); return *this;}
128 
132  inline ServerProcess& WithParameters(Aws::String&& value) { SetParameters(value); return *this;}
133 
137  inline ServerProcess& WithParameters(const char* value) { SetParameters(value); return *this;}
138 
143  inline int GetConcurrentExecutions() const{ return m_concurrentExecutions; }
144 
149  inline void SetConcurrentExecutions(int value) { m_concurrentExecutionsHasBeenSet = true; m_concurrentExecutions = value; }
150 
155  inline ServerProcess& WithConcurrentExecutions(int value) { SetConcurrentExecutions(value); return *this;}
156 
157  private:
158  Aws::String m_launchPath;
159  bool m_launchPathHasBeenSet;
160  Aws::String m_parameters;
161  bool m_parametersHasBeenSet;
162  int m_concurrentExecutions;
163  bool m_concurrentExecutionsHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace GameLift
168 } // namespace Aws
ServerProcess & WithParameters(const Aws::String &value)
void SetLaunchPath(const Aws::String &value)
Definition: ServerProcess.h:62
const Aws::String & GetLaunchPath() const
Definition: ServerProcess.h:54
#define AWS_GAMELIFT_API
ServerProcess & WithParameters(const char *value)
ServerProcess & WithLaunchPath(const Aws::String &value)
Definition: ServerProcess.h:86
ServerProcess & WithLaunchPath(Aws::String &&value)
Definition: ServerProcess.h:94
ServerProcess & WithParameters(Aws::String &&value)
void SetParameters(const Aws::String &value)
void SetParameters(Aws::String &&value)
void SetParameters(const char *value)
const Aws::String & GetParameters() const
ServerProcess & WithLaunchPath(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLaunchPath(const char *value)
Definition: ServerProcess.h:78
void SetLaunchPath(Aws::String &&value)
Definition: ServerProcess.h:70
JSON (JavaScript Object Notation).
ServerProcess & WithConcurrentExecutions(int value)