AWS SDK for C++  0.12.9
AWS SDK for C++
CreateFleetRequest.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
23 
24 namespace Aws
25 {
26 namespace GameLift
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
59 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
70  inline CreateFleetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
76  inline CreateFleetRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
77 
82  inline CreateFleetRequest& WithName(const char* value) { SetName(value); return *this;}
83 
87  inline const Aws::String& GetDescription() const{ return m_description; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline CreateFleetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline CreateFleetRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
113 
117  inline CreateFleetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
122  inline const Aws::String& GetBuildId() const{ return m_buildId; }
123 
127  inline void SetBuildId(const Aws::String& value) { m_buildIdHasBeenSet = true; m_buildId = value; }
128 
132  inline void SetBuildId(Aws::String&& value) { m_buildIdHasBeenSet = true; m_buildId = value; }
133 
137  inline void SetBuildId(const char* value) { m_buildIdHasBeenSet = true; m_buildId.assign(value); }
138 
142  inline CreateFleetRequest& WithBuildId(const Aws::String& value) { SetBuildId(value); return *this;}
143 
147  inline CreateFleetRequest& WithBuildId(Aws::String&& value) { SetBuildId(value); return *this;}
148 
152  inline CreateFleetRequest& WithBuildId(const char* value) { SetBuildId(value); return *this;}
153 
161  inline const Aws::String& GetServerLaunchPath() const{ return m_serverLaunchPath; }
162 
170  inline void SetServerLaunchPath(const Aws::String& value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath = value; }
171 
179  inline void SetServerLaunchPath(Aws::String&& value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath = value; }
180 
188  inline void SetServerLaunchPath(const char* value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath.assign(value); }
189 
197  inline CreateFleetRequest& WithServerLaunchPath(const Aws::String& value) { SetServerLaunchPath(value); return *this;}
198 
206  inline CreateFleetRequest& WithServerLaunchPath(Aws::String&& value) { SetServerLaunchPath(value); return *this;}
207 
215  inline CreateFleetRequest& WithServerLaunchPath(const char* value) { SetServerLaunchPath(value); return *this;}
216 
222  inline const Aws::String& GetServerLaunchParameters() const{ return m_serverLaunchParameters; }
223 
229  inline void SetServerLaunchParameters(const Aws::String& value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters = value; }
230 
236  inline void SetServerLaunchParameters(Aws::String&& value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters = value; }
237 
243  inline void SetServerLaunchParameters(const char* value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters.assign(value); }
244 
250  inline CreateFleetRequest& WithServerLaunchParameters(const Aws::String& value) { SetServerLaunchParameters(value); return *this;}
251 
257  inline CreateFleetRequest& WithServerLaunchParameters(Aws::String&& value) { SetServerLaunchParameters(value); return *this;}
258 
264  inline CreateFleetRequest& WithServerLaunchParameters(const char* value) { SetServerLaunchParameters(value); return *this;}
265 
271  inline const Aws::Vector<Aws::String>& GetLogPaths() const{ return m_logPaths; }
272 
278  inline void SetLogPaths(const Aws::Vector<Aws::String>& value) { m_logPathsHasBeenSet = true; m_logPaths = value; }
279 
285  inline void SetLogPaths(Aws::Vector<Aws::String>&& value) { m_logPathsHasBeenSet = true; m_logPaths = value; }
286 
292  inline CreateFleetRequest& WithLogPaths(const Aws::Vector<Aws::String>& value) { SetLogPaths(value); return *this;}
293 
299  inline CreateFleetRequest& WithLogPaths(Aws::Vector<Aws::String>&& value) { SetLogPaths(value); return *this;}
300 
306  inline CreateFleetRequest& AddLogPaths(const Aws::String& value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
307 
313  inline CreateFleetRequest& AddLogPaths(Aws::String&& value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
314 
320  inline CreateFleetRequest& AddLogPaths(const char* value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
321 
329  inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
330 
338  inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
339 
347  inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
348 
356  inline CreateFleetRequest& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
357 
365  inline CreateFleetRequest& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(value); return *this;}
366 
373  inline const Aws::Vector<IpPermission>& GetEC2InboundPermissions() const{ return m_eC2InboundPermissions; }
374 
381  inline void SetEC2InboundPermissions(const Aws::Vector<IpPermission>& value) { m_eC2InboundPermissionsHasBeenSet = true; m_eC2InboundPermissions = value; }
382 
389  inline void SetEC2InboundPermissions(Aws::Vector<IpPermission>&& value) { m_eC2InboundPermissionsHasBeenSet = true; m_eC2InboundPermissions = value; }
390 
397  inline CreateFleetRequest& WithEC2InboundPermissions(const Aws::Vector<IpPermission>& value) { SetEC2InboundPermissions(value); return *this;}
398 
405  inline CreateFleetRequest& WithEC2InboundPermissions(Aws::Vector<IpPermission>&& value) { SetEC2InboundPermissions(value); return *this;}
406 
413  inline CreateFleetRequest& AddEC2InboundPermissions(const IpPermission& value) { m_eC2InboundPermissionsHasBeenSet = true; m_eC2InboundPermissions.push_back(value); return *this; }
414 
421  inline CreateFleetRequest& AddEC2InboundPermissions(IpPermission&& value) { m_eC2InboundPermissionsHasBeenSet = true; m_eC2InboundPermissions.push_back(value); return *this; }
422 
432  inline const ProtectionPolicy& GetNewGameSessionProtectionPolicy() const{ return m_newGameSessionProtectionPolicy; }
433 
443  inline void SetNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
444 
454  inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
455 
465  inline CreateFleetRequest& WithNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
466 
476  inline CreateFleetRequest& WithNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
477 
478  private:
479  Aws::String m_name;
480  bool m_nameHasBeenSet;
481  Aws::String m_description;
482  bool m_descriptionHasBeenSet;
483  Aws::String m_buildId;
484  bool m_buildIdHasBeenSet;
485  Aws::String m_serverLaunchPath;
486  bool m_serverLaunchPathHasBeenSet;
487  Aws::String m_serverLaunchParameters;
488  bool m_serverLaunchParametersHasBeenSet;
489  Aws::Vector<Aws::String> m_logPaths;
490  bool m_logPathsHasBeenSet;
491  EC2InstanceType m_eC2InstanceType;
492  bool m_eC2InstanceTypeHasBeenSet;
493  Aws::Vector<IpPermission> m_eC2InboundPermissions;
494  bool m_eC2InboundPermissionsHasBeenSet;
495  ProtectionPolicy m_newGameSessionProtectionPolicy;
496  bool m_newGameSessionProtectionPolicyHasBeenSet;
497  };
498 
499 } // namespace Model
500 } // namespace GameLift
501 } // namespace Aws
CreateFleetRequest & AddLogPaths(const char *value)
CreateFleetRequest & WithBuildId(Aws::String &&value)
CreateFleetRequest & WithDescription(const char *value)
void SetEC2InboundPermissions(const Aws::Vector< IpPermission > &value)
void SetEC2InstanceType(EC2InstanceType &&value)
void SetServerLaunchParameters(Aws::String &&value)
CreateFleetRequest & WithNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
#define AWS_GAMELIFT_API
CreateFleetRequest & WithBuildId(const Aws::String &value)
CreateFleetRequest & WithDescription(Aws::String &&value)
CreateFleetRequest & WithDescription(const Aws::String &value)
const Aws::Vector< IpPermission > & GetEC2InboundPermissions() const
void SetEC2InboundPermissions(Aws::Vector< IpPermission > &&value)
void SetName(const Aws::String &value)
void SetServerLaunchParameters(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateFleetRequest & WithLogPaths(Aws::Vector< Aws::String > &&value)
CreateFleetRequest & WithNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
CreateFleetRequest & WithName(const char *value)
void SetEC2InstanceType(const EC2InstanceType &value)
const Aws::String & GetServerLaunchPath() const
CreateFleetRequest & WithServerLaunchPath(Aws::String &&value)
const EC2InstanceType & GetEC2InstanceType() const
const Aws::String & GetServerLaunchParameters() const
void SetServerLaunchPath(Aws::String &&value)
CreateFleetRequest & WithBuildId(const char *value)
CreateFleetRequest & WithEC2InboundPermissions(Aws::Vector< IpPermission > &&value)
CreateFleetRequest & AddLogPaths(Aws::String &&value)
CreateFleetRequest & AddEC2InboundPermissions(const IpPermission &value)
CreateFleetRequest & WithName(Aws::String &&value)
void SetServerLaunchParameters(const Aws::String &value)
const Aws::String & GetName() const
void SetBuildId(const Aws::String &value)
CreateFleetRequest & WithEC2InstanceType(EC2InstanceType &&value)
const Aws::Vector< Aws::String > & GetLogPaths() const
CreateFleetRequest & WithServerLaunchParameters(const char *value)
void SetNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
const Aws::String & GetBuildId() const
CreateFleetRequest & WithServerLaunchPath(const char *value)
void SetLogPaths(Aws::Vector< Aws::String > &&value)
void SetServerLaunchPath(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDescription(const Aws::String &value)
void SetLogPaths(const Aws::Vector< Aws::String > &value)
CreateFleetRequest & WithServerLaunchParameters(const Aws::String &value)
CreateFleetRequest & WithServerLaunchParameters(Aws::String &&value)
const ProtectionPolicy & GetNewGameSessionProtectionPolicy() const
CreateFleetRequest & WithServerLaunchPath(const Aws::String &value)
CreateFleetRequest & WithLogPaths(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDescription() const
void SetNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
CreateFleetRequest & AddEC2InboundPermissions(IpPermission &&value)
CreateFleetRequest & WithEC2InstanceType(const EC2InstanceType &value)
CreateFleetRequest & AddLogPaths(const Aws::String &value)
CreateFleetRequest & WithEC2InboundPermissions(const Aws::Vector< IpPermission > &value)
JSON (JavaScript Object Notation).
CreateFleetRequest & WithName(const Aws::String &value)