AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateFleetLocationsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLift_EXPORTS.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 CreateFleetLocationsResult() = default;
31
33
36 inline const Aws::String& GetFleetId() const { return m_fleetId; }
37 template <typename FleetIdT = Aws::String>
38 void SetFleetId(FleetIdT&& value) {
39 m_fleetIdHasBeenSet = true;
40 m_fleetId = std::forward<FleetIdT>(value);
41 }
42 template <typename FleetIdT = Aws::String>
44 SetFleetId(std::forward<FleetIdT>(value));
45 return *this;
46 }
48
50
58 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
59 template <typename FleetArnT = Aws::String>
60 void SetFleetArn(FleetArnT&& value) {
61 m_fleetArnHasBeenSet = true;
62 m_fleetArn = std::forward<FleetArnT>(value);
63 }
64 template <typename FleetArnT = Aws::String>
66 SetFleetArn(std::forward<FleetArnT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
81 template <typename LocationStatesT = Aws::Vector<LocationState>>
82 void SetLocationStates(LocationStatesT&& value) {
83 m_locationStatesHasBeenSet = true;
84 m_locationStates = std::forward<LocationStatesT>(value);
85 }
86 template <typename LocationStatesT = Aws::Vector<LocationState>>
88 SetLocationStates(std::forward<LocationStatesT>(value));
89 return *this;
90 }
91 template <typename LocationStatesT = LocationState>
93 m_locationStatesHasBeenSet = true;
94 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_fleetId;
117
118 Aws::String m_fleetArn;
119
120 Aws::Vector<LocationState> m_locationStates;
121
122 Aws::String m_requestId;
123 Aws::Http::HttpResponseCode m_HttpResponseCode;
124 bool m_fleetIdHasBeenSet = false;
125 bool m_fleetArnHasBeenSet = false;
126 bool m_locationStatesHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace GameLift
132} // namespace Aws
CreateFleetLocationsResult & AddLocationStates(LocationStatesT &&value)
AWS_GAMELIFT_API CreateFleetLocationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GAMELIFT_API CreateFleetLocationsResult()=default
const Aws::Vector< LocationState > & GetLocationStates() const
CreateFleetLocationsResult & WithFleetArn(FleetArnT &&value)
CreateFleetLocationsResult & WithFleetId(FleetIdT &&value)
CreateFleetLocationsResult & WithLocationStates(LocationStatesT &&value)
AWS_GAMELIFT_API CreateFleetLocationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFleetLocationsResult & WithRequestId(RequestIdT &&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