AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LocationAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/FleetAction.h>
10#include <aws/gamelift/model/LocationState.h>
11#include <aws/gamelift/model/LocationUpdateStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift {
23namespace Model {
24
32 public:
33 AWS_GAMELIFT_API LocationAttributes() = default;
36 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const LocationState& GetLocationState() const { return m_locationState; }
43 inline bool LocationStateHasBeenSet() const { return m_locationStateHasBeenSet; }
44 template <typename LocationStateT = LocationState>
45 void SetLocationState(LocationStateT&& value) {
46 m_locationStateHasBeenSet = true;
47 m_locationState = std::forward<LocationStateT>(value);
48 }
49 template <typename LocationStateT = LocationState>
50 LocationAttributes& WithLocationState(LocationStateT&& value) {
51 SetLocationState(std::forward<LocationStateT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<FleetAction>& GetStoppedActions() const { return m_stoppedActions; }
61 inline bool StoppedActionsHasBeenSet() const { return m_stoppedActionsHasBeenSet; }
62 template <typename StoppedActionsT = Aws::Vector<FleetAction>>
63 void SetStoppedActions(StoppedActionsT&& value) {
64 m_stoppedActionsHasBeenSet = true;
65 m_stoppedActions = std::forward<StoppedActionsT>(value);
66 }
67 template <typename StoppedActionsT = Aws::Vector<FleetAction>>
68 LocationAttributes& WithStoppedActions(StoppedActionsT&& value) {
69 SetStoppedActions(std::forward<StoppedActionsT>(value));
70 return *this;
71 }
73 m_stoppedActionsHasBeenSet = true;
74 m_stoppedActions.push_back(value);
75 return *this;
76 }
78
80
86 inline LocationUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
87 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
89 m_updateStatusHasBeenSet = true;
90 m_updateStatus = value;
91 }
93 SetUpdateStatus(value);
94 return *this;
95 }
97 private:
98 LocationState m_locationState;
99
100 Aws::Vector<FleetAction> m_stoppedActions;
101
103 bool m_locationStateHasBeenSet = false;
104 bool m_stoppedActionsHasBeenSet = false;
105 bool m_updateStatusHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace GameLift
110} // namespace Aws
LocationAttributes & WithLocationState(LocationStateT &&value)
AWS_GAMELIFT_API LocationAttributes(Aws::Utils::Json::JsonView jsonValue)
const LocationState & GetLocationState() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API LocationAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API LocationAttributes()=default
const Aws::Vector< FleetAction > & GetStoppedActions() const
LocationAttributes & WithStoppedActions(StoppedActionsT &&value)
void SetLocationState(LocationStateT &&value)
LocationAttributes & WithUpdateStatus(LocationUpdateStatus value)
LocationAttributes & AddStoppedActions(FleetAction value)
void SetStoppedActions(StoppedActionsT &&value)
void SetUpdateStatus(LocationUpdateStatus value)
LocationUpdateStatus GetUpdateStatus() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue