AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLocationState(const LocationState& value) { m_locationStateHasBeenSet = true; m_locationState = value; }
51 inline void SetLocationState(LocationState&& value) { m_locationStateHasBeenSet = true; m_locationState = std::move(value); }
52 inline LocationAttributes& WithLocationState(const LocationState& value) { SetLocationState(value); return *this;}
53 inline LocationAttributes& WithLocationState(LocationState&& value) { SetLocationState(std::move(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 inline void SetStoppedActions(const Aws::Vector<FleetAction>& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = value; }
63 inline void SetStoppedActions(Aws::Vector<FleetAction>&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = std::move(value); }
65 inline LocationAttributes& WithStoppedActions(Aws::Vector<FleetAction>&& value) { SetStoppedActions(std::move(value)); return *this;}
66 inline LocationAttributes& AddStoppedActions(const FleetAction& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(value); return *this; }
67 inline LocationAttributes& AddStoppedActions(FleetAction&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(std::move(value)); return *this; }
69
71
77 inline const LocationUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
78 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
79 inline void SetUpdateStatus(const LocationUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
80 inline void SetUpdateStatus(LocationUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
81 inline LocationAttributes& WithUpdateStatus(const LocationUpdateStatus& value) { SetUpdateStatus(value); return *this;}
82 inline LocationAttributes& WithUpdateStatus(LocationUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
84 private:
85
86 LocationState m_locationState;
87 bool m_locationStateHasBeenSet = false;
88
89 Aws::Vector<FleetAction> m_stoppedActions;
90 bool m_stoppedActionsHasBeenSet = false;
91
92 LocationUpdateStatus m_updateStatus;
93 bool m_updateStatusHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace GameLift
98} // namespace Aws
void SetUpdateStatus(LocationUpdateStatus &&value)
void SetUpdateStatus(const LocationUpdateStatus &value)
const LocationUpdateStatus & GetUpdateStatus() const
void SetLocationState(LocationState &&value)
LocationAttributes & WithStoppedActions(const Aws::Vector< FleetAction > &value)
AWS_GAMELIFT_API LocationAttributes(Aws::Utils::Json::JsonView jsonValue)
LocationAttributes & WithLocationState(const LocationState &value)
const LocationState & GetLocationState() const
LocationAttributes & AddStoppedActions(FleetAction &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API LocationAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FleetAction > & GetStoppedActions() const
LocationAttributes & AddStoppedActions(const FleetAction &value)
void SetLocationState(const LocationState &value)
void SetStoppedActions(const Aws::Vector< FleetAction > &value)
LocationAttributes & WithUpdateStatus(LocationUpdateStatus &&value)
void SetStoppedActions(Aws::Vector< FleetAction > &&value)
LocationAttributes & WithLocationState(LocationState &&value)
LocationAttributes & WithUpdateStatus(const LocationUpdateStatus &value)
LocationAttributes & WithStoppedActions(Aws::Vector< FleetAction > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue