AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetResult.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/FleetAttributes.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/gamelift/model/LocationState.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GAMELIFT_API CreateFleetResult();
36
37
39
43 inline const FleetAttributes& GetFleetAttributes() const{ return m_fleetAttributes; }
44 inline void SetFleetAttributes(const FleetAttributes& value) { m_fleetAttributes = value; }
45 inline void SetFleetAttributes(FleetAttributes&& value) { m_fleetAttributes = std::move(value); }
46 inline CreateFleetResult& WithFleetAttributes(const FleetAttributes& value) { SetFleetAttributes(value); return *this;}
47 inline CreateFleetResult& WithFleetAttributes(FleetAttributes&& value) { SetFleetAttributes(std::move(value)); return *this;}
49
51
59 inline const Aws::Vector<LocationState>& GetLocationStates() const{ return m_locationStates; }
60 inline void SetLocationStates(const Aws::Vector<LocationState>& value) { m_locationStates = value; }
61 inline void SetLocationStates(Aws::Vector<LocationState>&& value) { m_locationStates = std::move(value); }
63 inline CreateFleetResult& WithLocationStates(Aws::Vector<LocationState>&& value) { SetLocationStates(std::move(value)); return *this;}
64 inline CreateFleetResult& AddLocationStates(const LocationState& value) { m_locationStates.push_back(value); return *this; }
65 inline CreateFleetResult& AddLocationStates(LocationState&& value) { m_locationStates.push_back(std::move(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const{ return m_requestId; }
71 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
72 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
73 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
74 inline CreateFleetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
75 inline CreateFleetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
76 inline CreateFleetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
78 private:
79
80 FleetAttributes m_fleetAttributes;
81
82 Aws::Vector<LocationState> m_locationStates;
83
84 Aws::String m_requestId;
85 };
86
87} // namespace Model
88} // namespace GameLift
89} // namespace Aws
void SetRequestId(const Aws::String &value)
CreateFleetResult & WithFleetAttributes(FleetAttributes &&value)
AWS_GAMELIFT_API CreateFleetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GAMELIFT_API CreateFleetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFleetResult & AddLocationStates(LocationState &&value)
void SetLocationStates(Aws::Vector< LocationState > &&value)
const Aws::Vector< LocationState > & GetLocationStates() const
const FleetAttributes & GetFleetAttributes() const
CreateFleetResult & WithFleetAttributes(const FleetAttributes &value)
void SetFleetAttributes(FleetAttributes &&value)
CreateFleetResult & WithLocationStates(Aws::Vector< LocationState > &&value)
void SetFleetAttributes(const FleetAttributes &value)
CreateFleetResult & WithLocationStates(const Aws::Vector< LocationState > &value)
CreateFleetResult & AddLocationStates(const LocationState &value)
CreateFleetResult & WithRequestId(const Aws::String &value)
void SetLocationStates(const Aws::Vector< LocationState > &value)
const Aws::String & GetRequestId() const
CreateFleetResult & WithRequestId(Aws::String &&value)
CreateFleetResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue