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

Places uses a point geometry to specify a location or a Place.

See * Also:

AWS * API Reference

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

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline const Aws::Vector& GetPoint() const{ return m_point; } /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline bool PointHasBeenSet() const { return m_pointHasBeenSet; } /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline void SetPoint(const Aws::Vector& value) { m_pointHasBeenSet = true; m_point = value; } /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline void SetPoint(Aws::Vector&& value) { m_pointHasBeenSet = true; m_point = std::move(value); } /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline PlaceGeometry& WithPoint(const Aws::Vector& value) { SetPoint(value); return *this;} /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline PlaceGeometry& WithPoint(Aws::Vector&& value) { SetPoint(std::move(value)); return *this;} /** *

A single point geometry specifies a location for a Place using WGS 84 * coordinates:

  • x — Specifies the x coordinate or * longitude.

  • y — Specifies the y coordinate or * latitude.

*/ inline PlaceGeometry& AddPoint(double value) { m_pointHasBeenSet = true; m_point.push_back(value); return *this; } private: Aws::Vector m_point; bool m_pointHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws