AWS SDK for C++  0.14.3
AWS SDK for C++
RuntimeConfiguration.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace GameLift
30 {
31 namespace Model
32 {
33 
53  {
54  public:
57  RuntimeConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
58  Aws::Utils::Json::JsonValue Jsonize() const;
59 
64  inline const Aws::Vector<ServerProcess>& GetServerProcesses() const{ return m_serverProcesses; }
65 
70  inline void SetServerProcesses(const Aws::Vector<ServerProcess>& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses = value; }
71 
76  inline void SetServerProcesses(Aws::Vector<ServerProcess>&& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses = value; }
77 
82  inline RuntimeConfiguration& WithServerProcesses(const Aws::Vector<ServerProcess>& value) { SetServerProcesses(value); return *this;}
83 
88  inline RuntimeConfiguration& WithServerProcesses(Aws::Vector<ServerProcess>&& value) { SetServerProcesses(value); return *this;}
89 
94  inline RuntimeConfiguration& AddServerProcesses(const ServerProcess& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses.push_back(value); return *this; }
95 
100  inline RuntimeConfiguration& AddServerProcesses(ServerProcess&& value) { m_serverProcessesHasBeenSet = true; m_serverProcesses.push_back(value); return *this; }
101 
102  private:
103  Aws::Vector<ServerProcess> m_serverProcesses;
104  bool m_serverProcessesHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace GameLift
109 } // namespace Aws
RuntimeConfiguration & AddServerProcesses(ServerProcess &&value)
#define AWS_GAMELIFT_API
RuntimeConfiguration & WithServerProcesses(const Aws::Vector< ServerProcess > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetServerProcesses(const Aws::Vector< ServerProcess > &value)
RuntimeConfiguration & WithServerProcesses(Aws::Vector< ServerProcess > &&value)
const Aws::Vector< ServerProcess > & GetServerProcesses() const
void SetServerProcesses(Aws::Vector< ServerProcess > &&value)
RuntimeConfiguration & AddServerProcesses(const ServerProcess &value)
JSON (JavaScript Object Notation).