/** * 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 { /** *

Contains the geometry details for each path between a pair of positions. Used * in plotting a route leg on a map.

See Also:

AWS * API Reference

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

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline const Aws::Vector>& GetLineString() const{ return m_lineString; } /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline bool LineStringHasBeenSet() const { return m_lineStringHasBeenSet; } /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline void SetLineString(const Aws::Vector>& value) { m_lineStringHasBeenSet = true; m_lineString = value; } /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline void SetLineString(Aws::Vector>&& value) { m_lineStringHasBeenSet = true; m_lineString = std::move(value); } /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline LegGeometry& WithLineString(const Aws::Vector>& value) { SetLineString(value); return *this;} /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline LegGeometry& WithLineString(Aws::Vector>&& value) { SetLineString(std::move(value)); return *this;} /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline LegGeometry& AddLineString(const Aws::Vector& value) { m_lineStringHasBeenSet = true; m_lineString.push_back(value); return *this; } /** *

An ordered list of positions used to plot a route on a map.

The first * position is closest to the start position for the leg, and the last position is * the closest to the end position for the leg.

  • For example, * [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

    *
*/ inline LegGeometry& AddLineString(Aws::Vector&& value) { m_lineStringHasBeenSet = true; m_lineString.push_back(std::move(value)); return *this; } private: Aws::Vector> m_lineString; bool m_lineStringHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws