AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateFleetResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/FleetAttributes.h>
11#include <aws/gamelift/model/LocationState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GameLift {
25namespace Model {
27 public:
28 AWS_GAMELIFT_API CreateFleetResult() = default;
31
33
37 inline const FleetAttributes& GetFleetAttributes() const { return m_fleetAttributes; }
38 template <typename FleetAttributesT = FleetAttributes>
39 void SetFleetAttributes(FleetAttributesT&& value) {
40 m_fleetAttributesHasBeenSet = true;
41 m_fleetAttributes = std::forward<FleetAttributesT>(value);
42 }
43 template <typename FleetAttributesT = FleetAttributes>
44 CreateFleetResult& WithFleetAttributes(FleetAttributesT&& value) {
45 SetFleetAttributes(std::forward<FleetAttributesT>(value));
46 return *this;
47 }
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) {
62 m_locationStatesHasBeenSet = true;
63 m_locationStates = std::forward<LocationStatesT>(value);
64 }
65 template <typename LocationStatesT = Aws::Vector<LocationState>>
66 CreateFleetResult& WithLocationStates(LocationStatesT&& value) {
67 SetLocationStates(std::forward<LocationStatesT>(value));
68 return *this;
69 }
70 template <typename LocationStatesT = LocationState>
71 CreateFleetResult& AddLocationStates(LocationStatesT&& value) {
72 m_locationStatesHasBeenSet = true;
73 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
87 CreateFleetResult& WithRequestId(RequestIdT&& value) {
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 FleetAttributes m_fleetAttributes;
94
95 Aws::Vector<LocationState> m_locationStates;
96
97 Aws::String m_requestId;
98 bool m_fleetAttributesHasBeenSet = false;
99 bool m_locationStatesHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace GameLift
105} // 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