AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
36
37
39
43 inline const FleetAttributes& GetFleetAttributes() const { return m_fleetAttributes; }
44 template<typename FleetAttributesT = FleetAttributes>
45 void SetFleetAttributes(FleetAttributesT&& value) { m_fleetAttributesHasBeenSet = true; m_fleetAttributes = std::forward<FleetAttributesT>(value); }
46 template<typename FleetAttributesT = FleetAttributes>
47 CreateFleetResult& WithFleetAttributes(FleetAttributesT&& value) { SetFleetAttributes(std::forward<FleetAttributesT>(value)); return *this;}
49
51
59 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
60 template<typename LocationStatesT = Aws::Vector<LocationState>>
61 void SetLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates = std::forward<LocationStatesT>(value); }
62 template<typename LocationStatesT = Aws::Vector<LocationState>>
63 CreateFleetResult& WithLocationStates(LocationStatesT&& value) { SetLocationStates(std::forward<LocationStatesT>(value)); return *this;}
64 template<typename LocationStatesT = LocationState>
65 CreateFleetResult& AddLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates.emplace_back(std::forward<LocationStatesT>(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template<typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
73 template<typename RequestIdT = Aws::String>
74 CreateFleetResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
76 private:
77
78 FleetAttributes m_fleetAttributes;
79 bool m_fleetAttributesHasBeenSet = false;
80
81 Aws::Vector<LocationState> m_locationStates;
82 bool m_locationStatesHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace GameLift
90} // namespace Aws
AWS_GAMELIFT_API CreateFleetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFleetResult & AddLocationStates(LocationStatesT &&value)
AWS_GAMELIFT_API CreateFleetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< LocationState > & GetLocationStates() const
const FleetAttributes & GetFleetAttributes() const
CreateFleetResult & WithLocationStates(LocationStatesT &&value)
CreateFleetResult & WithFleetAttributes(FleetAttributesT &&value)
CreateFleetResult & WithRequestId(RequestIdT &&value)
void SetFleetAttributes(FleetAttributesT &&value)
AWS_GAMELIFT_API CreateFleetResult()=default
const Aws::String & GetRequestId() const
void SetLocationStates(LocationStatesT &&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