AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LocationAttributes.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/LocationState.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/LocationUpdateStatus.h>
11#include <aws/gamelift/model/FleetAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLift
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GAMELIFT_API LocationAttributes() = default;
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const LocationState& GetLocationState() const { return m_locationState; }
49 inline bool LocationStateHasBeenSet() const { return m_locationStateHasBeenSet; }
50 template<typename LocationStateT = LocationState>
51 void SetLocationState(LocationStateT&& value) { m_locationStateHasBeenSet = true; m_locationState = std::forward<LocationStateT>(value); }
52 template<typename LocationStateT = LocationState>
53 LocationAttributes& WithLocationState(LocationStateT&& value) { SetLocationState(std::forward<LocationStateT>(value)); return *this;}
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) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = std::forward<StoppedActionsT>(value); }
64 template<typename StoppedActionsT = Aws::Vector<FleetAction>>
65 LocationAttributes& WithStoppedActions(StoppedActionsT&& value) { SetStoppedActions(std::forward<StoppedActionsT>(value)); return *this;}
66 inline LocationAttributes& AddStoppedActions(FleetAction value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(value); return *this; }
68
70
76 inline LocationUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
77 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
78 inline void SetUpdateStatus(LocationUpdateStatus value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
81 private:
82
83 LocationState m_locationState;
84 bool m_locationStateHasBeenSet = false;
85
86 Aws::Vector<FleetAction> m_stoppedActions;
87 bool m_stoppedActionsHasBeenSet = false;
88
90 bool m_updateStatusHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GameLift
95} // 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