AWS SDK for C++  0.12.9
AWS SDK for C++
FleetAttributes.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace GameLift
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  FleetAttributes& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
52 
56  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
61  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
62 
66  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
67 
71  inline FleetAttributes& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
72 
76  inline FleetAttributes& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
77 
81  inline FleetAttributes& WithFleetId(const char* value) { SetFleetId(value); return *this;}
82 
86  inline const Aws::String& GetDescription() const{ return m_description; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline FleetAttributes& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline FleetAttributes& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
112 
116  inline FleetAttributes& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
122  inline const Aws::String& GetName() const{ return m_name; }
123 
128  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
129 
134  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
135 
140  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
141 
146  inline FleetAttributes& WithName(const Aws::String& value) { SetName(value); return *this;}
147 
152  inline FleetAttributes& WithName(Aws::String&& value) { SetName(value); return *this;}
153 
158  inline FleetAttributes& WithName(const char* value) { SetName(value); return *this;}
159 
164  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
165 
170  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
171 
176  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
177 
182  inline FleetAttributes& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
183 
188  inline FleetAttributes& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
189 
194  inline const Aws::Utils::DateTime& GetTerminationTime() const{ return m_terminationTime; }
195 
200  inline void SetTerminationTime(const Aws::Utils::DateTime& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
201 
206  inline void SetTerminationTime(Aws::Utils::DateTime&& value) { m_terminationTimeHasBeenSet = true; m_terminationTime = value; }
207 
212  inline FleetAttributes& WithTerminationTime(const Aws::Utils::DateTime& value) { SetTerminationTime(value); return *this;}
213 
218  inline FleetAttributes& WithTerminationTime(Aws::Utils::DateTime&& value) { SetTerminationTime(value); return *this;}
219 
230  inline const FleetStatus& GetStatus() const{ return m_status; }
231 
242  inline void SetStatus(const FleetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
243 
254  inline void SetStatus(FleetStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
255 
266  inline FleetAttributes& WithStatus(const FleetStatus& value) { SetStatus(value); return *this;}
267 
278  inline FleetAttributes& WithStatus(FleetStatus&& value) { SetStatus(value); return *this;}
279 
283  inline const Aws::String& GetBuildId() const{ return m_buildId; }
284 
288  inline void SetBuildId(const Aws::String& value) { m_buildIdHasBeenSet = true; m_buildId = value; }
289 
293  inline void SetBuildId(Aws::String&& value) { m_buildIdHasBeenSet = true; m_buildId = value; }
294 
298  inline void SetBuildId(const char* value) { m_buildIdHasBeenSet = true; m_buildId.assign(value); }
299 
303  inline FleetAttributes& WithBuildId(const Aws::String& value) { SetBuildId(value); return *this;}
304 
308  inline FleetAttributes& WithBuildId(Aws::String&& value) { SetBuildId(value); return *this;}
309 
313  inline FleetAttributes& WithBuildId(const char* value) { SetBuildId(value); return *this;}
314 
322  inline const Aws::String& GetServerLaunchPath() const{ return m_serverLaunchPath; }
323 
331  inline void SetServerLaunchPath(const Aws::String& value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath = value; }
332 
340  inline void SetServerLaunchPath(Aws::String&& value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath = value; }
341 
349  inline void SetServerLaunchPath(const char* value) { m_serverLaunchPathHasBeenSet = true; m_serverLaunchPath.assign(value); }
350 
358  inline FleetAttributes& WithServerLaunchPath(const Aws::String& value) { SetServerLaunchPath(value); return *this;}
359 
367  inline FleetAttributes& WithServerLaunchPath(Aws::String&& value) { SetServerLaunchPath(value); return *this;}
368 
376  inline FleetAttributes& WithServerLaunchPath(const char* value) { SetServerLaunchPath(value); return *this;}
377 
383  inline const Aws::String& GetServerLaunchParameters() const{ return m_serverLaunchParameters; }
384 
390  inline void SetServerLaunchParameters(const Aws::String& value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters = value; }
391 
397  inline void SetServerLaunchParameters(Aws::String&& value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters = value; }
398 
404  inline void SetServerLaunchParameters(const char* value) { m_serverLaunchParametersHasBeenSet = true; m_serverLaunchParameters.assign(value); }
405 
411  inline FleetAttributes& WithServerLaunchParameters(const Aws::String& value) { SetServerLaunchParameters(value); return *this;}
412 
418  inline FleetAttributes& WithServerLaunchParameters(Aws::String&& value) { SetServerLaunchParameters(value); return *this;}
419 
425  inline FleetAttributes& WithServerLaunchParameters(const char* value) { SetServerLaunchParameters(value); return *this;}
426 
432  inline const Aws::Vector<Aws::String>& GetLogPaths() const{ return m_logPaths; }
433 
439  inline void SetLogPaths(const Aws::Vector<Aws::String>& value) { m_logPathsHasBeenSet = true; m_logPaths = value; }
440 
446  inline void SetLogPaths(Aws::Vector<Aws::String>&& value) { m_logPathsHasBeenSet = true; m_logPaths = value; }
447 
453  inline FleetAttributes& WithLogPaths(const Aws::Vector<Aws::String>& value) { SetLogPaths(value); return *this;}
454 
460  inline FleetAttributes& WithLogPaths(Aws::Vector<Aws::String>&& value) { SetLogPaths(value); return *this;}
461 
467  inline FleetAttributes& AddLogPaths(const Aws::String& value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
468 
474  inline FleetAttributes& AddLogPaths(Aws::String&& value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
475 
481  inline FleetAttributes& AddLogPaths(const char* value) { m_logPathsHasBeenSet = true; m_logPaths.push_back(value); return *this; }
482 
489  inline const ProtectionPolicy& GetNewGameSessionProtectionPolicy() const{ return m_newGameSessionProtectionPolicy; }
490 
497  inline void SetNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
498 
505  inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
506 
513  inline FleetAttributes& WithNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
514 
521  inline FleetAttributes& WithNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
522 
523  private:
524  Aws::String m_fleetId;
525  bool m_fleetIdHasBeenSet;
526  Aws::String m_description;
527  bool m_descriptionHasBeenSet;
528  Aws::String m_name;
529  bool m_nameHasBeenSet;
530  Aws::Utils::DateTime m_creationTime;
531  bool m_creationTimeHasBeenSet;
532  Aws::Utils::DateTime m_terminationTime;
533  bool m_terminationTimeHasBeenSet;
534  FleetStatus m_status;
535  bool m_statusHasBeenSet;
536  Aws::String m_buildId;
537  bool m_buildIdHasBeenSet;
538  Aws::String m_serverLaunchPath;
539  bool m_serverLaunchPathHasBeenSet;
540  Aws::String m_serverLaunchParameters;
541  bool m_serverLaunchParametersHasBeenSet;
542  Aws::Vector<Aws::String> m_logPaths;
543  bool m_logPathsHasBeenSet;
544  ProtectionPolicy m_newGameSessionProtectionPolicy;
545  bool m_newGameSessionProtectionPolicyHasBeenSet;
546  };
547 
548 } // namespace Model
549 } // namespace GameLift
550 } // namespace Aws
void SetTerminationTime(const Aws::Utils::DateTime &value)
FleetAttributes & WithFleetId(const char *value)
void SetDescription(const char *value)
FleetAttributes & WithDescription(const char *value)
void SetServerLaunchParameters(Aws::String &&value)
const Aws::String & GetServerLaunchPath() const
const Aws::String & GetDescription() const
FleetAttributes & WithName(const char *value)
FleetAttributes & WithName(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
FleetAttributes & WithFleetId(const Aws::String &value)
void SetNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
#define AWS_GAMELIFT_API
void SetBuildId(Aws::String &&value)
FleetAttributes & WithBuildId(Aws::String &&value)
const Aws::String & GetBuildId() const
FleetAttributes & WithBuildId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetDescription(const Aws::String &value)
void SetServerLaunchPath(const Aws::String &value)
FleetAttributes & WithServerLaunchPath(const char *value)
FleetAttributes & WithTerminationTime(const Aws::Utils::DateTime &value)
void SetLogPaths(Aws::Vector< Aws::String > &&value)
FleetAttributes & AddLogPaths(Aws::String &&value)
const ProtectionPolicy & GetNewGameSessionProtectionPolicy() const
void SetTerminationTime(Aws::Utils::DateTime &&value)
const FleetStatus & GetStatus() const
FleetAttributes & WithLogPaths(const Aws::Vector< Aws::String > &value)
FleetAttributes & WithServerLaunchPath(Aws::String &&value)
void SetFleetId(const char *value)
FleetAttributes & WithNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
FleetAttributes & WithServerLaunchPath(const Aws::String &value)
FleetAttributes & WithDescription(Aws::String &&value)
void SetFleetId(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetServerLaunchParameters() const
FleetAttributes & AddLogPaths(const Aws::String &value)
void SetServerLaunchParameters(const char *value)
FleetAttributes & WithTerminationTime(Aws::Utils::DateTime &&value)
FleetAttributes & WithStatus(const FleetStatus &value)
void SetName(Aws::String &&value)
FleetAttributes & WithCreationTime(Aws::Utils::DateTime &&value)
void SetServerLaunchPath(const char *value)
FleetAttributes & WithFleetId(Aws::String &&value)
FleetAttributes & WithServerLaunchParameters(const char *value)
FleetAttributes & WithBuildId(const char *value)
void SetServerLaunchParameters(const Aws::String &value)
const Aws::String & GetName() const
FleetAttributes & WithServerLaunchParameters(const Aws::String &value)
void SetName(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetServerLaunchPath(Aws::String &&value)
FleetAttributes & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetTerminationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
void SetStatus(FleetStatus &&value)
const Aws::String & GetFleetId() const
void SetLogPaths(const Aws::Vector< Aws::String > &value)
FleetAttributes & WithServerLaunchParameters(Aws::String &&value)
void SetFleetId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
FleetAttributes & WithStatus(FleetStatus &&value)
FleetAttributes & WithLogPaths(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetLogPaths() const
FleetAttributes & AddLogPaths(const char *value)
FleetAttributes & WithNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
void SetBuildId(const Aws::String &value)
FleetAttributes & WithCreationTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).
void SetStatus(const FleetStatus &value)
FleetAttributes & WithDescription(const Aws::String &value)