AWS SDK for C++  1.9.104
AWS SDK for C++
CreateFleetResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace GameLift
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
47  inline const FleetAttributes& GetFleetAttributes() const{ return m_fleetAttributes; }
48 
53  inline void SetFleetAttributes(const FleetAttributes& value) { m_fleetAttributes = value; }
54 
59  inline void SetFleetAttributes(FleetAttributes&& value) { m_fleetAttributes = std::move(value); }
60 
65  inline CreateFleetResult& WithFleetAttributes(const FleetAttributes& value) { SetFleetAttributes(value); return *this;}
66 
71  inline CreateFleetResult& WithFleetAttributes(FleetAttributes&& value) { SetFleetAttributes(std::move(value)); return *this;}
72 
73 
82  inline const Aws::Vector<LocationState>& GetLocationStates() const{ return m_locationStates; }
83 
92  inline void SetLocationStates(const Aws::Vector<LocationState>& value) { m_locationStates = value; }
93 
102  inline void SetLocationStates(Aws::Vector<LocationState>&& value) { m_locationStates = std::move(value); }
103 
112  inline CreateFleetResult& WithLocationStates(const Aws::Vector<LocationState>& value) { SetLocationStates(value); return *this;}
113 
122  inline CreateFleetResult& WithLocationStates(Aws::Vector<LocationState>&& value) { SetLocationStates(std::move(value)); return *this;}
123 
132  inline CreateFleetResult& AddLocationStates(const LocationState& value) { m_locationStates.push_back(value); return *this; }
133 
142  inline CreateFleetResult& AddLocationStates(LocationState&& value) { m_locationStates.push_back(std::move(value)); return *this; }
143 
144  private:
145 
146  FleetAttributes m_fleetAttributes;
147 
148  Aws::Vector<LocationState> m_locationStates;
149  };
150 
151 } // namespace Model
152 } // namespace GameLift
153 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::CreateFleetResult::WithFleetAttributes
CreateFleetResult & WithFleetAttributes(FleetAttributes &&value)
Definition: CreateFleetResult.h:71
Aws::GameLift::Model::CreateFleetResult::CreateFleetResult
CreateFleetResult()
Aws::GameLift::Model::CreateFleetResult::SetFleetAttributes
void SetFleetAttributes(const FleetAttributes &value)
Definition: CreateFleetResult.h:53
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateFleetResult::AddLocationStates
CreateFleetResult & AddLocationStates(const LocationState &value)
Definition: CreateFleetResult.h:132
Aws::GameLift::Model::CreateFleetResult::operator=
CreateFleetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
FleetAttributes.h
Aws::GameLift::Model::LocationState
Definition: LocationState.h:39
Aws::GameLift::Model::CreateFleetResult::WithLocationStates
CreateFleetResult & WithLocationStates(const Aws::Vector< LocationState > &value)
Definition: CreateFleetResult.h:112
GameLift_EXPORTS.h
Aws::GameLift::Model::CreateFleetResult::SetLocationStates
void SetLocationStates(const Aws::Vector< LocationState > &value)
Definition: CreateFleetResult.h:92
Aws::GameLift::Model::CreateFleetResult::CreateFleetResult
CreateFleetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreateFleetResult
Definition: CreateFleetResult.h:36
Aws::GameLift::Model::CreateFleetResult::AddLocationStates
CreateFleetResult & AddLocationStates(LocationState &&value)
Definition: CreateFleetResult.h:142
Aws::GameLift::Model::CreateFleetResult::WithFleetAttributes
CreateFleetResult & WithFleetAttributes(const FleetAttributes &value)
Definition: CreateFleetResult.h:65
Aws::GameLift::Model::CreateFleetResult::GetFleetAttributes
const FleetAttributes & GetFleetAttributes() const
Definition: CreateFleetResult.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreateFleetResult::SetFleetAttributes
void SetFleetAttributes(FleetAttributes &&value)
Definition: CreateFleetResult.h:59
Aws::GameLift::Model::CreateFleetResult::GetLocationStates
const Aws::Vector< LocationState > & GetLocationStates() const
Definition: CreateFleetResult.h:82
Aws::GameLift::Model::FleetAttributes
Definition: FleetAttributes.h:44
Aws::GameLift::Model::CreateFleetResult::WithLocationStates
CreateFleetResult & WithLocationStates(Aws::Vector< LocationState > &&value)
Definition: CreateFleetResult.h:122
LocationState.h
Aws::GameLift::Model::CreateFleetResult::SetLocationStates
void SetLocationStates(Aws::Vector< LocationState > &&value)
Definition: CreateFleetResult.h:102