/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { /** *

Details about a location in a multi-location fleet.

See Also:

* AWS * API Reference

*/ class LocationAttributes { public: AWS_GAMELIFT_API LocationAttributes(); AWS_GAMELIFT_API LocationAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API LocationAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A fleet location and its current life-cycle state.

*/ inline const LocationState& GetLocationState() const{ return m_locationState; } /** *

A fleet location and its current life-cycle state.

*/ inline bool LocationStateHasBeenSet() const { return m_locationStateHasBeenSet; } /** *

A fleet location and its current life-cycle state.

*/ inline void SetLocationState(const LocationState& value) { m_locationStateHasBeenSet = true; m_locationState = value; } /** *

A fleet location and its current life-cycle state.

*/ inline void SetLocationState(LocationState&& value) { m_locationStateHasBeenSet = true; m_locationState = std::move(value); } /** *

A fleet location and its current life-cycle state.

*/ inline LocationAttributes& WithLocationState(const LocationState& value) { SetLocationState(value); return *this;} /** *

A fleet location and its current life-cycle state.

*/ inline LocationAttributes& WithLocationState(LocationState&& value) { SetLocationState(std::move(value)); return *this;} /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline const Aws::Vector& GetStoppedActions() const{ return m_stoppedActions; } /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline bool StoppedActionsHasBeenSet() const { return m_stoppedActionsHasBeenSet; } /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline void SetStoppedActions(const Aws::Vector& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = value; } /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline void SetStoppedActions(Aws::Vector&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = std::move(value); } /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline LocationAttributes& WithStoppedActions(const Aws::Vector& value) { SetStoppedActions(value); return *this;} /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline LocationAttributes& WithStoppedActions(Aws::Vector&& value) { SetStoppedActions(std::move(value)); return *this;} /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline LocationAttributes& AddStoppedActions(const FleetAction& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(value); return *this; } /** *

A list of fleet actions that have been suspended in the fleet location.

*/ inline LocationAttributes& AddStoppedActions(FleetAction&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(std::move(value)); return *this; } /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline const LocationUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; } /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; } /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline void SetUpdateStatus(const LocationUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; } /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline void SetUpdateStatus(LocationUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); } /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline LocationAttributes& WithUpdateStatus(const LocationUpdateStatus& value) { SetUpdateStatus(value); return *this;} /** *

The status of fleet activity updates to the location. The status * PENDING_UPDATE indicates that StopFleetActions or * StartFleetActions has been requested but the update has not yet * been completed for the location.

*/ inline LocationAttributes& WithUpdateStatus(LocationUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;} private: LocationState m_locationState; bool m_locationStateHasBeenSet = false; Aws::Vector m_stoppedActions; bool m_stoppedActionsHasBeenSet = false; LocationUpdateStatus m_updateStatus; bool m_updateStatusHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws