AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateFleetLocationsResult.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/LocationState.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GameLift
26{
27namespace Model
28{
30 {
31 public:
32 AWS_GAMELIFT_API CreateFleetLocationsResult() = default;
35
36
38
41 inline const Aws::String& GetFleetId() const { return m_fleetId; }
42 template<typename FleetIdT = Aws::String>
43 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
44 template<typename FleetIdT = Aws::String>
45 CreateFleetLocationsResult& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
47
49
57 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
58 template<typename FleetArnT = Aws::String>
59 void SetFleetArn(FleetArnT&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
60 template<typename FleetArnT = Aws::String>
61 CreateFleetLocationsResult& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
63
65
73 inline const Aws::Vector<LocationState>& GetLocationStates() const { return m_locationStates; }
74 template<typename LocationStatesT = Aws::Vector<LocationState>>
75 void SetLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates = std::forward<LocationStatesT>(value); }
76 template<typename LocationStatesT = Aws::Vector<LocationState>>
77 CreateFleetLocationsResult& WithLocationStates(LocationStatesT&& value) { SetLocationStates(std::forward<LocationStatesT>(value)); return *this;}
78 template<typename LocationStatesT = LocationState>
79 CreateFleetLocationsResult& AddLocationStates(LocationStatesT&& value) { m_locationStatesHasBeenSet = true; m_locationStates.emplace_back(std::forward<LocationStatesT>(value)); return *this; }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template<typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
87 template<typename RequestIdT = Aws::String>
88 CreateFleetLocationsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
90 private:
91
92 Aws::String m_fleetId;
93 bool m_fleetIdHasBeenSet = false;
94
95 Aws::String m_fleetArn;
96 bool m_fleetArnHasBeenSet = false;
97
98 Aws::Vector<LocationState> m_locationStates;
99 bool m_locationStatesHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace GameLift
107} // 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