AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateFleetLocationsResult.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/LocationState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace GameLift {
24namespace Model {
26 public:
27 AWS_GAMELIFT_API CreateFleetLocationsResult() = default;
30
32
35 inline const Aws::String& GetFleetId() const { return m_fleetId; }
36 template <typename FleetIdT = Aws::String>
37 void SetFleetId(FleetIdT&& value) {
38 m_fleetIdHasBeenSet = true;
39 m_fleetId = std::forward<FleetIdT>(value);
40 }
41 template <typename FleetIdT = Aws::String>
43 SetFleetId(std::forward<FleetIdT>(value));
44 return *this;
45 }
47
49
57 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
58 template <typename FleetArnT = Aws::String>
59 void SetFleetArn(FleetArnT&& value) {
60 m_fleetArnHasBeenSet = true;
61 m_fleetArn = std::forward<FleetArnT>(value);
62 }
63 template <typename FleetArnT = Aws::String>
65 SetFleetArn(std::forward<FleetArnT>(value));
66 return *this;
67 }
69
71
79 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
80 template <typename LocationStatesT = Aws::Vector<LocationState>>
81 void SetLocationStates(LocationStatesT&& value) {
82 m_locationStatesHasBeenSet = true;
83 m_locationStates = std::forward<LocationStatesT>(value);
84 }
85 template <typename LocationStatesT = Aws::Vector<LocationState>>
87 SetLocationStates(std::forward<LocationStatesT>(value));
88 return *this;
89 }
90 template <typename LocationStatesT = LocationState>
92 m_locationStatesHasBeenSet = true;
93 m_locationStates.emplace_back(std::forward<LocationStatesT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_fleetId;
114 bool m_fleetIdHasBeenSet = false;
115
116 Aws::String m_fleetArn;
117 bool m_fleetArnHasBeenSet = false;
118
119 Aws::Vector<LocationState> m_locationStates;
120 bool m_locationStatesHasBeenSet = false;
121
122 Aws::String m_requestId;
123 bool m_requestIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GameLift
128} // 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