/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 container fleet.

See * Also:

AWS * API Reference

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

A location identifier.

*/ inline const Aws::String& GetLocation() const{ return m_location; } inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } inline ContainerFleetLocationAttributes& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} inline ContainerFleetLocationAttributes& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} inline ContainerFleetLocationAttributes& WithLocation(const char* value) { SetLocation(value); return *this;} ///@} ///@{ /** *

The status of fleet activity in the location.

  • * PENDING -- A new container fleet has been requested.

  • *

    CREATING -- A new container fleet resource is being created. *

  • CREATED -- A new container fleet resource has * been created. No fleet instances have been deployed.

  • * ACTIVATING -- New container fleet instances are being deployed.

    *
  • ACTIVE -- The container fleet has been deployed and * is ready to host game sessions.

  • UPDATING -- * Updates to the container fleet is being updated. A deployment is in * progress.

*/ inline const ContainerFleetLocationStatus& GetStatus() const{ return m_status; } inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } inline void SetStatus(const ContainerFleetLocationStatus& value) { m_statusHasBeenSet = true; m_status = value; } inline void SetStatus(ContainerFleetLocationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } inline ContainerFleetLocationAttributes& WithStatus(const ContainerFleetLocationStatus& value) { SetStatus(value); return *this;} inline ContainerFleetLocationAttributes& WithStatus(ContainerFleetLocationStatus&& value) { SetStatus(std::move(value)); return *this;} ///@} private: Aws::String m_location; bool m_locationHasBeenSet = false; ContainerFleetLocationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws